TWAI - TX FAILED

Ismael
Posts: 20
Joined: Thu Mar 05, 2020 7:35 am

TWAI - TX FAILED

Postby Ismael » Thu May 06, 2021 6:58 am

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.

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: TWAI - TX FAILED

Postby ESP_Dazz » Thu May 06, 2021 9:23 am

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.)?

Ismael
Posts: 20
Joined: Thu Mar 05, 2020 7:35 am

Re: TWAI - TX FAILED

Postby Ismael » Fri May 07, 2021 12:42 pm

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.

Ismael
Posts: 20
Joined: Thu Mar 05, 2020 7:35 am

Re: TWAI - TX FAILED

Postby Ismael » Fri May 21, 2021 8:57 am

Any news about this?
Thanks

Who is online

Users browsing this forum: DrMickeyLauer and 127 guests