What can cause TWAI TWAI_ALERT_TX_FAILED

ci4rail
Posts: 4
Joined: Thu Sep 02, 2021 1:49 pm

What can cause TWAI TWAI_ALERT_TX_FAILED

Postby ci4rail » Wed Aug 24, 2022 1:48 pm

Using ESP32S2 and esp-idf v4.4.1.

Under heavily loaded CAN bus, sometimes it happens that the TWAI driver reports TWAI_ALERT_TX_FAILED and in this case, the transmit message is lost. What can cause this error? I noticed from ESP32-S2 TRM (V1.0) that this alert is fired when TWAI_STATUS_REG.TWAI_TX_COMPLETE is not set when the transmit interrupt occurs. However, the technical manual does not explain why TWAI_TX_COMPLETE may not be set.

How can I avoid that transmit messages can get lost?

ci4rail
Posts: 4
Joined: Thu Sep 02, 2021 1:49 pm

Re: What can cause TWAI TWAI_ALERT_TX_FAILED

Postby ci4rail » Thu Sep 01, 2022 9:11 am

Hello, can somebody help please?

Who is online

Users browsing this forum: No registered users and 86 guests