Yahoo Groups archive

Lpc2000

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

Message

ISP GO command

2006-01-18 by Tom Walsh

I have two LPC2000 series processors on my board interconnected so that 
either processor can force the other into ISP mode.  The project calls 
for the current binary image of each processor be stored (SD card) 
before the new image is loaded into Flash.  Using the ISP command set, I 
can read all but the first 64 bytes as the MEMMAP (0xE01FC040) register 
is mapping the IVECTs to the bootloader ROM.

The solution that I see, aside from a generic jump table, is to:

1. Load a small program into RAM
2. Have it flip MEMMAP to User Flash
3. Copy n bytes into RAM
4. Flip MEMMAP back to Bootloader
5. Return to ISP.

 From reading the various LPC2000 user manuals, they seem to suggest 
this might be possible via the GO command.  The LPC210{4,5,6} reference 
states that the ISP may be resumed with a simple RETurn at the end of 
the user code.

Has anyone tried this?  I am hoping that after the call to my code in 
RAM, and it returns to the bootloader,  that the bootloader will still 
be "synchronized" and I may proceed with a READ command to fetch those 
bytes.

TIA,

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

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.