Content originally posted in LPCWare by NXP_USA on Thu Feb 11 18:16:05 MST 2010
Quote: Nodame
Would someone please let me know how to create HEX files ?
Is there any option in the project settings tab fot it ?
Sory, I cound not find it.
LPCXpresso creates .axf files by default, but it includes a program called arm-none-eabi-objcopy which can generate a .hex file.
From the command line:
CD to the LPCXpresso directory- usually C:\NXP\LPCXpresso3.2
Now run objcopy by typing:
Tools\bin\arm-none-eabi-objcopy -O Format input-file output-file
Format is one of binary, srec, ihex, tekhex, symbolsrec. ihex generates an Intel hex format.
input-file is the .axf file and output-file is the name of the output file
A call to objcopy can be added as a post-build step to auto-generate the hex file.
arm-none-eabi-objcopy –O ihex ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.hex