EmbeddedRelated.com
Forums

LPC hex file

Started by Nishant Agrawal June 9, 2008
Hello,

I am trying to work on designing a bootloader. For this I
was trying to understand the hex file for LPC. I understood quite a lot
through the link http://www.keil.com/support/docs/1584.htm. But I could not
understand this first line from the hex file itself.

:0400000500000000F7

:020000040000FA

:1000000018F09FE518F09FE518F09FE518F09FE5C0

:1000100018F09FE50000A0E1F0FF1FE518F09FE554

:100020005400000040000000107600004400000072

:1000300048000000000000004C00000050000000DC

I could not find the meaning of code 05. What does it signify? And when I
read the hex file from the controller itself, this line was missing while
other all the lines were same.

Whatever help you all can provide me will be great.

Thanks in advance

Best Regards,

Nishant Agrawal,

Real Time Solutions Pvt. Ltd.,

58 Samarpan Marg, Tripureshwore,

Kathmandu, Nepal.

Ph: 01-4253717,

Mobile: 9841259267


An Engineer's Guide to the LPC2100 Series

I think that record type 05 indicates the start address of code.

Marcelo
> -----Original Message-----
> From: l... [mailto:l...] On Behalf
Of
> Nishant Agrawal
> Sent: segunda-feira, 9 de junho de 2008 10:56
> To: l...
> Subject: [lpc2000] LPC hex file
>
> Hello,
>
> I am trying to work on designing a bootloader. For this I
> was trying to understand the hex file for LPC. I understood quite a lot
> through the link http://www.keil.com/support/docs/1584.htm. But I could
not
> understand this first line from the hex file itself.
>
> :0400000500000000F7
>
> :020000040000FA
>
> :1000000018F09FE518F09FE518F09FE518F09FE5C0
>
> :1000100018F09FE50000A0E1F0FF1FE518F09FE554
>
> :100020005400000040000000107600004400000072
>
> :1000300048000000000000004C00000050000000DC
>
> I could not find the meaning of code 05. What does it signify? And when I
> read the hex file from the controller itself, this line was missing while
> other all the lines were same.
>
> Whatever help you all can provide me will be great.
>
> Thanks in advance
>
> Best Regards,
>
> Nishant Agrawal,
>
> Real Time Solutions Pvt. Ltd.,
>
> 58 Samarpan Marg, Tripureshwore,
>
> Kathmandu, Nepal.
>
> Ph: 01-4253717,
>
> Mobile: 9841259267
>
>
>
--- In l..., "Nishant Agrawal" wrote:
>
> Hello,
>
> I am trying to work on designing a bootloader. For
this I
> was trying to understand the hex file for LPC. I understood quite a
lot
> through the link http://www.keil.com/support/docs/1584.htm. But I
could not
> understand this first line from the hex file itself.
>
> :0400000500000000F7
>
> :020000040000FA
>
> :1000000018F09FE518F09FE518F09FE518F09FE5C0
>
> :1000100018F09FE50000A0E1F0FF1FE518F09FE554
>
> :100020005400000040000000107600004400000072
>
> :1000300048000000000000004C00000050000000DC
>
> I could not find the meaning of code 05. What does it signify? And
when I
> read the hex file from the controller itself, this line was missing
while
> other all the lines were same.
>
> Whatever help you all can provide me will be great.
>
> Thanks in advance
>

Have a look at the following document. It describes the Intel Hex-
Format. Record type 5 means "Start Linear Address Record".

ftp://download.intel.com/support/processors/i960/devtools/intelhex.pdf