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