STM32CubeIDE not doing incremental builds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-06 11:38 AM
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?
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-07 1:39 PM
Usually incremental build works. If not, one reason may be some file time set to far future.
Also try to use the internal builder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-06 2:35 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-07 1:39 PM
Usually incremental build works. If not, one reason may be some file time set to far future.
Also try to use the internal builder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-08 1:41 AM
Thanks, Pavel! Changing the build from "external" to "internal" did activate the incremental build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-08 2:53 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-08 3:45 AM
This is a known issue with the internal builder. Already reported.
Hope ST will fix it. Meanwhile you can add a post-build script to print this info, convert to bin or whatever else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-08 5:04 AM
That's great news! I guess I'll revert to external build for now, since it's actually very fast on my machine.
