Build a project in "release" mode
Hi,
“Debug” and “Release” are not modes but just build configuration profiles. The differences between those two are that on “Release” every optimization options are enabled to reduce binary fingerprint, to enhance execution time and every debug symbols are removed so debugging might be impossible afterward. If your project does not work on “Debug” profile, there is fewer chances it works in “Release”.
If you still need to create a “Release” configuration, right-click on your project > Properties > C/C++ Build, Click on “Manage Configuration”.
On the new window, enter “Release” as name, click on “New...”, select “Existing configuration: Debug”, then OK.
Select the newly created configuration and push “Set Active”.
Then go to C/C++ Build > Settings. Select the Configuration: “Release”, then edit as following:
- MCU GCC Assembler
Debugging - Debug level: None
- MCU GCC Compiler
Debugging - Debug level: None
Preprocessor - Remove “DEBUG” symbol
Optimization - Debug level: Optimize for size (-Os)
You may find more information on the ST website / forum.
Kevin
Ac6