Yahoo Groups archive

Lpc2000

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

Message

Re: MEMMAP Manipulation

2004-12-20 by Leighton Rowe

> Before changing MEMMAP from 1 to 2, you should write whatever you 
> want as interrupt vectors to RAM (0x4000_0000 - 0x4000_003F).  
> Changing MEMMAP doesn't by itself copy anything from flash to RAM.

Makes much more sense now. I'm able to get the RAM Mode working. 
Thanks.

> Relocating the interrupt vectors to RAM is only necessary if you 
need 
> to handle interrupts during the flash writing.  In that case, you 
> should also copy the interrupt handlers themselves to RAM.  It 
might 
> be easier to just disable all interrupts and use polled I/O.  When 
> updating the whole flash, you of course have to copy the firmware 
> updating code to RAM as well.

I'd rather go with updating segments (not containing the original 
program code) with the new program (int handlers included). That way 
flash functions won't have to be copied and executed in RAM. I hope 
this suggestion isn't too hard to pull off.

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.