Page 1 of 1

I2S v5.1 upgrade: conflicts

Posted: Wed Aug 16, 2023 3:04 pm
by Matt141
Hi ESP32 users,

I upgraded esp-idf to v5.1 et upgraded I2S by replacing driver/i2s.h by driver/i2s_std.h in my project. Nevertheless, at runtime, I get the following error message: "CONFLICT! The new i2s driver can't work along with the legacy i2s driver".

By looking at check_i2s_driver_conflict function in i2s_legacy.c file, this error happens when i2s_del_channel is defined (in th new I2S). Commenting check_i2s_driver_conflict created a hardfault, so there must be an isssue somewhere, but I don't know where to search.

Any idea why "CONFLICT! The new i2s driver can't work along with the legacy i2s driver" is triggered despite having replaced driver/i2s.h by driver/i2s_std.h in my project ?

Regards,
Matt

Re: I2S v5.1 upgrade: conflicts

Posted: Thu Aug 24, 2023 9:58 am
by Matt141
I had to comment out

Code: Select all

"deprecated/i2s_legacy.c"
in CMakeLists.txt in esp-idf/components/driver

It doesn't seem right to modify a file esp-idf.