Page 1 of 1

twai issues when compile in v5.5.1

Posted: Tue Nov 25, 2025 2:49 pm
by pmoreira
Hello, in the new ESP-IDF 5.5.1 version when I try to compile \examples\peripherals\twai\twai_network\twai_network_listen_only demo code ocurr a lot of issues.

In the demo code apear #include "driver/twai.h" but the documentation related to the new esp-idf version tell:

#include "driver/twai.h" must be replaced
#include "esp_twai.h" that this include file must be replaced by "esp_now_twai.h"



The attachment have a zip file with code.

Have any similar issue?

Many thanks.

Re: twai issues when compile in v5.5.1

Posted: Thu Nov 27, 2025 11:56 am
by nopnop2002
The API has changed significantly between driver/twai.h and esp_twai.h.

If you replace driver/twai.h with esp_twai.h, you will need to change the API.

https://github.com/espressif/esp-idf/bl ... ten_only.c