This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why may my nrf52832 reset saying `Reset due to wake up from System OFF`?

Hello,

I am having a weird reset behaviour with my nrf52832pca10040, SDK12.2 with softdevice v3.

I have connected an acc into the SPI interface through these pins

 #define ADXL362_SCK_PIN   14  //D3
  #define ADXL362_MOSI_PIN  15  //D4
  #define ADXL362_MISO_PIN  16  //D5
  #define ADXL362_CS_PIN    18  //D7
  #define ADXL362_INT1      20  //D9

I have disabled the interruption input pin of the device as below, to avoid power issues as estated here

nrf_gpio_cfg_input(ADXL362_INT1,NRF_GPIO_PIN_PULLDOWN);
nrf_gpio_input_disconnect(ADXL362_INT1);

Howerver, I keep having a reset on my device, reading the the resetreas register with the functio, shown beneath, gives me this error

LOG:WARNING:Reset reasons:
LOG:WARNING:- OFF

Looking onto the datasheet is estated

Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO

But my only GPIO set as input is disabled as I showed above, what am I doing wrong?

THanks in advance,

Function to read the resetreas register

static void log_resetreason(void)
{
    /* Reset reason */
    uint32_t rr = nrf_power_resetreas_get();
    NRF_LOG_WARNING("Reset reasons:\r\n");
    if(0 == rr)
    {
        NRF_LOG_WARNING("- NONE\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_RESETPIN_MASK))
    {
        NRF_LOG_WARNING("- RESETPIN\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_DOG_MASK     ))
    {
        NRF_LOG_WARNING("- DOG\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_SREQ_MASK    ))
    {
        NRF_LOG_WARNING("- SREQ\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_LOCKUP_MASK  ))
    {
        NRF_LOG_WARNING("- LOCKUP\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_OFF_MASK     ))
    {
        NRF_LOG_WARNING("- OFF\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_LPCOMP_MASK  ))
    {
        NRF_LOG_WARNING("- LPCOMP\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_DIF_MASK     ))
    {
        NRF_LOG_WARNING("- DIF\r\n");
    }
    if(0 != (rr & NRF_POWER_RESETREAS_NFC_MASK     ))
    {
        NRF_LOG_WARNING("- NFC\r\n");
    }
}
Related