Yahoo Groups archive

Lpc2000

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

Message

Re: IAP command problems

2004-10-27 by Helmut Bitter

--- In lpc2000@yahoogroups.com, "helmutbitter" <helmut.bitter@t...> wrote:
> 
> --- In lpc2000@yahoogroups.com, "koerner_stefan" <koerner.stefan@a...>
> wrote:
> > Could anyone help me to run the IAP commands on KEIL MCB2100 
> > (LPC2129)?
> > 
> > I am working with the ARM RVDS tools (& RV ICE) and tried to run a 
> > small sample calling the IAP commands (program runs from iRAM).
> > 
> > Most time I get a "memory access violation" several seconds after 
> > calling the IAP commands.
> > Sometimes the first IAP command (code 50) runs ok but I did never saw 
> > a guilty write command. I tried it also with cclk = 12MHz. Do I have 
> > to do additional initialisation?
> > I have reserved 16 bytes on top of Stack.
> > 
> > best regards
> > Stefan
> > 
> > This is my source
> > 
> > ...
> 
> I have some problems with the IAP as well.
> After upgrading to version 1.63 bootloader (one is a LPC 2124 the
> other a LPC 2129) the behavior is predictable but not what should
happen.
> I do 4 steps: 1. prepare 2. erase 3. prepare 4. coppy RAM to flash.
> Steps 1. to 3. show as Status Code CMD_SUCCESS but definetly erase
> does not work. Step 4. gives back 9
> SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION.
> 
> Any help would be appreciated.
> 
> Thanks 
> 
> Helmut Bitter 
> 
> 

Sometimes it is simpler as you thing!!

To philips_apps:
There is an error in the LPC2114/2124/2212/2214 USER MANUAL(date
2004-05-03) 
 - On page 33 figure 2 it shows the LPC 2124 in the block of devices
with 128 kB flash!! It has 256 kB. 

In my example Sector 14 and address 0x1C000 didn't fit for the LPC
2124 doing IAP and resulted in Status Code 9
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION.


Helmut

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.