How to generate a HEX file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to generate a HEX file

Jump to solution
3,993 Views
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

Labels (1)
0 Kudos
1 Solution
3,979 Views
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

 

 

View solution in original post

0 Kudos
3 Replies
3,940 Views
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 Kudos
3,980 Views
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 Kudos
3,967 Views
jDrum
Contributor III

Thank you! @berndsirozynsk

 
 
0 Kudos