Yahoo Groups archive

Lpc2000

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

Thread

lpcisp program

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.

Re: [lpc2000] lpcisp program

2005-10-01 by Rob Jansen

Indeed,

the lpc21isp program does (or did? I've got a 1.28 version) use the 
extended linear address record.
As Stefano did I also changed to code a bit to suit my needs.
On http://www.myvoice.nl/electronics/ there is a version of the program 
that also allows programs to be written to RAM and executed from there 
(a Go command is performed if a start linear address record is found). 
The program looks at the first data received to determine if downloading 
should take place to RAM or if a Flash write is in order.
It works for me (gnuarm with a slight modified version of the build 
environment from EmbeddedArtists), should work for others as well.

Rob
Show quoted textHide quoted text
> 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:

Re: [lpc2000] lpcisp program

2005-10-01 by Martin Maurer

Hello,

which version have you tried and found this bug ?

Regards,

        Martin

----- Original Message ----- 
Show quoted textHide quoted text
From: "Stefano Coluccini" <s.coluccini@...>
To: <lpc2000@yahoogroups.com>
Sent: Friday, September 30, 2005 12:33 PM
Subject: [lpc2000] lpcisp program


> 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.
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>

Re: [lpc2000] lpcisp program

2005-10-01 by Martin Maurer

Hello,

there is a yahoo group lpc21isp for a few month new about the lpc21isp.
Can you merge in your changes to 1.28 and upload this as new version to the 
file area.
This is the central place for new development.

Regards and thanks,

          Martin

----- Original Message ----- 
Show quoted textHide quoted text
From: "Rob Jansen" <rob@...>
To: <lpc2000@yahoogroups.com>
Sent: Saturday, October 01, 2005 8:40 AM
Subject: Re: [lpc2000] lpcisp program


> Indeed,
>
> the lpc21isp program does (or did? I've got a 1.28 version) use the
> extended linear address record.
> As Stefano did I also changed to code a bit to suit my needs.
> On http://www.myvoice.nl/electronics/ there is a version of the program
> that also allows programs to be written to RAM and executed from there
> (a Go command is performed if a start linear address record is found).
> The program looks at the first data received to determine if downloading
> should take place to RAM or if a Flash write is in order.
> It works for me (gnuarm with a slight modified version of the build
> environment from EmbeddedArtists), should work for others as well.
>
> Rob
>
>> 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:
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Re: [lpc2000] lpcisp program

2005-10-03 by Stefano Coluccini

Hi Martin,
   I use an old version but I verified that also the 1.27 does not 
implement the 0x04 record type (it is not a bug, only not implemented 
record type).

Bye,
Stefano.


Martin Maurer wrote:
Show quoted textHide quoted text
> Hello,
> 
> which version have you tried and found this bug ?
> 
> Regards,
> 
>         Martin
> 
> ----- Original Message ----- 
> From: "Stefano Coluccini" <s.coluccini@...>
> To: <lpc2000@yahoogroups.com>
> Sent: Friday, September 30, 2005 12:33 PM
> Subject: [lpc2000] lpcisp program
> 
> 
>> 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.
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
>

Re: [lpc2000] lpcisp program

2005-10-03 by Martin Maurer

Hello Stefano,

can you try with latest version 1.29 ? You get it in the file area of 
http://groups.yahoo.com/group/lpc21isp/
Two days ago, this was implemented (with a few other things) by Rob Jansen 
(see his message in message section of lpc21isp group).

Regards,

         Martin

----- Original Message ----- 
Show quoted textHide quoted text
From: "Stefano Coluccini" <s.coluccini@...>
To: <lpc2000@yahoogroups.com>
Sent: Monday, October 03, 2005 10:19 AM
Subject: Re: [lpc2000] lpcisp program


> Hi Martin,
>   I use an old version but I verified that also the 1.27 does not
> implement the 0x04 record type (it is not a bug, only not implemented
> record type).
>
> Bye,
> Stefano.
>
>
> Martin Maurer wrote:
>> Hello,
>>
>> which version have you tried and found this bug ?
>>
>> Regards,
>>
>>         Martin
>>
>> ----- Original Message ----- 
>> From: "Stefano Coluccini" <s.coluccini@...>
>> To: <lpc2000@yahoogroups.com>
>> Sent: Friday, September 30, 2005 12:33 PM
>> Subject: [lpc2000] lpcisp program
>>
>>
>>> 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.
>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Re: [lpc2000] lpcisp program

2005-10-03 by Rob Jansen

Stefano,

Indeed, not a bug but a missing feature.

> >>> 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.

As Martin suggested, grab the 1.29 version from the lpc21isp yahoo group.
A compiled windo(w)s version is available from my website
http://www.myvoice.nl/electronics/

Regards,
    Rob

Re: [lpc2000] lpcisp program

2005-10-03 by Stefano Coluccini

Thanks Rob, but in your website I have found only 1.28 precompiled and 
1.29 in source. I'll try to compile 1.29 myself.
1.28 says to me:
"Use of multiple Extended linear address records [05] not supported"

Cheers,
Stefano.

Rob Jansen wrote:
Show quoted textHide quoted text
> Stefano,
> 
> Indeed, not a bug but a missing feature.
> 
>>>>> 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.
> 
> As Martin suggested, grab the 1.29 version from the lpc21isp yahoo group.
> A compiled windo(w)s version is available from my website
> http://www.myvoice.nl/electronics/
> 
> Regards,
>     Rob

Re: [lpc2000] lpcisp program

2005-10-03 by Stefano Coluccini

Two things:
- in the 1.29 version there is still defined 1.28 as string version so 
the program prints 1.28 instead of 1.29.
- my hex file still does not work. Error is:
"Use of multiple Extended linear address records [05] not supported"
However the same file works with Philips program and with the patch that 
I posted.

Cheers,
Stefano.

Rob Jansen wrote:
Show quoted textHide quoted text
> Stefano,
> 
> Indeed, not a bug but a missing feature.
> 
>>>>> 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.
> 
> As Martin suggested, grab the 1.29 version from the lpc21isp yahoo group.
> A compiled windo(w)s version is available from my website
> http://www.myvoice.nl/electronics/
> 
> Regards,
>     Rob
>

Re: [lpc2000] lpcisp program

2005-10-03 by Martin Maurer

Hello Stefano,

can you please merge in your change into version 1.29 and upload it as 
version 1.30 ?
Please put a remark in version history and update version in two places (one 
at beginning of file and once in line 121).

Regards,

           Martin

----- Original Message ----- 
Show quoted textHide quoted text
From: "Stefano Coluccini" <s.coluccini@...>
To: <lpc2000@yahoogroups.com>
Sent: Monday, October 03, 2005 3:00 PM
Subject: Re: [lpc2000] lpcisp program


> Two things:
> - in the 1.29 version there is still defined 1.28 as string version so
> the program prints 1.28 instead of 1.29.
> - my hex file still does not work. Error is:
> "Use of multiple Extended linear address records [05] not supported"
> However the same file works with Philips program and with the patch that
> I posted.
>
> Cheers,
> Stefano.
>
> Rob Jansen wrote:
>> Stefano,
>>
>> Indeed, not a bug but a missing feature.
>>
>>>>>> 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.
>>
>> As Martin suggested, grab the 1.29 version from the lpc21isp yahoo group.
>> A compiled windo(w)s version is available from my website
>> http://www.myvoice.nl/electronics/
>>
>> Regards,
>>     Rob
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Re: [lpc2000] lpcisp program

2005-10-03 by Rob Jansen

Stefano,

>  - in the 1.29 version there is still defined 1.28 as string version so
>  the program prints 1.28 instead of 1.29.
>  - my hex file still does not work. Error is:
>  'Use of multiple Extended linear address records [05] not supported';

First one is my fault, I'll fix this.
For the second problem; this is a feature, not a bug ;-). Could you send
me a hex file I could try (please not via te mailing list but use my
direct email address, does not has to be a working program).

I'll fix both and post the update on the
http://groups.yahoo.com/group/lpc21isp/ group (register with that group
and you'll be automagically informed on the update).

Thanks,

    Rob

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.