Hi
Please advice me howto perform SW reset to the chip: go to c-startup, clear stack, initialize global variables and so on.
(There is also option to force watchdog timeout in order to perfrom reset.)
Thanks
MF
Solved! Go to Solution.
Hi MF,
There are others posts with the details for executing a software reset in the Kinetis K Series using the Cortex-M4 core.
Hi Derek
Thanks for your answer.
I Try to run this code in the post, but it didn't make SW reset:
temp_AIRCR = (unsigned int)scb->AIRCR;
temp_AIRCR &= 0x0000ffff;
temp_AIRCR |= 0x05Fa0000;
temp_AIRCR |= SCB_AIRCR_SYSRESETREQ_MASK;
scb->AIRCR = temp_AIRCR;
Do I miss something important?
Another question:
I try to run this routine, from crt0.s file:
__startup();
This routine make SW reset. Can I use it instead of AIRCR register?
Thanks
MF