The only thing I can think of is that the IAP routines may not work in user mode. Try switching to system mode before calling an IAP routine. Richard. mark_dell555 wrote: > Hi, I'm having a problem erasing the flash with IAP calls on my > lpc2146. I'm making calls to the IAP, and get the chip id fine from > the IAP. Next I make a call to Prepare the flash for writing (50d), > and I get CMD_SUCCESS (0d) as the response. Then I make a call to > Erase to wipe some sectors where I know I have data (min sector=5 max > sector=14), and again i get CMD_SUCCESS (0d), but the IAP hasnt erased > anything, and has only spent 300us completing both those calls. > > I'm running in User mode, I have interrupts enabled, and all the > handlers for the interrupts are in RAM. Is there something I am > missing? Is there anything else I can try? > > Any help is always greatly appriciated. > > Cheers, > Mark
Message
Re: [lpc2000] LPC2146 IAP Erase & Write not working.
2005-12-08 by Richard Duits
Attachments
- No local attachments were found for this message.