cancel
Showing results for 
Search instead for 
Did you mean: 

DIfferent Vector tables or single one

rajivpatil61
Associate II
Posted on December 18, 2014 at 11:57

now I have 2 hex files running independently, to perform context switching i am using a systick timer, now should i use a single vector table to link them by calling same ISR, or define 2 Vector tables and call 2 different ISRs. In either case how to link them.

2 REPLIES 2
ivani
Associate II
Posted on December 18, 2014 at 13:20

Sounds like a good reason to switch to RTOS.

Besides this there is no need to alter the vector table just to change the behavior of the ISR. You could do it by a global state variable, which indicates the last action performed by the ISR.

Posted on December 18, 2014 at 14:02

Perhaps there is a better way to partition the functionality?

You could put the vector table in RAM and then register each interrupt vector/routine in a more dynamic fashion.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..