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.
Why do you use nrf_gpio_cfg_input()? I said you should use nrf_gpio_cfg_sense_input().
Also note that if you are in debug mode, you will wake up from sleep mode immediately. Try to turn the DK on and off to exit debug mode, if it still doesnt work with nrf_gpio_cfg_sense_input().
Sorry, now I used nrf_gpio_cfg_sense_input() but it keeps not working. I am not in debug mode, because I am using an online compiler.
Which online compiler are you using? You are still running the compiled code on your board?
Finally I put pin number 4 like the pin to wake up from system off. Now it wakes up in the moment that goes to sleep, without being activated the pin.
I got it!! The only thing I had to change was the pin sense. This is how I did: nrf_gpio_cfg_sense_input(4, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_HIGH);
Thanks for the help Daniel!!