Hi,
I am trying to build out a button pressing scheme for BSP on a custom device with 15 buttons operating on a BL652 Laird Module (underlying nRF52832). After modifying the BOARD_PCA10040.h file to a custom one with our buttons (15) and leds (2), I've been able to get the LED initialization working provided I have defined my BUTTONS_NUMBER to 11 or less (not sure why). The LED indications change based on connecting and disconnecting to the BLE device, so that part works. However, when I increase the 'GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS' to 15 in the sdk_config.h file for our 15 buttons I get a hard fault.
I've traced the hard fault through the following areas of code and found that the fault is due to a pin (I think P0.14) being used twice (one for my button and one for something else 'maybe TRACE').
1. First - buttons_led_init (found in main.c)
2. Second - bsp_init (found in bsp.c)
3. Third - app_button_init (found in app_button.c)
4. Finally (Fault Here) - nrfx_gpiote_in_init (found in nrfx_gpiote.c)
Specifically the fault happens in the following with the following images showing the local variables, etc. information.
I've changed my clock configuration to the following for use in a BL652 and verified that I am not attempting to use high accuracy interrupts as described in the following link.
https://devzone.nordicsemi.com/f/nordic-q-a/35205/setting-xl1-xl2-as-gpio-does-not-work
What am I missing? Is there some other setting for P0.14 (likely in a TRACEDATA setting)? Is there some other sdk_config.h settings, or other build settings that need to be setup?
Thanks for the help!