SBSFU project Failed to build UserApp
I am trying to build SBSFU V2.3.0 on STM32L496G-DISCOVERY board. I can build SeCoreBin and SBSFU. Flashed into board. All fine and it comes up over serial usb. However I am having trouble building the user app to exercise flashing. I am building on system workbench.
The build is fine but it fails running the post build scripts:
Building target: UserApp.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -z max-page-size=8 -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L"/ml/Users/MAGICLEAP/rabd/Downloads/STM32CubeExpansion_SBSFU_V2.3.0/Projects/32L496GDISCOVERY/Applications/2_Images/2_Images_SBSFU/SW4STM32/STM32L496G-Discovery_2_Images_SBSFU/Debug" -specs=nosys.specs -specs=nano.specs -Xlinker -L ../../../../Linker_Common/SW4STM32 -T"../STM32L496AGIx_FLASH.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "UserApp.elf" @"objects.list" -l:se_interface_app.o -lm
Finished building target: UserApp.elf
make --no-print-directory post-build
Generating binary and Printing size information:
arm-none-eabi-objcopy -O binary "UserApp.elf" "../../UserApp.bin"
arm-none-eabi-size "UserApp.elf"
text data bss dec hex filename
27488 368 5288 33144 8178 UserApp.elf
"../../../../2_Images_SECoreBin/SW4STM32/postbuild.sh" "../.." "./UserApp.elf" "../../UserApp.bin" "1"
/bin/bash: - : invalid option
Usage: /bin/bash [GNU long option] [option] ...
/bin/bash [GNU long option] [option] script-file ...
makefile:53: recipe for target 'post-build' failed
GNU long options:
makefile:40: recipe for target 'UserApp.elf' failed
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--rcfile
--restricted
--verbose
--version
Shell options:
-ilrsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
make[1]: *** [post-build] Error 2
make: *** [UserApp.elf] Error 2
12:08:18 Build Finished (took 11s.774ms)
Any idea?
Thank you
