Home / Learn Embedded C / ARM Cortex-M Overview

ARM Cortex-M Overview

The common core architecture underlying STM32 and many other 32-bit microcontroller families.

The short versionThe common core architecture underlying STM32 and many other 32-bit microcontroller families.

Theory in plain words

Cortex-M0 vs Cortex-M4Cortex-M0/M0+Minimal, low-power, low-costSimpler instruction setCortex-M4DSP instructions, optional FPUMore performance, highercost/power
Cortex-M0 vs Cortex-M4

Definition

ARM Cortex-M is a family of CPU cores (M0, M0+, M3, M4, M7, and others) licensed by ARM to many chip vendors (STMicroelectronics, NXP, and others), providing a common instruction set and architectural foundation that transfers across many otherwise-different vendor chip families.

Why you need this

Understanding Cortex-M specifically (rather than just "STM32") means skills and concepts (the vector table, NVIC interrupt controller, SysTick timer) transfer directly to other Cortex-M-based chips from completely different vendors, not just STM32.

How it works

Different Cortex-M variants (M0 through M7 and beyond) trade off cost, power consumption, and performance/feature richness (like M4's DSP instructions and optional FPU, versus M0's minimal, low-power simplicity) — choosing the right variant matches the project's actual performance needs.

Where you'll see this

  • Cross-vendor embedded skill transfer
  • Chip variant selection
  • Architecture-level understanding

Try it

Comparing feature flags across simulated Cortex-M variantsC: edit and run

These flags are simplified; real variant selection also weighs clock speed, power draw, and cost, but the core feature pattern is accurate.

Try it: picking a variant from a required feature

Selecting the cheapest Cortex-M variant that still has an FPUC: edit and run

This models a real selection process: scanning candidate variants in increasing cost order and stopping at the first one meeting a hard requirement.

Test what you just read

1. Why does understanding "ARM Cortex-M" specifically (not just "STM32") provide broader practical value?