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

GPIO interrupt not work in ble_app_uart

Respected sir, setup for programming = Eclipse-gcc-toolchain-setup board = PCA10040

as per my way first take a ble_app_uart code startup my coading purpose. then we include pin_change_int(like merge both code). do not any change in "config" file and "make" file.

just add one change in "gpio_int" function like "BSP_BUTTON_1" instead of "BSP_BUTTON_0" and "BSP_LED_1" instead of "BSP_LED_0". because "BSP_LED_0" and "BSP_BUTTON_1" both alredy use in "ble_app_uart".

  • Hi,

    The ble_app_uart example already configures interrupt for the buttons with the BSP library( buttons_leds_init(), bsp_init(), bsp_btn_ble_init()), and also configures the LEDs, so you are probably getting some conflict when you are later using the gpio_int() function with the same pins.

    What are you trying to do/accomplish with your code changes?


    Note that we have now released SDK 14.1, where we have added support for Segger Embedded Studio (SES) IDE. You can use Segger Embedded Studio for commercial and non-commercial purpose with Nordic Semiconductor devices free of charge without any code limit. This could be a better option for you than using Eclipse.

    You can download SDK 14.1 here.

    You can download Segger Embedded Studio from here.

  • hey dude, i did used some another pins then ble examples pins., so, no chance for conflict that pins. but same issue. when we add gpio interrupt code. so, ble not able to work with it.

  • Are you using high or low accuracy for the GPIOTE ? i.e when calling e.g. GPIOTE_CONFIG_IN_SENSE_TOGGLE(accuracy), is accuracy set to true or false?

    If you are using low accuracy, you might need to increase GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS in sdk_config.h

Related