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
  • Of course you can. That is why you have ISR FIFO Queue size configuration option in the RTX_Config.c file. Nested isr functions store requests into this fifo. The FIFO is processed later, when all of the interrupts are done. This processing is done in the PendSV_Handler.

    Default setting for ISR FIFO Queue size is 16. This means that the nested interrupts can call isr 16 times, before the events get lost. However the FIFO overflow is trapped in an error function.

Reply
  • Of course you can. That is why you have ISR FIFO Queue size configuration option in the RTX_Config.c file. Nested isr functions store requests into this fifo. The FIFO is processed later, when all of the interrupts are done. This processing is done in the PendSV_Handler.

    Default setting for ISR FIFO Queue size is 16. This means that the nested interrupts can call isr 16 times, before the events get lost. However the FIFO overflow is trapped in an error function.

Children