AnsweredAssumed Answered

Error while reading EEPROM content via I2C in the S32K148EVB using the sample project

Question asked by Satish Singh on Feb 26, 2019
Latest reply on Feb 28, 2019 by Alina Banica

Hello ,

 

Currently  I am interfacing the Microchip 128bit EEPROM 24A00 , and after writing the content in to the EEPROM, the 

reading of the same differs from what is written, when they are done one after the other as can be seen in the below buffer content

 

LPI2C_DRV_MasterSendDataBlocking(INST_LPI2C1, buffer, TRANSFER_SIZE, true, OSIF_WAIT_FOREVER);
Transfer Buffer
buffer[0] uint8_t 0 '\0'
buffer[1] uint8_t 1 '\001'
buffer[2] uint8_t 2 '\002'
buffer[3] uint8_t 3 '\003'
buffer[4] uint8_t 4 '\004'
buffer[5] uint8_t 5 '\005'

 

Clear Buffer
buffer[0] uint8_t 0 '\0'
buffer[1] uint8_t 0 '\0'
buffer[2] uint8_t 0 '\0'
buffer[3] uint8_t 0 '\0'
buffer[4] uint8_t 0 '\0'
buffer[5] uint8_t 0 '\0'

 

LPI2C_DRV_MasterReceiveDataBlocking(INST_LPI2C1, buffer, (TRANSFER_SIZE - 1), true, OSIF_WAIT_FOREVER);
Receive Buffer
buffer[0] uint8_t 5 '\005'
buffer[1] uint8_t 3 '\003'
buffer[2] uint8_t 0 '\0'
buffer[3] uint8_t 0 '\0'
buffer[4] uint8_t 78 'N'
buffer[5] uint8_t 0 '\0'

 

We make use of the below version and i have attached the code too.

S32 Design Studio for ARM

Version: 2.0
Build id: 170810

 

So could you please let know how to resolve the same.

Attachments

Outcomes