AnsweredAssumed Answered

KW30Z ResetMCU after OTAP upload

Question asked by Lucian Firan on Mar 3, 2017
Latest reply on Mar 15, 2017 by Lucian Firan

KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0); IAR 7.50

 

Sometimes reset mcu fails after OTAP 100% upload, sometimes in debug mode.

What could be the reason ?

SWD pins set-up or reset pin set-up ?

 

KW40Z_Connectivity_Software_1.0.1\ConnSw\framework\Reset\Reset.c

void ResetMCU(void)
{
  NVIC_SystemReset();
  while(1);
}

C:\Freescale\KW40Z_Connectivity_Software_1.0.1\KSDK_1.3.0\platform\CMSIS\Include\core_cm0plus.h

/** \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 */
}

/*@} end of CMSIS_Core_NVICFunctions */

Outcomes