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 issueThe 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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Please note espressif32 3v5 does not use TWAI but CAN. espressif32 4.4 uses TWAI (with the bug)