Post-build commands

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

Post-build commands

跳至解决方案
812 次查看
davidsherman
Senior Contributor I

I am trying to invoke objcopy directly, because I'm trying to generate two S-record files.  I have a specific section which will be located in an external EEPROM that needs to be stripped.  In the help file, it says multiple commands can be separated by semicolons. I can use either of these lines individually:

 

${cross_prefix}objcopy -O srec -j.nvdata --change-section-address .nvdata=0x0 program.elf program_eeprom.srec

${cross_prefix}objcopy -O srec -R.nvdata program.elf program_main.srec

 

Either of these alone will generate the correct S-record file.  However, if I try to put them both in the post-build command box with a semicolon separating them, nothing happens.

 

I could make a batch file that gets called and does these two operations, but I'd like to avoid having the path to the Gnu tools hard-coded in it.

标签 (1)
0 项奖励
1 解答
561 次查看
BlackNight
NXP Employee
NXP Employee
0 项奖励
3 回复数
561 次查看
davidsherman
Senior Contributor I

Anyone?

0 项奖励
562 次查看
BlackNight
NXP Employee
NXP Employee
0 项奖励
561 次查看
davidsherman
Senior Contributor I

Thank you again, Erich!  I've bookmarked that site.  Looks like lots of good information there.

0 项奖励