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


Post-Build not working with SW4STM32 2.x update

I am developing my STM32 project on a Windows 10 Pro machine.
Until SW4STM32 1.x version I could lounch my post-build command batch file with success:

”${ProjDirPath}/Create_Flash_Image.bat “${BuildArtifactFileBaseName}” “${BuildArtifactFileBaseName}” “${BuildArtifactFileName}”

I use that batch file to convert my built ELF file to some executable files in various formats (HEX, S-record, etc.). The batch file is stored in my project folder “C:\STM32\SW\Prj”.

After updating to SW4STM32 2.x version, that post-build command does not work any more.
I got the following error:

make --no-print-directory post-build
Generating binary and Printing size information:
“C:/STM32/SW/Prj/Create_Flash_Image.bat” “Prj” “Prj” “Prj.elf”
/usr/make/sh: C:/STM32/SW/Prj/Create_Flash_Image.bat: No such file or directory
make1: *** post-build Error 127
make: *** Prj.elf Error 2

So, it looks like my Create_Flash_Image.bat file cannot be found any more.
I cannot use post-build command. I have to copy my batch file into the build folder and manually lounch it.
This is not as friendly as the automatic lounch of my batch file as post-build command.

Could you please help me?
Thanks

I found that a post-build multiple-command works properly.
I added to the post-build edit box all the commands written in my batch file. There must be a ‘&’ character separator (I use Windows) between each command.

Calling a batch file as post-build is not possible any more?


 

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