AnsweredAssumed Answered

KL03 software reset issue

Question asked by Tiger Lo on Apr 25, 2017
Latest reply on Apr 26, 2017 by Tiger Lo

Hi,

    software call the core_cm0plus.h define NVIC_SystemReset(void) , why system didn't reset ?

or there is another function call to reset the system.

 

 

/** \brief System Reset

The function initiates a system reset request to reset the MCU.
*/
__STATIC_INLINE void NVIC_SystemReset(void)
{
__DSB(); /* Ensure all outstanding memory accesses included
buffered write are completed before reset */
SCB->AIRCR = ((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
SCB_AIRCR_SYSRESETREQ_Msk);
__DSB(); /* Ensure completion of memory access */
while(1) { __NOP(); } /* wait until reset */
}

 

Thanks.

 

Tiger

Outcomes