ARM Cortex-M RTOS Context Switching | Interrupt

Many embedded systems reach a level of complexity where having a basic set of scheduling primitives and ability to run different tasks can be helpful. The operation of switching from one task to another is known as a context switch. A Real Time Operating System (RTOS) will typically provide this functionality. Having a foundational knowledge of how the core of an RTOS works can be a valuable skill set for an embedded engineer to have.


This is a companion discussion topic for the original entry at https://interrupt.memfault.com/blog/cortex-m-rtos-context-switching

Nice blog. I am looking for best opensource tool to trace FreeRTOS tasks. Any suggestion?

Also from you experiences can you suggest when to use static Memory Allocation and when Dynamic in FreeRTOS ? I always have a doubt.

Thanks

Great article–thanks!