2026-03-19 11:29 AM
Board: NUCLEO-WL33 Toolchain: CMake + arm-none-eabi-gcc CubeMX version: 6.17.0 STM32CubeIDE version: 2.1.1
I am trying to run a basic STM32WL33 project generated by STM32CubeMX using the CMake toolchain instead of the native STM32CubeIDE project format.
The same CubeMX configuration, when generated as a native STM32CubeIDE project, works correctly and reaches HAL_Init() in main.c without any issue.
However, when using the CMake-based output, the firmware crashes during startup and
never reaches main().
Is there a known-good CMake startup/linker reference for the STM32WL33?
Solved! Go to Solution.
2026-04-13 7:10 PM
I was running into the same issue when choosing Makefile as my Toolchain in CubeMX. I noticed that the Makefile uses options and defines for Cortex-M4 instead of Cortex-M0. When I updated the Makefile, the issue was resolved.
2026-03-31 6:38 AM
Hello @Jdescot
Let me thank you for posting.
I am currently checking this behavior, and I will get back to you ASAP.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-04-02 8:24 AM
Hi Mahmoud Ben Romdhane,
I am using ST-LINK_gdbserver from STM32CubeIDE (v2.1.1), as well as CubeProgrammer from the same version. I am running a very basic project generated by STM32CubeMX, with no modifications after generation.
Feel free to ask any further questions.
Are you able to reproduce the issue?
Thank you,
Joël
P.S. I was unable to reply via private message, as it is refusing to let me respond.
2026-04-02 8:53 AM
My situation is almost the same. I am also getting stuck at this point (SystemInit).
Are you waiting for feedback from your internal team?
Thanks for sharing,
Joël
2026-04-08 2:30 AM
Hello @Jdescot
Let me thank you for bringing this issue to our attention.
The issue has been escalated to dev team under internal ticket : CDM0061429
I'll let you know as soon as the issue is fixed.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-04-13 7:10 PM
I was running into the same issue when choosing Makefile as my Toolchain in CubeMX. I noticed that the Makefile uses options and defines for Cortex-M4 instead of Cortex-M0. When I updated the Makefile, the issue was resolved.