HAL_I2C_Mem_Write with 24LC01B EEPROM
Hi there!
here i'm for ask another help. I use STM32G031 for write and read eeprom 24LC01B , and i work with
where Address = 0x01;
HAL_I2C_Mem_Write(hi2c, DevAddress, Address , I2C_MEMADD_SIZE_8BIT, &val, 1, 100);
so if i wrote 7 byte everythingh work perfect if i wrote 8 byte ti find the last byte in the position 0x00 in my eeprom why ?
if i change eeprom like 24lc256 and I2C_MEMADD_SIZE_16BIT
HAL_I2C_Mem_Write(hi2c, DevAddress, Address , I2C_MEMADD_SIZE_16BIT, &val, 1, 100); everythingh work perfect
please can you help me ?
Thanks
Sergiio
