This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Context Switch- RL-ARM

Hello,

i am starting to work with RL-ARM for CortexM3, and i have checking the manual. I miss more info about the context switch in CortexM3 using the RL-ARM. Another operating systems use the PendSVHandler() exception that executes after the last nested ISR to do the context switch. Pls. could someone clarify me how it is it done in RL-ARM, and where is located the code that does it?

Many thanks
Alberto

Parents
  • Thanks Frank!!.

    I have been checking the RL-ARM source code and i see (if i am not wrong) in the task level, that the OS_dispatch function start the scheduling,then calls the OS_switch_tasks function to do the context switch.

    I have some doubts about the ISR level scheduler. When you have nested interrupts, you can do several posts in some of these ISRs. Do you know which is the function used to do the scheduling in the ISR level after the last nested INT? I suppose that this scheduling function should trigger the PendSv exception, and then the PendSVHandler should do the context switch. Could you be so kind to clarify it to me?, Is there any example where i can check it?

    Many thanks in advance
    Alberto

Reply
  • Thanks Frank!!.

    I have been checking the RL-ARM source code and i see (if i am not wrong) in the task level, that the OS_dispatch function start the scheduling,then calls the OS_switch_tasks function to do the context switch.

    I have some doubts about the ISR level scheduler. When you have nested interrupts, you can do several posts in some of these ISRs. Do you know which is the function used to do the scheduling in the ISR level after the last nested INT? I suppose that this scheduling function should trigger the PendSv exception, and then the PendSVHandler should do the context switch. Could you be so kind to clarify it to me?, Is there any example where i can check it?

    Many thanks in advance
    Alberto

Children