This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Saving context before switching to IRQ (timer interrupt)on TMS570LC43x microcontroller

I am working on setting up operating system (scheduler) for my current project.
I am  using RTI module of TMS570LC43x microcontroller to setup timer interrupt to schedule the real time scheduler. 
Per the Manual section 19.3 VIM vector is configured, vector interrupt table(VIM RAM) is initialized with ISR address before enabling interrupt. When CPU receives timer interrupt automatically switches to ISR routine.
My question is how am I going to save the context (we have our own save context macro) before switching to ISR routine.
  • Hello:

    We have received your post and will get back to you soon.

    Regards.

  • Hello:

    You can use "Index Interrupts Mode" as described in section 19.3.3 of Technical Reference Manual by pointing to your Main ISR in address 0x18. In your Main ISR you can perform any additional context saving your require and read the offset in IRQINDEX, FIQINDEX to determine the interrupt cause and then branch to the corresponding routine. Unfortunately this approach doesn't benefit on the VIM features and your latency will be affected.

    Regards,

    Enrique