In version 3.0.0 this command worked fine as a postbuild step:
arm-none-eabi-objcopy -O srec "myprog.elf" "myprog.srec"
& C:\Users\hp\Documents\"Visual Studio 2013"\Projects\encode\Debug\encode "myprog.srec" "myprog.hex"
But when I converted it to 3.2 I had to add an & AND move the quotes in the directory in order to get it to work without an unterminated quote syntax error message:
arm-none-eabi-objcopy -O srec "myprog.elf" "myprog.srec"
&& C:"\Users\hp\Documents\Visual Studio 2013\Projects\encode\Debug\encode" "myprog.srec" "myprog.hex"
I just updated to the latest compiler. I only need one & now, but I still need the quotation marks moved:
arm-none-eabi-objcopy -O srec "myprog.elf" "myprog.srec"
& C:"\Users\hp\Documents\Visual Studio 2013\Projects\encode\Debug\encode" "myprog.srec" "myprog.hex"
(all on one line of course)
Hi Michael,
To me, it should be
"C:\Users\hp\Documents\Visual Studio 2013\Projects\encode\Debug\encode" "myprog.srec" "myprog.hex"
The 3.x and 3.2.0 are using the same compiler/build tools. But the way how the make and the tools are called has been changed to the solution described in https://mcuoneclipse.com/2015/03/29/solving-the-8192-character-command-line-limit-on-windows/ . Maybe this is causing your problems?
Erich