2025-01-23 06:08 AM - last edited on 2025-01-23 06:25 AM by Andrew Neil
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
Solved! Go to Solution.
2025-01-23 06:24 AM
@SGian.1 wrote:where Address = 0x01;
Don't you need to start at Address = 0x00 ?
If you write 8 bytes from Address 0x01, you'll go over a "page" boundary?
2025-01-23 06:24 AM
@SGian.1 wrote:where Address = 0x01;
Don't you need to start at Address = 0x00 ?
If you write 8 bytes from Address 0x01, you'll go over a "page" boundary?
2025-01-23 06:30 AM
My God i diden't take care of it.
Sorry
Thank you soo much
Sergio