2025-07-15 5:00 AM - last edited on 2025-07-15 5:17 AM by Andrew Neil
Recently I'm trying to setup CLion and STM32CubeMX as I want to switch to a new IDE (By the way, the fact that STM32CubeIDE still doesn't have features like auto-triggered content asist, and that its poor, buggy GUI has bad compatibility with high DPI screen are just annoying). However, when I successfully generate the project in CubeMX and open it in CLion, CLion refuses to compile the project no matter what. I tried the bundled MinGW, CubeCLT1.18 and the older 1.16, and also CLion 2025.1, 2025.1.2, 2025.1.3. All didn't work. Up till this point I've been using CubeMX 6.15, and so I tried to install and use the older version (6.14.0). Everything suddenly works then. The project compiles without problem. Therefore, I suspect that there are some problems in the newest release of CubeMX (6.15) that are generating faulty CMake files.
Here are some screenshots of what happened. I used the same version of CLion and CubeCLT in the same configuration on two projects generated by CubeMX6.15 and 6.14. One compiled and the other didn't. The project created with CubeMX 6.15 cannot build at all and prompts that the compiler is broken.
PS: I've switched back to 6.14.1 for some days and everything is working alright.
2025-07-15 5:34 AM
Hello @Kairui
First let me thank you for posting and welcome to the ST Community.
Your request is under investigation, 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.