I am currently migrating a project from IDF 5.1.3 into IDF 5.2.1 and I am having problems
using the new i2c_slave.c driver...
I already updated my source code accordingly to match the instructions in the API Reference here:
https://docs.espressif.com/projects/esp ... s/i2c.html
However, I get a early startup error + crash making my current project unusable:
Code: Select all
Waiting for the device to reconnect...
I (1441) esp_psram: SPI SRAM memory test OK
I (1450) cpu_start: Pro cpu start user code
I (1450) cpu_start: cpu freq: 240000000 Hz
I (1450) heap_init: Initializing. RAM available for dynamic allocation:
I (1451) heap_init: At 3FCA69F8 len 00042D18 (267 KiB): RAM
I (1451) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (1451) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (1451) heap_init: At 600FE014 len 00001FD4 (7 KiB): RTCRAM
I (1452) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator
I (1453) spi_flash: detected chip: gd
I (1453) spi_flash: flash io: dio
I (1453) flash_encrypt: Flash encryption mode is RELEASE
E (1454) i2c: CONFLICT! driver_ng is not allowed to be used with this old driver
#include "driver/i2c_slave.h"
and removed
#include "driver/i2c.h"
from my source code....
I also tried to manually add
CONFIG_SOC_I2C_SUPPORT_SLAVE=y
in sdkconfig because I could not find this option in the menuconfig GUI.
I then tried to check the i2c examples inside
C:\Espressif\frameworks\esp-idf-v5.2.1\examples\peripherals\i2c\
but it turns out that they are all still using the old (already deprecated) i2c driver.
Are there working examples using the new i2c_slave drivers available?
Should I hold off updating to the new i2c drivers?
Best Regards,