Skip to main content
Lars Beiderbecke
Senior III
October 6, 2021
Solved

STM32CubeIDE not doing incremental builds

  • October 6, 2021
  • 2 replies
  • 2565 views

When I change a simple .c file and build the project, STM32CubeIDE always compiles all the files, including the unchanged ones. And there is no dependency between that one .c file and everything else.

Again, I didn't experience this behavior with TrueSTUDIO.

Which settings should I check to enable incremental builds with STM32CubeIDE?

This topic has been closed for replies.
Best answer by Pavel A.

Usually incremental build works. If not, one reason may be some file time set to far future.

Also try to use the internal builder.

2 replies

TDK
Super User
October 6, 2021

There's not really a setting that controls this. Builds are makefile based and "make all" will do an incremental build when possible. That is the default behavior.

This is Eclipse behavior, not anything STM32CubeIDE specific.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Pavel A.
Pavel A.Best answer
Super User
October 7, 2021

Usually incremental build works. If not, one reason may be some file time set to far future.

Also try to use the internal builder.

Lars Beiderbecke
Senior III
October 8, 2021

Thanks, Pavel! Changing the build from "external" to "internal" did activate the incremental build.

Lars Beiderbecke
Senior III
October 8, 2021

Hm, there is only one problem: With internal builds, I no longer get the "used bytes" information, like this:

 text	 data	 bss	 dec	 hex	filename
 90284	 17816	 71924	 180024	 2bf38	proj.elf

Is there a way to get incremental builds with the external builder? Or that information with the internal builder?