Dear Nordic team,
i am stilll struggeling with the GPIO set-up in system off mode. It seems, that both GPIO_INT_EDGE_TO_ACTIVE and GPIO_INT_LEVEL_ACTIVE are working fine (few µA). This contradicts with most of the ticktets i have looked at (and my own code where i tested this a few months ago!). Are there any changes in the SDK and / or the nrf52840 chip revisions which make this operate correctly now? I have set "sense-edge-mask" for the relevant pins.
#if 1 if (flux_detect_event == EV_FLUX_DETECTED) { err = gpio_pin_interrupt_configure_dt(gpio_dt_spec_flux_detect, GPIO_INT_EDGE_TO_ACTIVE); } else { err = gpio_pin_interrupt_configure_dt(gpio_dt_spec_flux_detect, GPIO_INT_EDGE_TO_INACTIVE); } #else if (flux_detect_event == EV_FLUX_DETECTED) { err = gpio_pin_interrupt_configure_dt(gpio_dt_spec_flux_detect, GPIO_INT_LEVEL_ACTIVE); } else { err = gpio_pin_interrupt_configure_dt(gpio_dt_spec_flux_detect, GPIO_INT_LEVEL_INACTIVE); } #endif