power cycle needed after flash erase/program

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

power cycle needed after flash erase/program

跳至解决方案
696 次查看
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 项奖励
1 解答
648 次查看
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

 

 

在原帖中查看解决方案

4 回复数
649 次查看
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

 

 

629 次查看
KelvinSmith
Contributor III
Thanks, that appears to have solved the problem.
0 项奖励
672 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you please specify used device's partnumber? Thanks

0 项奖励
667 次查看
KelvinSmith
Contributor III

This is the S32K146.

0 项奖励