Hi,
I am working on a project where I need to store the data in the flash region section in which we have used the example code-
After writing the data into the memory location this is how it looks-
Again if we try to write the data with different values into the same memory location then the flash memory is corrupted and program hangs.
Could you please suggest how to resolve the issue.
NOTE:- we need to write the data in the same location multiple times.
MCU-S32K116
IDE-S32 DESIGN STUDIOS
COMPILER-IAR
Regards,
Pankaj
Hi,
the flash memory is not automatically erased before write. The memory, you write data in, must be in erased status. Because the phrase is programmed the entire phrase must be in erased state to be able to program it. The FLASH memory does not support cumulative programming.
The problem for you can be that the least part of the memory which can be erased is a sector.
Best regards,
Ladislav