Flash memory issue in s32k116

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flash memory issue in s32k116

634 Views
pankajprasad100
Contributor III

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-

 

pankajprasad100_0-1663319525329.png

 

After writing the data into the memory location this is how it looks-

pankajprasad100_1-1663319543200.png

 

 

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.

 

pankajprasad100_2-1663319558159.png

 

 

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

0 Kudos
Reply
1 Reply

611 Views
lama
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply