Why is there significantly more flash usage in default debug configuration than in release?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-27 8:30 AM
I've been playing around with a simple F103 project on CubeIDE and notice that the default debug configuration requires much more flash than the release, 31.64K vs. 15.25K. Why is this?
What is the difference in these configurations that creates this Flash difference? And in what file is the configuration stored?
Thanks for the help,
Dave
Solved! Go to Solution.
- Labels:
-
Flash
-
STM32CubeIDE
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-27 8:43 AM
The Debug config is typically at a much lower optimization level. It may also include extra information to make debugging easier. The Release is typically much smaller and faster, but harder to debug.
You can see the options/flags used for each configuration in project properties (C/C++ Build -> Settings -> Tool Settings).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-27 8:43 AM
The Debug config is typically at a much lower optimization level. It may also include extra information to make debugging easier. The Release is typically much smaller and faster, but harder to debug.
You can see the options/flags used for each configuration in project properties (C/C++ Build -> Settings -> Tool Settings).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-27 9:19 AM
Thanks TDK. It was the code optimization level that made the difference. None in debug and -Os in release.
