I have just started developing my first bluetooth application and came across an hardfault during softdevice handles the Radio Interrupt. Since I'm fairly new to bluetooth and nordic chips also, I'm pretty sure I'm doing something wrong. The hardfault occurs during processing the radio interrupt somewhere in the softdevice code when it executes an SVC/SWI(0xFF). Since SVC has lower/equal priority to radio interrupt and can't be executed, an HardFault happens. The problem occurs not immediately, but after a random number of seconds.
I have now idea what to do about it, since I have not found any information about the softdevice internals. I'm using Softdevicee S132 V5.1.0 on an nRF52810 (Laird BL651)
Here is a screenshot from my debugger:
The source code of my application is here
https://gitlab.com/amesser-group/electronic-devices/ble-ai4do8-controller/tree/master/firmware
The source of the bluetooth-"driver":
Any help is kindly appreciate, I'm somehow lost.