ESP32-WROOM-32E CAN bus

yorkdale
Posts: 3
Joined: Sat Jun 26, 2021 8:46 pm

ESP32-WROOM-32E CAN bus

Postby yorkdale » Sat Jun 26, 2021 9:09 pm

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.

yorkdale
Posts: 3
Joined: Sat Jun 26, 2021 8:46 pm

Re: ESP32-WROOM-32E CAN bus

Postby yorkdale » Sun Jun 27, 2021 11:55 pm

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!!

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP32-WROOM-32E CAN bus

Postby WiFive » Mon Jun 28, 2021 1:16 am


yorkdale
Posts: 3
Joined: Sat Jun 26, 2021 8:46 pm

Re: ESP32-WROOM-32E CAN bus

Postby yorkdale » Mon Jun 28, 2021 7:03 am

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.

Who is online

Users browsing this forum: No registered users and 104 guests