Yahoo Groups archive

Lpc2000

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

Message

Re: MEMMAP Manipulation

2004-12-20 by Karl Olsen

--- In lpc2000@yahoogroups.com, "Leighton Rowe" <leightonsrowe@y...> 
wrote:
> Let's say MEMMAP's initially configured as 1 (flash mode), and I 
> plan todo a complete firmware update using IAPs. If I remapped the 
> interrupt vectors to RAM (MEMMAP = 2) before overwriting segment 0, 
> will the original vectors remain preserved in RAM?

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.

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.

Karl Olsen

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.