cancel
Showing results for 
Search instead for 
Did you mean: 

changing toolchain by running project setup again fails

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?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
0 REPLIES 0