i2C write is not happening in ESP32c3
Posted: Mon Jul 05, 2021 10:53 am
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
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