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


Project doesn't generate .bin file

In System WorkBench
Update. To produce .bin file, I need to change the project by the following way:
Project - Properties - C++ Build - Settings - Buidl Steps - Post-build steps. Replace:
arm-none-eabi-objcopy -O ihex “${BuildArtifactFileBaseName}.elf” “${BuildArtifactFileBaseName}.hex” && arm-none-eabi-size “${BuildArtifactFileName}”
with:
arm-none-eabi-objcopy -O ihex “${BuildArtifactFileBaseName}.elf” “${BuildArtifactFileBaseName}.hex” && arm-none-eabi-size “${BuildArtifactFileName}” && arm-none-eabi-objcopy -O binary “${BuildArtifactFileBaseName}.elf” “${BuildArtifactFileBaseName}.bin”

I am getting following errors :

make --no-print-directory post-build
Generating BIN and Printing size information:
arm-none-eabi-objcopy -O ihex “STM_Fork_Module.elf” “STM_Fork_Module.hex”
arm-none-eabi-objcopy: ‘“STM_Fork_Module.elf”’: No such file
make1: *** post-build Error 1
make: *** STM_Fork_Module.elf Error 2
make: Target `all’ not remade because of errors.

Hi,

Try removing the quotes in the command:

arm-none-eabi-objcopy -O ihex ${BuildArtifactFileBaseName}.elf ${BuildArtifactFileBaseName}.hex && arm-none-eabi-size ${BuildArtifactFileName} && arm-none-eabi-objcopy -O binary ${BuildArtifactFileBaseName}.elf ${BuildArtifactFileBaseName}.bin


Regards,
Kevin.