Dear Nordic,
I am using nRF52832-XXAB, SDK 15
I am aware that in order to enter SYSTEM OFF Mode and woke up by an GPIO event,
I have to set "nrf_gpio_cfg_sense_input(PIN_NUMBER, PULL_STATUS, SENSE_STATUS)" before calling NRF_POWER->SYSTEMOFF = 1
In my case, I want my system enters SYSTEM OFF due to a button being pressed for 10 seconds.
That button is at low level when being pressed and at high level in other times.
I expect users will keep pressing the button even the system already enters SYSTEM OFF Mode, so I am trying to deal with this situation.
However I discovered no matter what settings I set, the system always instantly wake up and starting to boot from my boot-loader(except one),
which really confused me.
Here are the combination I tried:
1. nrf_gpio_cfg_sense_input(BTN_PIN, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_LOW)-->Instantly boot
2. nrf_gpio_cfg_sense_input(BTN_PIN, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_HIGH)-->Instantly boot
3. nrf_gpio_cfg_sense_input(BTN_PIN, NRF_GPIO_PIN_PULLDOWN, NRF_GPIO_PIN_SENSE_LOW)-->Instantly boot
4. nrf_gpio_cfg_sense_input(BTN_PIN, NRF_GPIO_PIN_PULLDOWN, NRF_GPIO_PIN_SENSE_HIGH)-->Cannot boot, no matter how hard I press the button
5. nrf_gpio_cfg_sense_input(BTN_PIN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW)-->Instantly boot
6. nrf_gpio_cfg_sense_input(BTN_PIN, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_HIGH)-->Instantly boot
If I wish to implement a mechanism that allows the system to wake up by that button GPIO only if users release that button AFTER entering SYSTEM OFF Mode,
How would you suggest I achieve it?
Thanks.