question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

assert failed: twai_handle_tx_buffer_frame twai.c:183 (p_twai_obj->tx_msg_count >= 0) if CONFIG_TWAI_ERRATA_FIX_TX_INTR_LOST=y (IDFGH-8204)

See original GitHub issue

The TWAI interface has a bug that causes the chip to reboot if you short / have interference the CANBUS pins. There is a proposed solution in the IDF github.

For that I need to adjust the IDF TWAI component:

# TWAI configuration
#
CONFIG_TWAI_ERRATA_FIX_TX_INTR_LOST=y

Does anyone know how I could implement it in the Arduino/Platformio enviroment?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Jason2866commented, Oct 4, 2022

Not a platformio issue anyways. You can start here https://community.platformio.org/t/framework-espidf-arduino/14949 There is already a open issue in IDF, search the error or wait until it is fixed or use the old working core.

0reactions
EmbeddedDevvercommented, Oct 4, 2022

Please note espressif32 3v5 does not use TWAI but CAN. espressif32 4.4 uses TWAI (with the bug)

Read more comments on GitHub >

github_iconTop Results From Across the Web

assert failed: twai_handle_tx_buffer_frame twai.c:183 ... - GitHub
let it run a while. disturb CAN-Bus by eigher shorting CAN-H to GND or CAN-H to CAN-L; it will crash instead of a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found