Multiple post build steps change in KSDK 3.2?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multiple post build steps change in KSDK 3.2?

797 次查看
michaelhuslig
Contributor IV

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"

标签 (1)
0 项奖励
回复
2 回复数

652 次查看
michaelhuslig
Contributor IV

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)

0 项奖励
回复

652 次查看
BlackNight
NXP Employee
NXP Employee

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

0 项奖励
回复