Yahoo Groups archive

Lpc2000

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

Message

Re: difficulties at using IAP routines

2005-07-06 by Dave

--- In lpc2000@yahoogroups.com, "valdef78" <valdef@s...> wrote:
> --- In lpc2000@yahoogroups.com, "cris_ullmann" <cris.ullmann@t...> 
> wrote:
> > Hi Tom,
> > 
> > thank you for your help. The result is still not my problem. I 
> changed
> > that sometimes from reslut[1] to result[0].
> > 
> > The problem is, the programm sticks at the call of the IAS-routine.
> > 
> > Any idea??
> > 
> > Best regards  Cris
> 
> I'm still a "newbie" at LPC & ARM7, but I already read many things 
> about it, so maybe I can suggest one thing.. the IAP functions (& 
> ISP) use RAM for stack and for data storage, so your boot and linker 
> file should be careful that your own code and stacks didn't overlap 
> it..
> 
> "RAM used by IAP command handler :
> Flash programming commands use the top 32 bytes of on-chip RAM. The 
> maximum stack usage in the user allocated stack space is 128 bytes 
> and it grows downwards."

Hello,

  Yes indeed, after adjusting the startup code to reserve those top
32bytes everything works. yay.
  However, the 64k flash chip I have, segments the flash so that the
top 32k is one segment. But I only want a 4k segment for configuration
storage. Now, startup and asm irq wrappers go in the first 4k segment,
the next 4k is reserved for the configuraion and then the rest of the
code goes from the third segment onto the end.

Dave

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.