chip immediatelly wakes up after entering system off

Hi,

I am developing app using ant softdevice s212. I want nrf52832 to enter system off and stay there until interrupt from sensor occures. This interrupt is connected with sense mechanism. The problem is that right after entering system off, chip wakes up. I do not know who have woken up the chip. Can you please guide me, what should I check and whether these is some option to check what caused the wakeup? To enter system off I am using sd_power_system_off().

Thanks,

Pepam

Parents
  • Hello ovrebekk,

    I have commented out the line which was responsible for sense setup and chip was still waking up immediatelly. I checked resetreas, and I can read value 4 after powering the board up, but than I can read 0 every time it immediatelly resets. This is how I do resetreas register reset:

        int main(){
            uint8_t rst = 0;
            log_init();
            rst = NRF_POWER->RESETREAS;
            NRF_LOG_INFO("RESET REASON : %d", rst);
            NRF_POWER->RESETREAS = rst;
            ...
        }

Reply
  • Hello ovrebekk,

    I have commented out the line which was responsible for sense setup and chip was still waking up immediatelly. I checked resetreas, and I can read value 4 after powering the board up, but than I can read 0 every time it immediatelly resets. This is how I do resetreas register reset:

        int main(){
            uint8_t rst = 0;
            log_init();
            rst = NRF_POWER->RESETREAS;
            NRF_LOG_INFO("RESET REASON : %d", rst);
            NRF_POWER->RESETREAS = rst;
            ...
        }

Children
Related