On Fri, 18 Mar 2005 18:47:13 -0000, yamppman wrote: After about a year on Prozac and Valium since my last encounter with the Philips LPC series, I'm on it again, using it in a new project. And I need to use the IAP functionality ofcourse. And after spending several hours trying all kinds of variants on the apparently non-working IAP sample code from Keil and ripping out most of my remaing hair, I thought I'd share some info. According to the user manual, and the Keil example, the erase and write calls require the processor clock frequency in a parameter, presumably to time the flash functions. What's NOT mentioned is that it does not work if you're running the CPU at "normal" speed, 60 MHz. The code would end up all over the place - in the Abort or Undef handler or way off at memory position 0x800xxxx. Also, the Setup for Erase/Write calls would take 50-100 mS to complete. As soon as I dropped the cclk to 12 MHz by disabling the PLL, everything worked immediately. And the calls returned much faster. So, it just proof the old classic, never trust a Philips Datasheet ! /Jesper ------------------------------------------------------------------ I have IAP programming running on an LPC2114 at 60MHz. See LPC-FlashRoutines-18Feb05.zip in the files section on yahoo. Note the clock frequency parameter is in KHz (60,000,000 / 1000) Regards -Bill Knight R O SoftWare & http://www.theARMPatch.com Yahoo! Groups Links
Message
Re: [lpc2000] LPC2129 IAP problem solved, sorta.
2005-03-18 by Bill Knight
Attachments
- No local attachments were found for this message.