Post-build commands

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,002件の閲覧回数
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 解決策
751件の閲覧回数
BlackNight
NXP Employee
NXP Employee
0 件の賞賛
返信
3 返答(返信)
751件の閲覧回数
davidsherman
Senior Contributor I

Anyone?

0 件の賞賛
返信
752件の閲覧回数
BlackNight
NXP Employee
NXP Employee
0 件の賞賛
返信
751件の閲覧回数
davidsherman
Senior Contributor I

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

0 件の賞賛
返信