How to generate a HEX file

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

How to generate a HEX file

跳至解决方案
4,137 次查看
jDrum
Contributor III

I am using an LPC11U68 on our own PCB.  The IDE is MCUXpresso.
The program runs correctly from the debug *.axf file via a Link2 interface with SWD.

I want to generate a HEX or binary file to use Flash Magic  via the Link2 / SWD

I  have tried to modify the make file but because it is auto generated, nothing happens.

Where in the project settings do I have the project generate a Hex or binary output?

jDrum

标签 (1)
0 项奖励
1 解答
4,123 次查看
berndsirozynski
Contributor III

Hello,

i hope i can help:

in the Project properties you nee to add a line. See my screenshot-

i think you need only a Hexfile in the "Release" Version

The first line generates a assembler listing

the second line generates the Hexfile

arm-none-eabi-objdump -S ${BuildArtifactFileName} >${BuildArtifactFileBaseName}.lss
arm-none-eabi-objcopy -O ihex ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.hex

you will found the generated Hexfile in the the second Screenshot

 

Bernd

 

 

在原帖中查看解决方案

0 项奖励
3 回复数
4,084 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

In addition. a easy way is to right click on the afx file, "Binary Utilities", "create Hex".

ZhangJennie_0-1646123342184.png

 

 

0 项奖励
4,124 次查看
berndsirozynski
Contributor III

Hello,

i hope i can help:

in the Project properties you nee to add a line. See my screenshot-

i think you need only a Hexfile in the "Release" Version

The first line generates a assembler listing

the second line generates the Hexfile

arm-none-eabi-objdump -S ${BuildArtifactFileName} >${BuildArtifactFileBaseName}.lss
arm-none-eabi-objcopy -O ihex ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.hex

you will found the generated Hexfile in the the second Screenshot

 

Bernd

 

 

0 项奖励
4,111 次查看
jDrum
Contributor III

Thank you! @berndsirozynsk

 
 
0 项奖励