Skip to main content
rajivpatil61
Associate II
December 18, 2014
Question

DIfferent Vector tables or single one

  • December 18, 2014
  • 2 replies
  • 700 views
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.

    This topic has been closed for replies.

    2 replies

    ivani
    Visitor II
    December 18, 2014
    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.

    Tesla DeLorean
    Guru
    December 18, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..