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 7:06 AM
As I answered in the other post, I found that disabling "Refresh and poll using native hook" in workspace settings, make the problem go away.
After the update I got this option enabled by default.
I was suggested to turn this on to get better performance in last releases but saw the issue and revert back by disable it.
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-03-02 11:57 PM
It seems to work properly now, thanks a lot !
Just out of curiosity - what does the "Refresh using native hooks or polling" option do ?
2026-03-03 1:29 AM
@kekon wrote:what does the "Refresh using native hooks or polling" option do ?
See this description in the other thread.
Also my guess as to why it's happened - perhaps @Ghofrane GSOURI could confirm/deny?
2026-03-03 2:02 AM - edited 2026-03-03 2:03 AM
Hello @kekon
Could you please share your project for further investigation, or at least provide a more detailed scenario that allows us to reproduce the issue?
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-03 2:11 AM
Hello,
I've already solved the problem the way you suggested in previous post (written at 2026-03-02 11:57 PM)
2026-03-03 2:12 AM
@kekon wrote:
Hello,
I've already solved the problem the way you suggested in previous post (written at 2026-03-02 11:57 PM)
So please accept it as solution.
2026-03-18 5:21 AM
STM32CubeIDE 2.1.1 released - last week; might be worth a try?
@Ghofrane GSOURI should that release fix this issue?
2026-03-18 5:33 AM
Hi,
I've just installed it, and I'm in the process of testing. There are some issues (but not very important now) with recognizing C++20 (and later versions) syntax by Eclipse. When writing source code for C++ modules for example, all the source code lines are marked as syntax error. Someone said this would never be corrected... Is that true ?
2026-03-18 5:41 AM
I noted that specifically in relation to the topic of this thread - "CubeIDE 2.1.0 always builds *all* files".
If you want to raise other issues, please start a new thread.