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

Wake up from system off using GPIO

Hi,

i am trying to wake up the nrf52832 from system off with a gpio interrupt.

When the signal on my gpio pin 28 goes from Hi to Lo, i trigger a callback function in which i set the nrf52832 to system off. When the signal on the pin goes from Lo to Hi, it needs to wake up the chip.


I am using the GPIOTE driver :

 // Init gpiote driver
 err_code = nrf_drv_gpiote_init();
 APP_ERROR_CHECK(err_code);

 nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);
 
 err_code = nrf_drv_gpiote_in_init(28, &config, on_power_low);
 APP_ERROR_CHECK(err_code);

 nrf_drv_gpiote_in_event_enable(28, true);

Right now, the chip can't wake up. Am i missing something ?

Note: When i push my button (wich is another GPIO configured with the GPIOTE driver, it wakes up the chip).

Parents Reply Children
No Data
Related