Hello ,
thanks for the reply , the comment in the initialize buffer is not right , the slave address I need to set is 0X50 (80U in decimal) and I have done the same in the attached code , but i Still have issue with reading the content. I have attached the code and snapshot of the buffer.
I write 0, 1, 2, 3, 4, 5 into the EEPROM , but when i Read I get the value 5, 3, 0, 0, 78, 78 in the buffer.



/* Initialize LPI2C Master configuration
* - Slave address 0x50
* - Standard operating mode, 5000 Hz frequency
* - See LPI2C components for configuration details
*/
LPI2C_DRV_MasterInit(INST_LPI2C1, &lpi2c1_MasterConfig0, &lpi2c1MasterState);
/* Initialize the data buffer */
for (i = 0u; i < TRANSFER_SIZE; i++)
{
buffer[i] = i;
}
/* Send a packet of data to the bus slave */
LPI2C_DRV_MasterSendDataBlocking(INST_LPI2C1, buffer, TRANSFER_SIZE, true, OSIF_WAIT_FOREVER);
/* Clear the buffer to prepare it for the next operation */
for (i = 0u; i < TRANSFER_SIZE; i++)
{
buffer[i] = 0u;
}
/* Request data from the bus slave */
LPI2C_DRV_MasterReceiveDataBlocking(INST_LPI2C1, buffer, TRANSFER_SIZE, true, OSIF_WAIT_FOREVER);
/* End of the driver example */
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/