Yahoo Groups archive

Lpc2000

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

Message

Questions on LPC Flash Programming Routines

2005-04-08 by Bruce Paterson

Bill Knight wrote:

> I just uploaded a set of LPC flash programming routines to the files area
> on Yahoo.  They were written for gcc and support both ARM and Thumb modes
> of operation.  Hopefully, they will prove useful to the group.

Bill,

Just been having a look at your routines as I need to do some IAP now 
myself.
I have a few questions to you/the group if you don't mind:

1/ I notice you expect CMD_SUCCESS, never BUSY back from calling iap. 
This implies to me the iap routines always execute to completion before 
returning (this conficts with another posting to this group which showed 
a for(;;) loop waiting for non-BUSY return). Confused !

2/ If the iap routines don't return till all is done, what happens to 
the watchdog ? The watchdog cannot be disabled once started, so do
a) the iap routines feed the watchdog internally (philips question) ?
b) we need to reboot with watchdog disabled in order to do IAP ?

3/ I notice you prepare all sectors for write every interation of your 
writing loop. Is this just for easier coding ?

4/ In what cases would memmap be anything other than user code in 
practice ? (I notice you save and restore).

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