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,
I have successfully used CubeMX for initialisation of a custom STM32F411 based development board which was then imported into a System Workbench project which I was able to build and debug successfully using an ST-LINK V2 debug probe.

However, if I create a new C project in System Workbench I get the options to create both a Debug and Release configuration. In addition I have options to include the Cube HAL source code into the project etc.

When I imported the CubeMX project into System Workbench I could not find a way setup both Debug and Release configurations.

Is there some procedure which will allow me to import/create a System Workbench project that uses the initialsation code generated by CubeMX and also provide me with a Debug and Release configuration? I also need to be able to use CubeMX to update the initialisation code arbitrarily?

What is the recommended optimisation level for the CubeMX generated code?

Regards
FarmerJo

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

Hi Vetch,
Thats just what I ws looking for, many thanks.
Regards
FarmerJo


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs