AnsweredAssumed Answered

KL02 run after a reset

Question asked by Scott Evans on Jun 19, 2017
Latest reply on Jun 27, 2017 by Kerry Zhou

Hi, I have a KL02 micro and it wont run after a sw reset (SYSRESETREQ). The chip does reset but is held in reset until i run it manually. how do i get it to run after a reset?

 

I simply have this in main :

 

SCB_AIRCR = SCB_AIRCR_SYSRESETREQ_MASK;

 

and then it resets and stays at the beginning of __thumb_startup()

 

I have verified that it doesn't run after the reset when not in debug with an LED that should flash. without the reset it happily flashes. With the reset it never comes on (obviously it wont flash at all but it should get the the point of turning the LED on before reseting again)

Outcomes