Software reset, from code
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- daverlee
- Posts: 19
- Joined: Tue Jun 11, 2013 9:31 pm
Software reset, from code
I assume since this is an ARM device, that there's some value I can write to SCB_AIRCR to get this to reset itself from my code, but SCB_AIRCR is unrecognized. Is there any way to reset a circuit playground express from my code?
- westfw
- Posts: 2008
- Joined: Fri Apr 27, 2007 1:01 pm
Re: Software reset, from code
SCB->AIRCR
Maybe (not near an actual compiler at the moment.)
https://github.com/arduino/ArduinoCore- ... lus.h#L301
Maybe (not near an actual compiler at the moment.)
https://github.com/arduino/ArduinoCore- ... lus.h#L301
- daverlee
- Posts: 19
- Joined: Tue Jun 11, 2013 9:31 pm
Re: Software reset, from code
yup, that's it!
for anyone else who needs it:
SCB->AIRCR = ((0x05FA<<16)|SCB_AIRCR_SYSRESETREQ_Msk);
for anyone else who needs it:
SCB->AIRCR = ((0x05FA<<16)|SCB_AIRCR_SYSRESETREQ_Msk);
Please be positive and constructive with your questions and comments.