Who is this for?

This is an introductory topic for software developers who would like to learn about context switching operations on Cortex-M processors in a bare-metal environment.

What will you learn?

After completing this Learning Path, you'll be able to perform the following tasks:

  • Understand the basics of context switching
  • Learn how to program the Memory Protection Unit (MPU)
  • Learn how to use the SysTick exception with context switching operations
  • Build and run an example project with Arm Development Studio (Arm DS)

Prerequisites

Before starting, you'll need the following prerequisites:

  • Basic knowledge and familiarity with Cortex-M processors.

Summary

AI-assisted

This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
You’ll build and run an open source example that demonstrates context switching on Arm Cortex‑M processors in a bare‑metal environment. Using Arm Development Studio, you’ll work with a project that configures the Memory Protection Unit (MPU) and drives switches with the SysTick exception to alternate execution between two threads. You’ll compile the code, run it on a Fast Models Fixed Virtual Platform (FVP), and examine the behavior to understand how MPU setup and SysTick handling interact during a simple real‑time kernel‑style switch. By the end, you’ll recognize the expected thread switching pattern and relate it to the MPU and SysTick configuration used in the example.
Next