Page 1 of 1

ESP32-WROOM-32E CAN bus

Posted: Sat Jun 26, 2021 9:09 pm
by yorkdale
Hi All,
I'm new here. Not sure where to post my question, just list it here...

I'm using ESP32-WROOM-32E to build a CAN controller.

First, I found ESP32-WROOM-32E is using ESP32-D0WD-V3. I got ESP32-D0WD-V3 datasheet, but it does not have any information about CAN controller. It should have because I'm ESP32-WROOM-32E build CAN applications with some open sources, it works.

Second,
I was using ESP32-WROOM-32D, it works fine. Recently I changed to ESP32-WROOM-32E, since -32D is end of life. I found my -32D code has problem running on -32E. Tracked down it's about CAN baud rate. On ESP32-WROOM-32D, the Can0.Begin(100000); is 100KHz (by scope). But on ESP32-WROOM-32E, it's around 50KHz.

So I think there must be some differences between -32D and -32E.

Where can I get the details about the difference?

Where are the core code on github for ESP32? (I'm new to this development env, maybe I asked a wrong question.)

Thanks a lot.

Re: ESP32-WROOM-32E CAN bus

Posted: Sun Jun 27, 2021 11:55 pm
by yorkdale
Sorry that. The CAN bus in ESp32 is TWAI. Datasheet mentioned this part.
But where I can get details of how to setup it?
Thank you!!

Re: ESP32-WROOM-32E CAN bus

Posted: Mon Jun 28, 2021 1:16 am
by WiFive

Re: ESP32-WROOM-32E CAN bus

Posted: Mon Jun 28, 2021 7:03 am
by yorkdale
Thank you WiFive!!!
I see the code has some defines like "CONFIG_ESP32_REV_MIN".
I think if my code has "CONFIG_ESP32_REV_MIN = 3" might fix the problem.

Are the bug fix already in place? How to use it? Too new to this environment...

Thanks a lot.