I'm using an nRF52840 and SDKv17.1.
I have an active-high interrupt source connected to a GPIO pin. I understand that a GPIO should be able to wake up a system from system-off state. The interrupt source is an accelerometer.
I use this GPIO configuration:
err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_config_t PIN_INT1_config = NRFX_GPIOTE_CONFIG_IN_SENSE_LOTOHI(true);
PIN_INT1_config.pull = NRF_GPIO_PIN_PULLUP;
err_code = nrf_drv_gpiote_in_init(NRF_GPIO_PIN_MAP(1, 5), &PIN_INT1_config, adxl372_int1_pin_handler);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(NRF_GPIO_PIN_MAP(1, 5), true);
I have tested this using sleep mode and it works as expected. When I use NRF_POWER->SYSTEMOFF the system does not power-on.
Is there a GPIO configuration issue here?