Hi Team,
SDK used 17.0.2
I am able to successfully wakeup the device from systemOFF using a gpio (not from sensor). In this case it is consuming only 350 nA (300 = nRF + 50 = Sensor), as expected. In this case a sensor is also running (HDC2080) .
This is the code I have used to configure GPIO to wakeup the system from systemOFF.
configure_gpio_wakeup(uint32_t pin_number, nrf_gpio_pin_sense_t sense)
{
nrf_gpio_pin_latch_clear(pin_number);
nrf_gpio_cfg_watcher(pin_number);
nrf_gpio_cfg_sense_set(pin_number, sense);
}
I will call the above function before transiting to systemOFF, and it is working. It is waking up the device from systemOFF when GPIO goes high.
configure_gpio_wakeup (13, NRF_GPIO_PIN_SENSE_HIGH);
Now I want to configure one more gpio from HDC2080 to wake the system from systemOFF.
So I will call the same function again like given below.
configure_gpio_wakeup (13, NRF_GPIO_PIN_SENSE_HIGH); //From another module
configure_gpio_wakeup (14, NRF_GPIO_PIN_SENSE_HIGH); //HDC2080 interrupt pin (Data ready/Interrupt. Push-pull output)
It is working functionality wise, but consuming extra 250 nA. That is, in systemOFF it is consuming (550 nA). I tried commenting the second line in above code, and then the current consumption comes to normal.
Could you please let me know what am I doing wrong ?