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

zephyr gpio interrupt not fireing

I just tried the Button example on the nrf52-dk development board, and the interrupt for the defined button GPIO does not seem to *trigger

Zephyr 1.8.0 (fcb9144dc git)

make BOARD=nrf52_pca10040

and the example under

samples/basic/button/src/main.c which explicitly states support for the nrf52-dk dev board.

I am not exactly sure what is wrong, the subset of GPIO related options are:

 CONFIG_GPIO_AS_PINRESET=y
 CONFIG_GPIO=y
 # CONFIG_GPIO_DW is not set
 # CONFIG_GPIO_SCH is not set
 # CONFIG_GPIO_MMIO32 is not set CONFIG_GPIO_NRF5=y
 CONFIG_GPIO_NRF5_P0=y
 CONFIG_GPIO_NRF5_P0_DEV_NAME="GPIO_0"
 CONFIG_GPIO_NRF5_PORT_P0_PRI=1
 # CONFIG_SPI_CS_GPIO is not set

According to the function sheet, P0.13 which is SW0 on the nrf52dk has no alternate functionality www.zephyrproject.org/.../nrf52_pca10040.html

Related