Yahoo Groups archive

Lpc2000

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

Message

Re: IAP successfully used in LPC2119/2129/2194/2292/2294?

2004-07-14 by Leighton Rowe

> I am also having problems with the LPC2114.  It would consistently 
> hang in "Copy RAM to Flash" and "Erase sectors", and when running 
at 
> cclk=60MHz, it would generate a Prefetch Abort after 29 seconds 
(58 
> seconds when running at cclk=30MHz).

Are you using the prepare sector command before u erase/write them? 
What area in flash are u trying to write over? Just curious. 

> I contacted Promax, and after a while I learned that my chip might 
> also be affected by the firmware bug, and that the problem mostly 
> happens with cclk > ~11 MHz.  As a workaround, until I get new 
chips, 
> I now disable the PLL around the two IAP calls, running them at 
> cclk=Fosc=10MHz.  It now seems to work.  This of course also 
messes 
> up the peripherals since pclk is also changed, but since all 
> interrupts must be disabled (my interrupt handlers are in flash), 
not 
> much can work during IAP anyway.

As long as u call the IAP function passing in the frequency value of 
the physical crystal, I think PLLs shouldn't matter...enabled or 
disabled. I have my PLL enabled running @60Mhz now on a 12MHz Xtal, 
and I can call IAP to write flash without trouble using 12Mhz as the 
frequency value. 

Interrupt events can mess the IAP process. Hopefully that's the only 
firmware bug to worry about. 

Leighton

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.