This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/AM5728: AM5728 how to write eeprom ID information

Part Number: AM5728
Other Parts Discussed in Thread: AM5749

Tool/software: Code Composer Studio

hello,

My board is a custom board, using AM5728,refference is AM5749 idk board, and has a eeprom which is same with the am5749 idk,  I use Board_writeIDInfo to write information into the eeprom, and I use Board_getIDInfo to read data from eeprom, the data is all 0xff, which is different from the data I want to write. I change the i2cTransaction.writeCount=2 into  i2cTransaction.writeCount=2+BOARD_EEPROM_HEADER_LENGTH+BOARD_EEPROM_BOARD_NAME_LENGTH+BOARD_EEPROM_VERSION_LENGTH+BOARD_EEPROM_SERIAL_NO_LENGTH; I found the forums, there is a question is same with mine, it says the problem is Board_writeIDInfo function, but I don't know the problem, can you help me to solve the problem? 

  • Hi,

    Is your code based on one of the existing PDK demos?  I will need to dig into the library.  Lkely we do need to issue a 16-bit read/ write, else you will see 0xff.  I've seen this in u-boot and Linux as well

    Regards,
    Mike

  • Hi,

    Thanks for your replay.

    I made the code according to eeprom_test in diag, the Board_getIDInfo is OK. but Board_writeIDInfo doesn't work. I made the write eeprom code according to the i2c_eeprom_read_and_display_task in app.c of baremetal_template_app_am572x_c66, and it is OK. but I don't know why Board_writeIDInfo doesn't work.