After booting, when you read the data flash, the data is cleared to 0.

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

After booting, when you read the data flash, the data is cleared to 0.

跳至解决方案
1,029 次查看
Aren
Contributor II

Write specific data to the data flash and then power cycle. After booting, when you read the data in the data flash, the data in the data flash is cleared to 0.
Are there any possible reasons why the data is cleared to 0?

标记 (1)
0 项奖励
回复
1 解答
1,006 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Hmm, that is not possible.

After writing data to the flash, did you verify that data are present in flash? Not just in the debugger GUI, but physically loaded in flash?

Once the data are loaded into flash, only way to remove them is to perform erase procedure.

I would guess, that your data was not programmed into uC and you see them only in debugger GUI.

Best regards,

Peter

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,000 次查看
Aren
Contributor II

Thank you for your answer.
The cause was that the debug code was misbehaving and overwriting it with 0.

Sorry about the fuss. 

0 项奖励
回复
1,007 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Hmm, that is not possible.

After writing data to the flash, did you verify that data are present in flash? Not just in the debugger GUI, but physically loaded in flash?

Once the data are loaded into flash, only way to remove them is to perform erase procedure.

I would guess, that your data was not programmed into uC and you see them only in debugger GUI.

Best regards,

Peter

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2010857%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%BC%80%E6%9C%BA%E5%90%8E%EF%BC%8C%E8%AF%BB%E5%8F%96%E6%95%B0%E6%8D%AEflash%E6%97%B6%EF%BC%8C%E6%95%B0%E6%8D%AE%E8%A2%AB%E6%B8%85%E9%99%A4%E4%B8%BA0%E3%80%82%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2010857%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%B0%86%E7%89%B9%E5%AE%9A%E6%95%B0%E6%8D%AE%E5%86%99%E5%85%A5%E6%95%B0%E6%8D%AE%E9%97%AA%E5%AD%98%EF%BC%8C%E7%84%B6%E5%90%8E%E5%85%B3%E9%97%AD%E7%94%B5%E6%BA%90%E3%80%82%E5%BC%80%E6%9C%BA%E5%90%8E%EF%BC%8C%E8%AF%BB%E5%8F%96%E6%95%B0%E6%8D%AEflash%E4%B8%AD%E7%9A%84%E6%95%B0%E6%8D%AE%E6%97%B6%EF%BC%8C%E6%95%B0%E6%8D%AEflash%E4%B8%AD%E7%9A%84%E6%95%B0%E6%8D%AE%E8%A2%AB%E6%B8%85%E9%99%A4%E4%B8%BA0%E3%80%82%3CBR%20%2F%3E%E6%95%B0%E6%8D%AE%E8%A2%AB%E6%B8%85%E9%99%A4%E4%B8%BA0%E7%9A%84%E5%8F%AF%E8%83%BD%E5%8E%9F%E5%9B%A0%E6%9C%89%E5%93%AA%E4%BA%9B%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2011011%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%BC%80%E6%9C%BA%E5%90%8E%EF%BC%8C%E8%AF%BB%E5%8F%96%E6%95%B0%E6%8D%AE%E9%97%AA%E5%AD%98%E6%97%B6%EF%BC%8C%E6%95%B0%E6%8D%AE%E8%A2%AB%E6%B8%85%E9%99%A4%E4%B8%BA0%E3%80%82%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2011011%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E4%BD%A0%E7%9A%84%E5%9B%9E%E7%AD%94%E3%80%82%3CBR%20%2F%3E%E5%8E%9F%E5%9B%A0%E6%98%AF%E8%B0%83%E8%AF%95%E4%BB%A3%E7%A0%81%E8%A1%8C%E4%B8%BA%E4%B8%8D%E5%BD%93%E5%B9%B6%E7%94%A8%200%20%E8%A6%86%E7%9B%96%E5%AE%83%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%E6%8A%B1%E6%AD%89%E9%80%A0%E6%88%90%E6%82%A8%E7%9A%84%E5%9B%B0%E6%89%B0%E3%80%82%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E