STM32WB09: Cannot build BLE project
I cannot build a simple BLE project using the newest version of STM32CUBEIDE (1.16.1) for the STM32WB09KE.
Steps taken:
Create new project for the STM32WB09KE.
Enable all dependencies needed for RADIO, RADIO_TIMER and STM32_BLE, and enabled those.
When trying to build the project after generating code at this stage, i get an error for "fatal error: stm32wb0x_ll_rng.h: No such file or directory".
This can be resolved by enabling the RTC in the device configuration tool.
When trying to build now, i get he following warning, and error:
C:/ST/STM32CubeIDE_1.16.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: C:/ST/STM32CubeIDE_1.16.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/thumb/v6-m/nofp/crtn.o: missing .note.GNU-stack section implies executable stack
C:/ST/STM32CubeIDE_1.16.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
I cannot seem to find a way to resolve this error, but i am able to build the project if i add "-z noexecstack" to properties -> c/c++ build -> settings -> MCU/MPU GCC Linker -> Other flags.
Now the project will build, but if i try to upload this to a stm32wb09KE nucleo board, the code gets stuck in the MX_RADIO_TIMER_Init function, at
/* Wait to be sure that the Radio Timer is active */
while(LL_RADIO_TIMER_GetAbsoluteTime(WAKEUP) < 0x10);
So it seems like the radio timer is never initialized.
If i try to build the example "BLE_HeartRate" that goes with the STM32WB09 nucleo board, i can upload the project perfectly fine, and the device shows up in the BLE toolbox app for smartphone.
I am unable to figure out why i cannot make a project that works myself. What am i missing?
