Hi,
We are using ESP32C3 Rev 2 board to work our project.We are interfacing EEPROM(AT24C256C) via i2c (address 0x50).We have used dafault code i2c_tools.in this we are able to read the content of EEPROM but unable to write to the EEPRPROM.it comes write ok response ,but if we read from that particular location data comes 0xff which means not written. below are configuration details.
static gpio_num_t i2c_gpio_sda = 18;
static gpio_num_t i2c_gpio_scl = 19;
static uint32_t i2c_frequency = 100000;
static i2c_port_t i2c_port = I2C_NUM_0;
can you please help to resolve this issue.
Thanks,
Shankara M
i2C write is not happening in ESP32c3
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: i2C write is not happening in ESP32c3
Do you have the full code that shows the error? That way we can see either if there's something you're doing wrong, or if there's a bug in ESP-IDF we have a way to reproduce it. Also, the EEPROM you picked has a WP pin; are you sure that is properly connected to ground?
Who is online
Users browsing this forum: No registered users and 30 guests