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


STLink Downloading Issue

Tunisia

Hello,

have you tried to connect under reset (-c SWD UR)

-c SWD UR -P ${workspace_loc}${config_name:{project_name}}\${project_name}.bin 0x08000000 -Rst


>> My opinion is ST-LINK_CLI.exe isn’t proper for .bin file downloading? If it is true how can I build .hex file?
ST-Link_CLI is proper for .bin & .hex loading
If you are looking to generate .hex file, this is possible through :
Project Properties > C/C++ Build > Settings > Build Steps (TAB) > Post-build steps :
replace this command:

arm-none-eabi-objcopy -O binary "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.bin"

by the following command:

arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex"


Edit :
You can also program you chip using SystemWorkbench (without debug)
in Project Explorer view > right click in your project > contextual menu > Target > Program chip

Regards,
Tarek