Application hangs after TL_Enable() is called. No BLE available
I am trying to set up a new project with BLE in it. Initially, it simply reads an accelerometer over SPI and flashes LEDS. I then used the configurator (the Cube bit) to turn on the BLE functionality. It adds a load of config code, but when I run it, the board runs through the initialisation and then hangs. If I run it in debug mode, and pause it after it hangs, it is in this code:
/**
* @brief This is the code that gets called when the processor receives an
* unexpected interrupt. This simply enters an infinite loop, preserving
* the system state for examination by a debugger.
*
* @param None
* @retval None
*/
.section .text.Default_Handler,"ax",%progbits
Default_Handler:
Infinite_Loop:
b Infinite_Loop
.size Default_Handler, .-Default_HandlerI have tried to set up the Cube configuration the same as the BLE_p2pserver setup, including all the interrupts, but it still does not work. I have tried putting while(1); blocks in each of the interrupts, but none of them seem to catch this.
Is there a step-by-step example somewhere to start and build a project with BLE in STM32CubeIDE that works?
I am happy to upload my project somewhere if that helps.