Hi,
I do not understand why is I use Eep_Ftfc_Example_S32K144 works okay.
But if i remove Erasing and Write code and so i just want to read the previus stored data, it fails with error "FTFC_EEP_IP_STATUS_BLOCK_INCONSISTENT".
I have set both "Preserve Partitioning for teh device" and "Preserve this Range" from 0x10000000 to 0x1000ffff.
So the second round code is:
/* Initialize Clock */
Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
/* partition only if it was not partitioned before for EERAM with code 0x4 */
Eep_DepartParitition(T_EEEPROM_SIZE);
/* Initialize Eep driver */
Ftfc_Eep_Ip_Init(&EepFtfcCfg_VS_0);
// /* Erase memory by writing erase value */
// for(i=0; i<EEP_WRTESTPATT_SIZE; i+=4U)
// {
// retJobResultType = Ftfc_Eep_Ip_Erase(EEP_ERASE_START_ADD + i, FTFC_EEP_IP_PAGE_LONGWORD, FALSE);
// if(FTFC_EEP_IP_STATUS_OK != retJobResultType)
// {
// Exit_Example(FALSE);
// return 0;
// }
// }
//
// /* Write one or more complete eeprom pages to the eeprom device */
// for(i=0; i<EEP_WRTESTPATT_SIZE; i+=4U)
// {
// retJobResultType = Ftfc_Eep_Ip_Write(EEP_ERASE_START_ADD + i, dataWrTestPatt + i, FTFC_EEP_IP_PAGE_LONGWORD, FALSE);
// if(FTFC_EEP_IP_STATUS_OK != retJobResultType)
// {
// Exit_Example(FALSE);
// return 0;
// }
// }
/* Compares a eeprom memory area with an application data buffer */
for(i=0; i<EEP_WRTESTPATT_SIZE; i+=4U)
{
retJobResultType = Ftfc_Eep_Ip_Compare(EEP_ERASE_START_ADD + i, dataWrTestPatt + i, FTFC_EEP_IP_PAGE_LONGWORD);
if(FTFC_EEP_IP_STATUS_OK != retJobResultType)
{
Exit_Example(FALSE);
return 0;
}
}
Thank you in advance.