ESP32 Wroom 32 TWAI driver help #674
Replies: 5 comments
-
It's probably not related as they were having troubles with the Rx side but you seem to be having troubles with the Tx side. Can you scope the Rx/Tx pins on the transceiver to see if traffic is getting through as you'd expect? Have you checked the bus termination? |
Beta Was this translation helpful? Give feedback.
-
Sorry it was my own configuration that was the problem. |
Beta Was this translation helpful? Give feedback.
-
@collin80 I do have one more minor issue, maybe you could give me your opinion on. When i first turn on the esp32 it crashes over and over a few times untill it starts working. then it continues to work. it will only crash after power on or using the reset button. My backtrace decodes to this, this is line 115 from your library where it happens. any idea what cause's this?
Thanks |
Beta Was this translation helpful? Give feedback.
-
I would like to add that the problem happens the worst when the can transceiver is plugged in. if left plugged into io 4,5 then its almost inifinite boot loop. if i leave tja1051 disconnected during startup it wont crash. im not sure what to think. |
Beta Was this translation helpful? Give feedback.
-
If I start your esp32_can sketch with the tja1051 unhooked it won't crash. Most times with just the tja1051 connected it will crash a couple times on startup but only somtimes. If I leave the can bus connected to CAN H, CAN L. It'd almost an infinite bootloop. I know you have a lot of experience with these devices. I was wondering if maybe you had an idea what the problem was. |
Beta Was this translation helpful? Give feedback.
-
Is there an issue with some of the esp32s receiving messages. i wired up a tja1050 to the esp32 wroom 32 but your ESP32CAN example codes dont initialize the CAN unless i set to listen_only. in listen only mode i cant get the esp32 to pickup any of the messages. could my issue be related to this issue?
espressif/esp-idf#5604
Beta Was this translation helpful? Give feedback.
All reactions