Simon Chamlian

Is it possible to change the interrupt vector table dynamically?

Discussion created by Simon Chamlian on Dec 4, 2008
Latest reply on Dec 8, 2008 by Chris Johns

Hi,

 

Is it possible to change the interrupt vector table dynamically?

 

For example, say I have a file Vector.s with the vector table (5282 processor):

 

Code:
 VECTOR_TABLE:_VECTOR_TABLE:INITSP:   .long  ___SP_AFTER_RESET        INITPC:   .long  _start                                        //… etc etc...vector4D: .long  _asm_isr_handler        //… etc etc...


 
I would like to call a function InitialiseUART0(). Within this function, I would like to replace the vector entry with my ISR.

            vector4D:  .long _asm_isr_handle

                                       to

       vector4D:  .long _uart0_isr

 

Is it possible? How?

 

Thanks,

SVC

 

 

Outcomes