How to build binary in different format than .elf?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to build binary in different format than .elf?

ソリューションへジャンプ
4,726件の閲覧回数
gearhead1107
Contributor IV

I need to Flash my S32 over comms, and to do that I need a raw hex file (or binary). Is there a linker setting to generate a different output (or a tool to convert the .elf) in S32DS? I looked through the linker settings and didn't see a way to change the output format

タグ(4)
1 解決策
3,501件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Andrew,

it is here:

pastedImage_2.png

In addition to that, you can use the build steps and objcopy for this too, see S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse . If you need more advanced file manipulation or conversions, I recommend have a look at S-Record Manipulation with GNU objcopy and Burner Utility | MCU on Eclipse  and the open source SRecord tool (CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse ).

I hope this helps,

Erich

元の投稿で解決策を見る

2 返答(返信)
3,502件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Andrew,

it is here:

pastedImage_2.png

In addition to that, you can use the build steps and objcopy for this too, see S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse . If you need more advanced file manipulation or conversions, I recommend have a look at S-Record Manipulation with GNU objcopy and Burner Utility | MCU on Eclipse  and the open source SRecord tool (CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse ).

I hope this helps,

Erich

3,501件の閲覧回数
gearhead1107
Contributor IV

Thanks, Erich!

Note to anyone trying to follow along - you have to check "create flash image", hit "OK", and the next time you open the properties window you should see the "Create Flash Image" option

0 件の賞賛
返信