Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: IRQ vector and handlers relocation

2004-06-16 by Robert Adsett

At 01:54 PM 6/16/04 +0000, you wrote:
>Let's say I have Flash Memory set up like below.....
>
>---------------------------
>User Program (space 2)    | --assume empty
>---------------------------
>User Program (space 1)    | --holds original code
>---------------------------
>Interrupt Block           |
>(includes Handler + ISRs) |
>---------------------------
>Software Bootloader Block |
>---------------------------
>Reset Block               |
>(Interrupt Jumps)         |
>+ initializer routines    |
>---------------------------
>
>After downloading newer version code to space 2, what must be done
>to make the system execute from space 2 instead of space 1?

In the abstract it's simple, your reset block must distinguish between the 
two code areas and determine which one to use (maybe by using a patch table 
or some similar mechanism).  You could use some sort of sequence, version, 
date or even a HW switch to choose.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.