power cycle needed after flash erase/program

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

power cycle needed after flash erase/program

ソリューションへジャンプ
699件の閲覧回数
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 解決策
651件の閲覧回数
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 返答(返信)
652件の閲覧回数
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

 

 

632件の閲覧回数
KelvinSmith
Contributor III
Thanks, that appears to have solved the problem.
0 件の賞賛
返信
675件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you please specify used device's partnumber? Thanks

0 件の賞賛
返信
670件の閲覧回数
KelvinSmith
Contributor III

This is the S32K146.

0 件の賞賛
返信