Yahoo Groups archive

Lpc2000

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

Message

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

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.