Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


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);