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.

CAT24C256W I2C serial EEPROM did NOT work properly on AM335x ICE

Dear Sir,

We use SDK (01.00.00.08) to run sample code on AM335x ICE platform. For using CAT24C256W, we reference sample code in SDK install package.
Sample code path: sdk\starterware\examples\evmskAM335x\hsi2c_eeprom
We can successfully compile our sample code and download into AM335x ICE platform. But when the program execute to some parts of CAT24C256W initial code, it will cause the whole system fail. Could you help to give any hint about this problem or provide sample code for we to reference.

Below is our testing code:
// initialize for I2C EEPROM
I2C0ModuleClkConfig();
I2CPinMuxSetup(0);
I2CINTCConfigure();
IntMasterIRQEnable();

When the program execute to I2CINTCConfigure(),
it will cause the whole system fail.
Further tracing into I2CINTCConfigure(),
when it runs to IntAINTCInit(); and IntSystemEnable(I2C_INT_NUM);
it will cause the whole system fail.

Any further comments, I would appreciate.

Many thanks and regards,

Ryan Hsu

  • Hi Ryan,

    I don't know whats going wrong with the starterware EEPROM sample application. Is your application crashing from IntSystemEnable ? Have you made any modifications on the application ?


    Anyhow, There is an function in Industrial sdk which actually reads the data from EEPROM. File am335x_indcomm_startup.c in sdk\platform\am335x\src has an API named DetectBoardType which reads the content from EEPROM to detect the board type.

    Regards,

    Shahid