Yahoo Groups archive

Lpc2000

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

Thread

LCP2138 startup file and linker scripts

LCP2138 startup file and linker scripts

2005-05-12 by d1_tictac

I'm new at this group so I'd like to say hello to everyone :)
I have recently bought LPC2138 uC and I'd like to prepare some
development enviroment under linux. Where can I find example assembler
startup file and linker scripts for use with lpc2138 ? I'd like to run
some simple examples (flashing leds etc..) but it seems to be more
complicated than I thought :( Is there any linux ISP tool that works
with lpc2138 ? 
I would greatly appreciate any help !
Best greetings,
Paul Melnarowicz

Re: [lpc2000] LCP2138 startup file and linker scripts

2005-05-12 by Robert Wood

>> I'm new at this group so I'd like to say hello to everyone  :)
I have recently bought LPC2138 uC and I'd like to prepare some
development enviroment under linux. Where can I find example assembler
startup file and linker scripts for use with lpc2138 ? I'd like to run
some simple examples (flashing leds etc..) but it seems to be more
complicated than I thought  :(  Is there any linux ISP tool that works
with lpc2138 ?  <<

Well, not sure whether it's exactly what you're asking for, but I'm 
currently developing an ARM7 project using Rowley's ARM 
compiler/debugger IDE that's running on Mandrake Linux very nicely.

www.rowley.co.uk

Cheers,

Rob

Re: [lpc2000] LCP2138 startup file and linker scripts

2005-05-13 by Robert Adsett

At 07:29 PM 5/12/05 +0000, d1_tictac wrote:
>I'm new at this group so I'd like to say hello to everyone :)
>I have recently bought LPC2138 uC and I'd like to prepare some
>development enviroment under linux. Where can I find example assembler
>startup file and linker scripts for use with lpc2138 ? I'd like to run
>some simple examples (flashing leds etc..) but it seems to be more
>complicated than I thought :( Is there any linux ISP tool that works
>with lpc2138 ?

Take a look at the newlib-lpc support 
http://www.aeolusdevelopment.com/Articles/download.html

It has startup and ld files for some LPCs.  Easily modifiable for other 
variants.  There are files in the files section of the group as well.

Linux support for ISP.  There are two utilities that I know of

Martin's LPC21isp 
http://www.engelschall.com/~martin/lpc21xx/isp/index.html  There is a beta 
version with support for the newer variants.

Also Paul's GUI based LPC2K http://www.pjrc.com/arm/lpc2k_pgm/ I don't 
belive it's been updated to support the newer chips yet.

Source for both are available, in fact Paul's version is available only in 
source form.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Re: LCP2138 startup file and linker scripts

2005-05-19 by Thiadmer Riemersma (ITB CompuPhase)

> Is there any linux ISP tool that works with lpc2138 ? 

Look in the "Files" section of this forum under the "TOOLS"
subdirectory. There you will find a version of lpc21isp that works for
the LPC213x series.

For my own projects, I have adapted the linker definition file and the
include file of the LPC2106 (from the GNU-ARM toolchain) to the
LPC2138. This is not difficult at all (but keep in mind that the
bootloader of the LPC2138 is 12 kiB, not 8 kiB). If you search on the
internet for the words "lpc2138 header file" you will also find an
include file from KEIL.

Kind regards,
Thiadmer

Re: LCP2138 startup file and linker scripts

2005-05-19 by Thiadmer Riemersma (ITB CompuPhase)

> Martin's LPC21isp 
> http://www.engelschall.com/~martin/lpc21xx/isp/index.html  There is
a beta 
> version with support for the newer variants.

Well,... I started with this utility but soon found that it would only
upload files smaller than 4 kiB. When looking into the source, I saw
that it only has the very beginning of the support for the newer chips
implemented.

I uploaded a fixed version of the utility to this forum into the
"Files" section in the "TOOLS" subdirectory. I also sent it to Martin
Maurer (a week ago or so), but I have not received a reply.

Kind regards,
Thiadmer

Problem with lpc21isp

2005-05-26 by Bruce Paterson

Thiadmer Riemersma (ITB CompuPhase) wrote:
>>Is there any linux ISP tool that works with lpc2138 ? 
> 
> 
> Look in the "Files" section of this forum under the "TOOLS"
> subdirectory. There you will find a version of lpc21isp that works for
> the LPC213x series.

I've been trying your latest lpc21isp.c file (on windows) with an 
LPC2124 chip.

It compiles (under either borland C or gcc under cygwin). In both cases
it appears to program successfully, 8 sectors, but the resultant program 
in flash seems to be rubbish above 0x12000. The Phillips Flash utility
works, and also correctly reports failure on 'compare' with flash 
programmed by lpc21isp.
Unfortunately the startup of the Phillips Flash utility is really flakey
and doesn't seem to be useable in a production environment.

Worried about a 2byte to 4byte int problem when compiled on a PC, I 
tried changing the sector table definition from int->long (because 65536 
won't fit in a 2 byte signed int), but it didn't help.

It's possible yourself or Martin may suspect exactly what is going wrong 
here before we spend too much time on it !

-- 
Cheers,
Bruce
-------------------------------------------------------------------
     /\\\/\\\/\\\    /   /      Bruce Paterson
    /  \\\ \\\ \\\  /   /    Senior Design Engineer
   /   /\\\/\\\/\\\/   /   8 Anzed Court, Mulgrave, Vic, 3170
  /   /  \\\ \\\ \\\  /  PO Box 4112, Mulgrave, Vic, 3170, Australia
/   /    \\\/\\\ \\\/   Ph: +61 3 8561 4232   Fax: +61 3 9560 9055
       Tele-IP Ltd.      Email: bruce@...    Icq: #32015991
                         WWW:   http://www.tele-ip.com       VK3TJN
-------------------------------------------------------------------

Re: Problem with lpc21isp

2005-05-26 by Thiadmer Riemersma (ITB CompuPhase)

> I've been trying your latest lpc21isp.c file (on windows) with an 
> LPC2124 chip.
> [...] In both cases it appears to program successfully, 8 sectors,
> but the resultant program in flash seems to be rubbish above
> 0x12000. [...]

The first thing to check would be whether the lpc21isp utility
correctly detects your chip (the LPC2124). When you run it, the
utility prints this chip number somewhere.

The boundary of 0x12000 is precisely where the sector size switches
from 8192 to 65536 bytes. One possibility is that the new sector size
is not picked up correctly. With large sectors, a sector cannot be
written in a single blow: the maximum number of bytes that can be
copied from RAM to Flash ROM is 8192 bytes (on a LPC2124), but the 9th
flash sector is 65536 bytes long. So there is another loop that fills
the sector in multiple runs. There may be a bug here too.

I will try to verify what is going on.

Kind regards,
Thiadmer

Re: Problem with lpc21isp

2005-05-27 by capiman26061973

Hello,

> I've been trying your latest lpc21isp.c file (on windows) with an
> LPC2124 chip.

which version of the file lpc21isp.c you are currently trying ? Can 
you send it to me ? Do you have a trace file ? If you use it on 
windows, you can use e.g. portmon (with hex mode and data packet 
length set e.g. to 1024).

Can you try the "Beta-Version for supporting 256k parts (Philips 
LPC):" on the beta page:

http://guest.engelschall.com/~martin/lpc21xx/isp/beta.html

Is this working for you ?

There is a own group for lpc21isp, i think we can better discuss 
these topics there:

http://groups.yahoo.com/group/lpc21isp/

Regards,

        Martin

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.