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

Can't wake from sd_power_system_off after I switch off UART

Dear all,

I'm trying to go to SYSTEMOFF mode and then wake up from activity on UART rx pin (nrf51822).

If I do this:

    nrf_uart_txrx_pins_set(NRF_UART0,NRF_UART_PSEL_DISCONNECTED,3);
    nrf_gpio_cfg_input(1,NRF_GPIO_PIN_PULLUP);
    nrf_gpio_cfg_sense_input(3, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW); //Put into sleep, wakeup on uart rx pin - low_level
    app_uart_close();

    sd_power_system_off();

I cannot wake up and my system remains asleep forever. If I comment out app_uart_close(), then I enter SYSTEM OFF and I am able to wake up but the consumption during the off mode is 1 mA.

I tried to power cycle my board and I get the same result. So it's not related to the DEBUG module. I tried with gpiote - it doesn't work either.

Any thoughts are kindly appreciated,

L. B.

Related