LPCXpressov3.4 how to create hex file

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

LPCXpressov3.4 how to create hex file

1,734 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bharat.gopani on Thu Aug 12 00:40:09 MST 2010
Hi ,

I am new to LPCXpressov3.4 C compiler

I am trying for building Example Projects , Building is successful , but hex file is not
created .

can anybody help me for how to create hex file for LPCXpressov3.4 ?
6 Replies

974 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by renan on Fri Aug 13 05:26:58 MST 2010
Did you read the link in CodeRedSupport post?
LPCXpresso is for Windows. The post from Jesse.Rosenberg is giving you a lot of information on how to create your hex file.

In the link from CodeRedSupport post, it gives you a way to create your hex file automatically when you build your project.

What details do you need to generate your hex file?

Renan
0 Kudos

974 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bharat.gopani on Fri Aug 13 04:28:56 MST 2010
Thanks For Reply .

Your guessing is correct .

I want hex file for flash Magic .

Let you know that I am using Windows Platform not a linux .

But can you give detail information for how to create hex file .
0 Kudos

974 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jesse.Rosenberg on Thu Aug 12 15:16:00 MST 2010
I'm guessing you're hoping to program via Flash Magic.

You'll want to use obj-copy to convert your output files, however you'll also need to ensure that you've properly inserted a CRC into the vector table as per the "Valid User Code" requirements of the LPC (see the user manual).

This can be done with post build actions

[COLOR=black][FONT=Arial]ELF=>BIN without CRC:[/FONT][/COLOR]
[COLOR=black][FONT=Arial]arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin;

BIN=>BIN with CRC [/FONT][/COLOR](this is useful for USB ISP mode with LPC13xx parts)[COLOR=black][FONT=Arial]:
checksum -v ${BuildArtifactFileBaseName}.bin;

BIN with CRC => HEX with CRC[/FONT][/COLOR][COLOR=black][FONT=Arial]:
arm-none-eabi-objcopy -I binary ${BuildArtifactFileBaseName}.bin -O ihex ${BuildArtifactFileBaseName}.hex[/FONT][/COLOR]
0 Kudos

974 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Aug 12 00:57:39 MST 2010
First of all, why do you want to create a hex file? The 'native' format for executable is .axf. The debugger can load this straight into the target board, and the flash programmer can do the same.

If you are really sure that you want a hex files, read this knowledgebase article:
http://lpcxpresso.code-red-tech.com/LPCXpresso/node/34
(login required)

974 Views
rbeck
Contributor I

Link is dead

0 Kudos

974 Views
lpcxpresso_supp
NXP Employee
NXP Employee

That's an old post (made > 6 years ago) for LPCXpresso IDE v3. The current LPCXpresso FAQs (for IDE v8) are at:

https://community.nxp.com/community/lpcxpresso-ide/lpcxpresso-ide-faqs 

And creating hex files is covered in:

Generating srec, binary and ihex files 

Post-processing your linked application 

Regards,

LPCXpresso Support

0 Kudos