2025-11-18 10:29 AM
I want to change the selected toolchain for a project by clicking on "Setup STM32Cube project(s)" and selecting the desired toolchain and clicking save.
I want to change from clang to gcc to test a few things.
It keeps using the old toolchain (clang). Even if I delete the build folder.
If I delete CMakePresets.json I get an error that the project requires a preset.
If I modify CMakePresets.json I get the following warning message when building:
[cmake] Manually-specified variables were not used by the project:
[cmake]
[cmake] CMAKE_TOOLCHAIN_FILE
[cmake]
In STM32CubeMX the toolchain option is greyed out.
What's the proper way to change the tool chain?