FridgeFreezer

Leaving VBR in flash

Discussion created by FridgeFreezer on Nov 10, 2010
Latest reply on Nov 17, 2010 by Piotr Mazur

Project is MCF52259 / CW7.2

 

Looking at some of the stuff going on in our project, I found myself wondering why we *need* to copy the interrupt vector table to RAM at startup. I know why it's done, but looking through our code I don't see any need to re-write the interrupt vectors - we know the address of every ISR function at compile time, so could simply store it in flash & mask interrupts as required.

 

Is this as simple as re-writing mcf5225x_vectors.s to change:

vectorXX:    .long    _asm_exception_handler

to:

vectorXX:    .long    isr_function_name

?

Outcomes