How to store data on reset

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

How to store data on reset

跳至解决方案
732 次查看
lazaro
Contributor II

I'm using an MXRT1062 micro, after a certain number of restarts the watchdog is going off causing an error when the system is back on. I want to store the PC before the shutdown but don't have enough time to store it to flash. Is there anything on this chip I could use to store the PC before the reboot while the watchdog is going off?

0 项奖励
1 解答
712 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @lazaro ,

There is a 256-bit general-purpose register in SNVS. Maybe you can use it. Please refer to 20.3.3.2.1 in reference manual.

 

Regards,

Jing

在原帖中查看解决方案

3 回复数
713 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @lazaro ,

There is a 256-bit general-purpose register in SNVS. Maybe you can use it. Please refer to 20.3.3.2.1 in reference manual.

 

Regards,

Jing

703 次查看
lazaro
Contributor II

Is there an application note on how to use the SNVS?

0 项奖励
694 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Please refer to this link

https://community.nxp.com/t5/i-MX-RT/SNVS-general-purpose-registers/m-p/918327

If you haven't backup battery, there is no other way in this chip. You have to add a I2C eeprom or something like that.

 

Regards,

Jing