Search found 1 match

by luftaquila
Tue Jul 22, 2025 11:06 am
Forum: ESP-IDF
Topic: i2c_master_transmit seems like it is not thread safe
Replies: 0
Views: 436

i2c_master_transmit seems like it is not thread safe

Hello,

I'm using ESP32-S3 with IDF 5.4 and I'm suffering from `ESP_ERR_INVALID_STATE` error returned by `i2c_master_transmit_receive()` function.

There are an RTC and a gyroscope on the I2C0 bus.

The main thread at Core 0 does:

1. `i2c_master_new_bus()` the bus i2c0.
2. `i2c_master_bus_add ...

Go to advanced search