I want to read/write data in to eeprom chip CAT24C32 from u-boot via i2c command or i2c channel 0.
I’m able to probe the chip and get the device id = 0x50 , but while reading data every time i’m getting random data
from chip on u-boot terminal. I’m not able to write any data into chip.
I want to read/write data in to eeprom chip CAT24C32 from u-boot via i2c command or i2c channel 0.
I’m able to probe the chip and get the device id = 0x50 , but while reading data every time i’m getting random data from chip on u-boot terminal. I’m not able to write any data into chip.
Which commands did you entered to get the device id and reading and writing the data?
Have you tried to do the communication in Linux instead of U-Boot?
Bsp 2.8b5 is not supported anymore, please update to Bsp 2.8b6 at your earliest convenience.
Regarding getting the random value when you read form the same location in U-Boot, you should carefully read the section Read Operations in the datasheet and handle this correctly in U-Boot.
Check my attach file . I want to read/write inside U-boot code via I2C channel.
so I have done modification in file and using CONFIG_SYS_I2C.
Will it work or any other configuration need to be use.
I checked the datasheet , still not able to read correct data.
I want to read from EEPROM , after the U-boot binary start . Is there any things need to enable for that or put delay anywhere ?
A write takes twr until it completes, you should wait that time after each write.
You disable the device model for I2C. That is not future proof as DM will be the only supported driver flavour in the future. I don’t know if you did all needed changes for switching to non DM.