Hi,
I'm trying to put my nRF52840 in System OFF and wake it up by DETECT signal on GPIO. For that I use gpio_pin_configure() with GPIO_INPUT | GPIO_INT_HIGH_1 flags but it doesn't work. I looked on the code sample nfc/system_off.
I guess the chip is in System OFF according to the current consumption but I can't wake up.
Here is the code used:
gpio_pin_configure(p_act, ACT_PIN, GPIO_INPUT | GPIO_INT_HIGH_1);
pm_power_state_force((struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});
k_sleep(K_MSEC(1));
Is there something wrong in the procedure ? GPIO_INT_HIGH_1 and GPIO_INT_LOW_0 are the correct flags ?
Best regards,
Romain
Edit: The ACT pin is configured as output for Radio Notification and set to input just before System OFF procedure. If there is nothing wrong in the above lines I may try to disconnect mpsl IRQ from the ACT pin...
Config: SES with NCS 1.6.1, WIN10 x64