ESP32-Arduino-CAN icon indicating copy to clipboard operation
ESP32-Arduino-CAN copied to clipboard

Update for ESP32-WROOM32E - V3

Open Juantxor opened this issue 4 years ago • 4 comments

ESP32 ECO3 added a configurable bit that will cause CAN bus speeds to be halved. https://www.esp32.com/viewtopic.php?t=15581 https://github.com/espressif/esp-idf/commit/03d5742e110d2d5a8fbdf60ad9fcf894d3f98eb5

Juantxor avatar Oct 29 '20 03:10 Juantxor

Confirmed, I just had the same issue, when trying to use a 32E module to talk 500kbps Network. I had to set the speed to 1000kbps before it would work.

fleetsu avatar Oct 31 '20 10:10 fleetsu

Same here for an Olimex esp32-evb Rev-I board.

ScheintodX avatar Apr 28 '21 14:04 ScheintodX

Very interesting! Thank you for sharing this. I'm experiencing similar issue, with with WROOM but similar, mine is TTGO ESP32 240MHz WiFi/BT 16MB flash.
The CAN I'm communicating with is confirmed 500Kbps (other devices successfully tx & rx at 500Kbps, and documentation confirm 500Kbps), however, for any working communications with ESP32CAN I must set CAN to 1000Kbps, and even so an able to only receive messages (so far no success transmitting).
Same issue trying to connect with known 125Kbps CAN, my ESP32CAN only working to receive when set to 250Kbps, no success with tx.

field172 avatar May 27 '21 02:05 field172

I can confirm that my esp32 TTGO is now receiving at correct speed set to 500Kbps, fixed by changing CAN.c library file, 0xff to 0xef: // enable all interrupts MODULE_CAN->IER.U = 0xef;

field172 avatar May 27 '21 18:05 field172