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


You are viewing a reply to How to program in c++ by AC6  

How to program in c++ by AC6

Hi,

To create a new C++ Project, Go to File > New > Project... > C/C++ > C++ Project. Enter the project name, then select as project type : Executable > Ac6 STM32 MCU Project and as Toolchains : Ac6 STM32 MCU GCC.
Your source files extension have to be .cpp to be built with the G++ Compiler.

For more details, follow this documentation page : http://www.openstm32.org/Creating+a+new+projectQuestion
(Instead of selecting “C Project”, choose “C++ Project”).



If your have created and imported your project from CubeMX, to convert your C project into C++ project: Right-click on your project, then select “Convert to C++” (ensure you have the latest version of System Workbench, this feature has been fixed recently (Help > Check for Updates...)).
Rename the source file extension into .cpp for the C++ code.

Hope it answer your problem,
Kevin