Search found 3 matches

by CraftyMyner
Mon May 08, 2023 11:57 pm
Forum: Hardware
Topic: ESP32 TWAI/CAN bus errors cause bus off state
Replies: 0
Views: 1003

ESP32 TWAI/CAN bus errors cause bus off state

I have multiple devices using ESP32-WROOM-32E and TWAI (CAN). There was an issue where they would have bus errors and then fail to recover via twai_initiate_recovery(). I solved the recovery issue by enabling all "CONFIG_TWAI_ERRATA_FIX*" fixes, however, I still have the issue that causes bus off in...
by CraftyMyner
Mon Dec 05, 2022 12:11 pm
Forum: ESP32 Arduino
Topic: Arduino ESP32 Framework V2.0.5 Changes TWAI Errata Config Options?
Replies: 0
Views: 1195

Arduino ESP32 Framework V2.0.5 Changes TWAI Errata Config Options?

Hello, I have had issues with a few devices failing to recover from bus off state. I located the cause to be the absence of CONFIG_TWAI_ERRATA_FIX_BUS_OFF_REC set in the Arduino framework. I spent quite a bit of time converting over to ESP-IDF to allow the extra flexibility of setting various sdkcon...
by CraftyMyner
Fri Aug 19, 2022 6:36 am
Forum: Hardware
Topic: ESP32 TWAI/CAN gets locked up and cannot recover
Replies: 1
Views: 1714

ESP32 TWAI/CAN gets locked up and cannot recover

I have multiple devices using TWAI/CAN bus. I am using TI ISO1042 as the transceiver and the bus is running at 250kbps. 2 of the devices are working fine but one of them locks up after a few days to 2 weeks. The device still receives frames without any issue but cannot be recovered using "twai_initi...