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.)
There are others posts with the details for executing a software reset in the Kinetis K Series using the Cortex-M4 core.
Check out this post and solution: Re: WatchDog doesn't do anything on my K60N512 tower!
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?
I try to run this routine, from crt0.s file:
This routine make SW reset. Can I use it instead of AIRCR register?
Retrieving data ...