2026-01-06 12:10 PM
Problem:
I recently updated to 2.0.0 of STM32CubeIDE and I encountered an issue when attempting to build for Debug. I first noticed an issue when trying to run a Debug Configuration. Before 2.0.0, it would build Debug before flashing the built firmware and starting the debugging server; pretty much default settings. Today, it started skipping the build step. I tried building Debug manually with the dropdown on the hammer icon and clicking "Debug." Instead, it built for Release.
Solutions:
- Right click on the project -> Build Configurations -> Build Selected... and select Debug.
AND
- Setting Debug as the active build and right click on the project -> Build Project
These solutions would build for Debug AND clear both of the above issues. As in the hammer icon -> Debug would actually build for Debug and the Debug Configuration would build before flashing and debugging.
2026-01-06 7:54 PM
I would not recommend updating/migrating your project to Cube IDE v2.0.0.
2026-01-06 11:28 PM
Hello @Dylan_P
I believe it is not a bug in STM32CubeIDE, but a project configuration issue. For your specific project, the active build configuration was set to Release or otherwise misaligned with the Debug launch configuration, so when you tried to “Debug,” the IDE actually built (or reused) the Release configuration and sometimes skipped the build step. After you explicitly selected and built the Debug configuration and set it as the active one, the project’s build and debug settings became consistent again, and the IDE behaved as expected.
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-01-07 6:55 AM - edited 2026-01-07 6:55 AM
The debug configuration is explicitly set to use the Debug Build Configuration and the "Enable Auto Build" is selected. Even if Release is set as the active configuration, why should that not build Debug? Also, I feel like hammer icon -> Debug should build Debug. Why would it ever be expected behavior to build Release.
These behaviors specifically changed when upgrading to 2.0.0. Was that intentional?
2026-01-07 7:01 AM
@Dylan_P wrote:I feel like hammer icon -> Debug should build Debug.
Indeed it should.
But that would not affect which configuration the debugger downloads.
2026-01-07 7:08 AM
Right, the debugger did appear to download the Debug build. Sorry if that wasn't clear. My problem was that it was not building it before doing that.