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
if you need to compile a project using command line, you can use the headless build mechanism
Headless Build
To perform headless build or clean of your project in a workspace.
Example : "headless-build.bat -project myproj -workspace C:/myworkspace -build -console"
Options :
-project ^[Project_Name^[/Config_Name^] ^| all^]
-workspace ^[Path^\To^\Workspace^] (required)
-build To build project
-clean To clean project
-console To display console
x
To perform headless build or clean of your project in a workspace.
Example : "headless-build.bat -project myproj -workspace C:/myworkspace -build -console"