power cycle needed after flash erase/program

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

power cycle needed after flash erase/program

Jump to solution
1,005 Views
KelvinSmith
Contributor III

When our code reflashes the data flash memory, often (but not always) it is necessary to power cycle the board before the new data reads correctly.

So, for more details, the flash memory is at address 0x10000000 and we write about 10 bytes into it as configuration data. When configurations are to be changed, we erase that sector and then write the new data there. Frequently, after this, the data at address 0x10000000 continues to read the old values until after a power cycle, at which point it holds the new values.

Is there something that the code can do to flush out these stale values?

0 Kudos
Reply
1 Solution
957 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Do you have disabled cache before flash programming?

Pay attention to following thread:

https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778380

 

 

View solution in original post

4 Replies
958 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Do you have disabled cache before flash programming?

Pay attention to following thread:

https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778380

 

 

938 Views
KelvinSmith
Contributor III
Thanks, that appears to have solved the problem.
0 Kudos
Reply
981 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you please specify used device's partnumber? Thanks

0 Kudos
Reply
976 Views
KelvinSmith
Contributor III

This is the S32K146.

0 Kudos
Reply