lpcware

Hex file, binary file and relocating an application to different address

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by sangamesh.vandal on Sun Dec 01 23:33:49 MST 2013
Hi,
We are using LPCXpresso v5.2.6_2137

we have customized boot loader and an application, we want our application to start from 0x3000 address

1) please help us in relocating the application from 0x3000 address.


2)following is the command used in post build steps for application to create .hex and .bin file, please let us know is command correct

arm-none-eabi-size "${BuildArtifactFileName}"; arm-none-eabi-objcopy -O ihex "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.hex" ;  arm-none-eabi-objcopy -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" ; #checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin";

3)following are the last few lines of intel hex file, in last but one line the record type is 3 what should we do with record type 3 , how to handle it, in the equivalent binary file last two lines will not be there.

:1016E000004B00000096000000E1000000C2010075
:1016F000003200000084030090D0030000E80300E3
:1017000000D0070000A00F0000401F0000803E0036
:1017100001000000010F00008C0900108C01001076
:041720000101FFFFC5
:040000030000010DEB
:00000001FF

to summarize
please help us in relocating the application to 0x3000 location, how to handle record type 3 in intel hex file is our post build command correct.


Thank you

Outcomes