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

is the Wake on GPIO available for nRF52840_dongle and what is the IOFF_RAMOFF_GPIO?

Hi All,

as the title say I'd like to know if is the Wake on GPIO available for nRF52840_dongle and what is the IOFF_RAMOFF_GPIO   ? 

My application should behave more or less as follow:

  1. initialize
  2. start advertise ble packet
  3. when some condition is met go in system off mode
  4. resume only when the SW1 button (the only button available) is pressed 

To do this in the main function I do as follow:

nrf_gpio_cfg_sense_input(6, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);

// other stuff

while (1) {

    if (/*condition to go system off */)
        NRF_POWER->SYSTEMOFF = 1;
        
}

but once entered in the System Off mode the only one to resume the system is resetting it through the RESET button.

Parents
  • as the title say I'd like to know if is the Wake on GPIO available for nRF52840_dongle and what is the IOFF_RAMOFF_GPIO   ? 

     The specification actually doesn't say, but I expect it to be very similar to the I_{OFF_RAMOFF_RESET}.

    Try setting it to pin 1.06 instead of 0.06:

    nrf_gpio_cfg_sense_input(6+32, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
    // or
    nrf_gpio_cfg_sense_input(NRF_GPIO_PIN_MAP(1,6), NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);

    P0.06 is the green LED, and not the button, so that is probably why it doesn't work.

    Let me know if it still doesn't work.

    BR,

    Edvin

Reply
  • as the title say I'd like to know if is the Wake on GPIO available for nRF52840_dongle and what is the IOFF_RAMOFF_GPIO   ? 

     The specification actually doesn't say, but I expect it to be very similar to the I_{OFF_RAMOFF_RESET}.

    Try setting it to pin 1.06 instead of 0.06:

    nrf_gpio_cfg_sense_input(6+32, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
    // or
    nrf_gpio_cfg_sense_input(NRF_GPIO_PIN_MAP(1,6), NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);

    P0.06 is the green LED, and not the button, so that is probably why it doesn't work.

    Let me know if it still doesn't work.

    BR,

    Edvin

Children
Related