travis012
travis012
I am also having this issue. All of my TWAI_ERRATA fixes are enabled. I'm using ESPIDF 4.4.4 with a ESP32MINI-01 rev3 device. I will try [Dazza0](https://github.com/Dazza0) code patch right now...
Unfortunately this doesn't fix it. I should note that I am using single shot mode with no tx queue. I handle retries myself. This is the only function I use...
If I use this: ```C #ifdef CONFIG_TWAI_ERRATA_FIX_TX_INTR_LOST // if ((interrupts & TWAI_LL_INTR_TI || hal_ctx->state_flags & TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED) && status & TWAI_LL_STATUS_TBS && p_twai_obj->tx_msg_count) { #else ``` it solves the problem. This...
> @wanckl - the test failed after an hour with > > ``` > assert failed: twai_handle_tx_buffer_frame twai.c:185 (p_twai_obj->tx_msg_count >= 0) > ``` > > The suggested change checked bus...
> @travis012 - an implementation very close to yours works for me. ie, I no longer observe the assert() error. I don't observe that `twai_initiate_recovery()` ever gets called either. I...