Skip to main content
Associate II
February 27, 2026
Solved

CubeIDE 2.1.0 always builds *all* files

  • February 27, 2026
  • 5 replies
  • 1331 views

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 ?

 

Best answer by Ghofrane GSOURI

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".

IDE.png

I will be waiting for your feedback .

THX

Ghofrane

5 replies

Ghofrane GSOURI
Technical Moderator
February 27, 2026

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.
Associate II
March 2, 2026

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.

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
March 3, 2026

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".

IDE.png

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.
mƎALLEm
Technical Moderator
March 2, 2026
"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."
Andrew Neil
Super User
March 2, 2026

@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:

Image1.png

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
kekonAuthor
Associate II
March 2, 2026

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.

Andrew Neil
Super User
March 2, 2026

@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 ... ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
March 2, 2026

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 ****

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)
In the case when there's nothing to build.
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
kekonAuthor
Associate II
March 2, 2026
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)

Andrew Neil
Super User
March 2, 2026

Thanks - so that shows that it is using make, and it should be doing an incremental build.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
March 18, 2026

@kekon 

STM32CubeIDE 2.1.1 released - last week; might be worth a try?

@Ghofrane GSOURI should that release fix this issue?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
kekonAuthor
Associate II
March 18, 2026

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 ?

 

Andrew Neil
Super User
March 18, 2026

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.

But note: https://community.st.com/t5/stm32cubeide-mcus/c-c-indexer-and-compilers-c23-support/m-p/886808/highlight/true#M41397

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.