twai issues when compile in v5.5.1

pmoreira
Posts: 2
Joined: Mon Apr 07, 2025 6:33 pm

twai issues when compile in v5.5.1

Postby pmoreira » Tue Nov 25, 2025 2:49 pm

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.
Attachments
twaiExampleV5.5.1.zip
(2.66 KiB) Downloaded 15 times

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: twai issues when compile in v5.5.1

Postby nopnop2002 » Thu Nov 27, 2025 11:56 am

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

Who is online

Users browsing this forum: No registered users and 12 guests