Getting the Azure STM32Cube example application to build on OSX
I'm trying to get the Azure STM32Cube expansion pack to build targeted against a F413H Nucleo board. Using SW4STM32 ide (importing into the CubeIde gives me errors in the prebuild script which are not very informative), I've successfuly built the SECoreBin and the SBSFU modules. Compilation of the Discovery_azure works, however I'm getting a failure in the postbuild processing. The error i'm getting is
418272 2320 122464 543056 84950 STM32F413H-Discovery_Azure.elf
"../../../../../BootLoader_OSC/2_Images_SECoreBin/SW4STM32/postbuild.sh" "../.." "./STM32F413H-Discovery_Azure.elf" "./STM32F413H-Discovery_Azure.bin" "1" "bigelf"
/bin/bash:
: No such file or directory
make[1]: *** [post-build] Error 127
make: *** [STM32F413H-Discovery_Azure.elf] Error 2
If i run the postbuild.sh script from the debug directory as it is invoked by the makefile with
sh -x (to get a bit more output). I'm getting errors that are different and earlier. for example, line 14 (which is a blank line) is showing as
+$'\r'
I'm thinking that these files need to somehow be converted to a unix format. there are \r's all over the -x output of the script which seem to be the root of this.
Has anyone gotten the example application to build on a mac?