Importing a CubeMX project with Debug and Release Targets
Hi FarmerJo,
Once you imported a CubeMX generated project into SW4STM32, you may want to create / manage the (build) configurations using :
- Right-click on your project >> Properties >> C/C++ Build >> Manage Configurations button (on the top right side of the window);
This IOC file (CubeMX extension) can be reopened and updated in CubeMX.
Warning, the user code must be located in between the beacons/tags :
/* USER CODE BEGIN # */ /* USER CODE END # */
... else it will be lost.
I would recommend -Og optimization at the beginning.
Then, when the application is functional, you may switch to :
-Os to reduce the generated code size (but with lower performances);
-O3 to get high performance application (but with a bigger ode size);