AnsweredAssumed Answered

Correct method to reset MKW01Z128

Question asked by Stefano Pieri on Jun 22, 2016
Latest reply on Sep 20, 2016 by jeremyzhou

Hi all,

i try to make a SW reset on the MKW01Z in a simple application derived from the WirelessUart example with a bare metal OS.

The code that i use to reset is simply:

 

NVIC_SystemReset();

 

I try even this:

 

               int index_timer=0;

              MLMEPhySoftReset();

              GPIO_DRV_WritePinOutput(kGpioXcvrReset, 0);

              while(TMR_StopTimer(index_timer)!=gTmrInvalidId_c){index_timer++;};

              OSA_EXT_InterruptDisable();

              NVIC_SystemReset();

 

But in any case the result is that sometimes HardFault rises up.

Any suggestions?

 

Best,

Stefano

Outcomes