Hi,
My target is S32K, I'm using EVB144 and design studio.
I'm using flash_partioning example as a reference for implementation of EEPROM in my project.
Using openSDA for flashing and debugging. I can partition Flex NVM and write to EEPROM on the same power cycle and when I power off and on again it works as well, That is the partition is preserved. However to test this I tried to remove FLASH_DRV_EEEWrite(&flashSSDConfig, address, size, sourceBuffer);
statement which writes to EEPROM and see if the data is preserved in EEPROM.
Commenting that statement out and download of the code breaks the whole thing loose.
I get SIM->FCFG1.DEPART =0XFFFF and a running reset. I don't know if this is a TOOL issue (MASS ERASE PRE DOWNLOAD)
or something that I'm doing or not doing. I am not doing anything outside the project example .I can't find a range for addresses to download on this TOOL for flash programming.
I just don't know what's causing this.
Any Ideas?
really need help with this.
Thanks,
Hi,
If you remove the write function, you need to remove the code that verifies the written data.
// ret = FLASH_DRV_EEEWrite(&flashSSDConfig, address, size, sourceBuffer);
if (ret != STATUS_SUCCESS)
{
return ret;
}
// /* Verify the written data */
// if (*((uint32_t *)sourceBuffer) != *((uint32_t *)address))
// {
// /* Failed to write data to EEPROM */
// exit_code = 1u;
// return exit_code;
// }
Regards,
Daniel