Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

lpcisp program

2005-09-30 by Stefano Coluccini

Hi all,
   I'm using part of the lpc21isp to program lpc2106 and I've found that 
there is a problem with binary images larger that 64k. I'm using Keil 
uVision 3 and hex files. I've seen that hex file contains record type 04 
to jump the 64k limit of the adresses. With the follow change it works 
for me:

             else if(RecordType == 0x04)     // 04 - Extended linear 
address record, used by IAR
             {
                 unsigned long app;

                 app  = Ascii2Hex(FileContent[Pos++]);
                 app <<= 4;
                 app  = Ascii2Hex(FileContent[Pos++]);
                 app <<= 4;
                 app  = Ascii2Hex(FileContent[Pos++]);
                 app <<= 4;
                 app  = Ascii2Hex(FileContent[Pos++]);
                 app <<= 16;
                 RealAddress |= app;
                 DebugPrintf( 1, "RecordType %02X: New RealAddress = 
%08X\n", RecordType, RealAddress);

             }

I hope this can help other users.

Cheers,
Stefano.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.