2026-02-27 12:53 AM - last edited on 2026-03-02 3:00 AM by Andrew Neil
I've just installed the new STM32CubeIDE 2.1.0 and I came across some issues that didn't exist in previous versions.
First, I noticed that the compiler always compiles all the source files even though only one source file was modified.
I have large project with many source files and it takes about 2 minutes to compile all files. It's very annoying.
Second, when launchinig debug session all the source files are compiled again. It didn't work that way in previous versions of STM32CubeIDE. If the files were compiled previously, the debug session was launched immediately.
Is it possible to change this behavior but turning off some options or do I have to install older version of STM32CubeIDE ?
Solved! Go to Solution.
2026-03-02 10:59 PM
Hello all ,
Thank you @vaualbus for your help .
@kekon could you please try to disable the option "Refresh and poll using native hook" as suggested?
You can find this option under Window → Preferences. In the search field, type "workspace".
I will be waiting for your feedback .
THX
Ghofrane
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-02-27 3:02 AM
Hello @kekon
I'm currently checking this behavior. I will get back to you ASAP.
THX
Ghofrane
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-03-02 2:52 AM
Hello,
Same issue described in this post: After 2.0.0 to 2.1.0 update, CubeIDE always rebuilds *everything*
2026-03-02 2:59 AM
@kekon wrote:Second, when launchinig debug session all the source files are compiled again.
The default Debug behaviour is to do a build before download/debug - so this is actually just the same problem again.
As a workaround, you can disable this build in the Debug Configuration:
2026-03-02 3:21 AM
I tried changing the options in the "Build (if required) before launching" panel but it doesn't work.
I installed previous version (2.0.0) and it turns out that this version also works the same wrong way - it seems that 2.1.0 version screwed up some global settings of the CubeIDE that are used by all versions.
2026-03-02 3:36 AM
@kekon wrote:it seems that 2.1.0 version screwed up some global settings of the CubeIDE that are used by all versions.
What version of CubeMX did you use to create the Project?
Maybe the problem is with CubeMX ... ?
2026-03-02 3:38 AM
I don't use CubeMX. I always create "empty project" and add appropriate files to it by hand.
2026-03-02 3:42 AM
What do you see in the build log?
For an older version (1.13.0), which works correctly, I see:
11:37:55 **** Incremental Build of configuration Debug for project nucleo-f030-pwr ****In the case when there's nothing to build.
make -j8 all
arm-none-eabi-size nucleo-f030-pwr.elf
text data bss dec hex filename
6272 28 1580 7880 1ec8 nucleo-f030-pwr.elf
Finished building: default.size.stdout
11:37:56 Build Finished. 0 errors, 0 warnings. (took 1s.41ms)
2026-03-02 3:52 AM
12:43:37 **** Incremental Build of configuration Internal for project xxxxxxxxxxx ****
make -j4 all
arm-none-eabi-g++ "../Source/System/bit_converter.cpp" -mcpu=cortex-m4 -o-deprecated -fstack-usage...........
arm-none-eabi-g++ "../Source/System/energy_report_manager.cpp" -mcpu=cortex-m4 -std=gnu++20.............I trimmed the rest of the text 'cause its very large (many source files)
2026-03-02 3:59 AM
Thanks - so that shows that it is using make, and it should be doing an incremental build.