Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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?