Detecting Different Software Reset Events, Additional Bits Beyond SRS

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

Detecting Different Software Reset Events, Additional Bits Beyond SRS

348 Views
Keith4DSmith
Contributor V

I understand the POR and SW bits of the RCM-SRS0 register.

I see the POR (and LVD) bits on a power on of my K22F eval board.

I see SW bit set when using a JTAG re(start). See https://community.nxp.com/message/1056898?q=Detecting%20Different 

I also see an SW bit set when calling the core_cm4.h function __NVIC_SystemReset()

What I would like to have is one or more additional bits to distinguish additional reasons for calling __NVIC_SystemReset().

What are recommended procedures to have data persist across a restart session?

Labels (1)
0 Kudos
1 Reply

283 Views
mjbcswitzerland
Specialist V

Hi Keith

See the first few paragraphs of Appendix B of http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf
for a simple method of leaving a reason for a commanded software reset.

Regards

Mark


For less questions and restrictions, and faster, cheaper developments: try uTasker for Kinetis

0 Kudos