Page 1 of 1

TWAI - TX FAILED

Posted: Thu May 06, 2021 6:58 am
by Ismael
Hello,

I had been developing a CAN parser project for some third parties devices. The scenario consists on 3 devices exchanging information between them with a frame rate from 6 to 10 every second at a CAN speed of 50KHz with a total impedance of 60 ohms.

Applications with TWAI driver works like a charm but after a weekend running all the services, there are some TWAI_ALERT_TX_FAILED problems that occurs. After that, application continue working without any problem.

Have anybody experience this issue? What could be the cause of this error?

Does the driver retry to send the message?

Thanks so much.

Re: TWAI - TX FAILED

Posted: Thu May 06, 2021 9:23 am
by ESP_Dazz
May I ask what driver mode you are using? Are you using single-shot messages (could you copy the message flags that you use)? And are you getting any other alerts (such as TX error, RX error, error passive etc.)?

Re: TWAI - TX FAILED

Posted: Fri May 07, 2021 12:42 pm
by Ismael
Hello Dazz,

The configuration I've been using is:

TWAI_TIMING_CONFIG_50KBITS in TWAI_MODE_NORMAL.

The module doesn't has a message filter and errors are all active except (TWAI_ALERT_TX_IDLE| TWAI_ALERT_TX_SUCCESS| TWAI_ALERT_ARB_LOST).

No other errors are received.

Re: TWAI - TX FAILED

Posted: Fri May 21, 2021 8:57 am
by Ismael
Any news about this?
Thanks