2020-09-27 08: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.
2020-09-27 08: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).
2020-09-27 08: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).
2020-09-27 09:19 AM
Thanks TDK. It was the code optimization level that made the difference. None in debug and -Os in release.