I2C Slave on ESP32-S3

Andre_Cilia
Posts: 4
Joined: Mon Mar 13, 2023 10:41 am

I2C Slave on ESP32-S3

Postby Andre_Cilia » Fri Aug 04, 2023 1:22 pm

Hi,
I am designing a circuit which requires an I2C slave on an ESP32-S3.

The development is being done in ESP-Arduino framework on PlatformIO

I also have an I2C master port which is working perfectly well using the Arduino Wire library.

However the I2C slave port has this major problem, whereby a read request interrupt is serviced before the data received interrupt.
Therefore what happens is that the first read request returns nonsense data, the second read request returns the data loaded into the buffer by the first and so on.

I have attempted also to use the ESP-IDF functions using the default I2C interrupt routines for the I2C slave port alone - but the exact same issue comes up.

Could this indicate that this is some major issue with the I2C peripheral when it is in slave mode?

Is there any work arounds that can be done to resolve this issue?

Thanks!

Andre_Cilia
Posts: 4
Joined: Mon Mar 13, 2023 10:41 am

Re: I2C Slave on ESP32-S3

Postby Andre_Cilia » Mon Aug 21, 2023 2:51 pm

Bump

Who is online

Users browsing this forum: Google [Bot] and 32 guests