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