Hi,
I am working with a nrf51822 and I have seen that the way to wake up from System Off mode is by a GPIO interrupt. I wanted to know if it is needed to configure previously the GPIO pin to wake it up from System Off mode.
Hi,
I am working with a nrf51822 and I have seen that the way to wake up from System Off mode is by a GPIO interrupt. I wanted to know if it is needed to configure previously the GPIO pin to wake it up from System Off mode.
Hi,
You can find examples on how to wakeup from system on and system off mode on our GitHub page.
Best regards,
Jørgen
You can configure the pin like this to wake up from sleep:
nrf_gpio_cfg_sense_input(PIN NUMBER, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
I used your settings but it's not working with my program. My controller still in System Off. I changed PIN NUMBER for one of my pin names, which is a digital input.
What pin number did you use? How are you entering sleep mode? You need to pull the pin low to wake up.
I use the P0_4. This is how I configure GPIO pin:nrf_gpio_cfg_input(RecibePin, nrf_gpio_pin_pull_t pull_config)
To enter to system off mode I use NRF_POWER->SYSTEMOFF=1 command.