Reset or Reboot Reason

I am using nrf52832, softdevice S112 and SDK 17.1.0. I am running the peripheral ble_uart example continuously with the central device sending connects and disconnects in loop.

I see that after a while the peripheral resets/reboots. After the reset when I read NRF_POWER->RESETREAS the value is 0x10004 (Soft Reset Detected).

What does this reset reason mean? How can I debug the root cause of this reset?

Parents Reply
  • Hi ,

    Thank you for looking to this.

    I did put a breakpoints for calls to NVIC_SystemReset() and observed that during every reboot/reset I am ending up in 

    #if defined (CONFIG_GPIO_AS_PINRESET)
     if (((NRF_UICR->PSELRESET[0] & UICR_PSELRESET_CONNECT_Msk) !=              (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos)) ||
    ((NRF_UICR->PSELRESET[1] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos))){
    nvmc_config(NVMC_CONFIG_WEN_Wen);
    NRF_UICR->PSELRESET[0] = RESET_PIN;
    nvmc_wait();
    NRF_UICR->PSELRESET[1] = RESET_PIN;
    nvmc_wait();
    nvmc_config(NVMC_CONFIG_WEN_Ren);
    NVIC_SystemReset();
    }
    #endif

     This is in SystemInit() function and gets called during startup.

    Can you please help me in debugging the reason for the system reset?

Children
Related