How to store data on reset

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

How to store data on reset

Jump to solution
1,039 Views
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 Kudos
Reply
1 Solution
1,019 Views
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

View solution in original post

3 Replies
1,020 Views
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

1,010 Views
lazaro
Contributor II

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

0 Kudos
Reply
1,001 Views
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