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

GPIOTE_IRQHandler does not get executed

We are working on a device that communicates with the mobile device. There is a button in the device to wakeup. But this button does not wake up the device. On debugging we found that "GPIOTE_IRQHandler" is not getting called when there is a change in the port pin.

Below is the configuration:

NRF_GPIO->PIN_CNF[SWITCH0] = (GPIO_PIN_CNF_SENSE_Low << GPIO_PIN_CNF_SENSE_Pos)     \
          | (GPIO_PIN_CNF_DRIVE_S0S1 << GPIO_PIN_CNF_DRIVE_Pos)       \
          | (GPIO_PIN_CNF_PULL_Disabled << GPIO_PIN_CNF_PULL_Pos)      \
          | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos)      \
          | (GPIO_PIN_CNF_DIR_Input << GPIO_PIN_CNF_DIR_Pos);

Can you please advice why this interrupt does not get triggered???

Note: By default the port pin is pulled high and on a button press gets to logic Zero.

Related