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

Not Working with ESP wroom 32E

Open SomenKumarDas opened this issue 3 years ago • 3 comments

Hi had wroom32D module with me and the library works like a charm... But I got new wroom32E module board but this can library is not working. I tested the IDF TWAI example which works fine also I can able to transmit frames. But I used arduino framework for my project so far so what Can I do..

SomenKumarDas avatar Jun 04 '21 10:06 SomenKumarDas

hello, did you find a solution ? I plan to migrate to 32E. thanks

Koxx3 avatar Oct 07 '21 11:10 Koxx3

I have found that all my bit rates are half of what I set them to, ie using CAN_SPEED_500KBPS gets me 250kbps.

This seems to be related to issue #23 and changing the following line in CAN.c solved the issue:

// enable all interrupts
MODULE_CAN->IER.U = 0xef;  // this was 0xff but did not respect reserved bit4.

sdp8483 avatar Feb 20 '22 21:02 sdp8483

thanks for the feedback !

Koxx3 avatar Feb 20 '22 22:02 Koxx3