Recent from talks
Nothing was collected or created yet.
ARM Cortex-M
View on Wikipedia

24 MHz ARM Cortex-M3 microcontroller with 16 KB flash memory, 4 KB RAM. Manufactured by STMicroelectronics.
The ARM Cortex-M is a group of 32-bit RISC ARM processor cores licensed by ARM Limited. These cores are optimized for low-cost and energy-efficient integrated circuits, which have been embedded in tens of billions of consumer devices.[1] Though they are most often the main component of microcontroller chips, sometimes they are embedded inside other types of chips too. The Cortex-M family consists of Cortex-M0,[2] Cortex-M0+,[3] Cortex-M1,[4] Cortex-M3,[5] Cortex-M4,[6] Cortex-M7,[7] Cortex-M23,[8] Cortex-M33,[9] Cortex-M35P,[10] Cortex-M52,[11] Cortex-M55,[12] Cortex-M85.[13] A floating-point unit (FPU) option is available for Cortex-M4 / M7 / M33 / M35P / M52 / M55 / M85 cores, and when included in the silicon these cores are sometimes known as "Cortex-MxF", where 'x' is the core variant.
Overview
[edit]| 32-bit | |
|---|---|
| Year | Core |
| 2004 | Cortex-M3 |
| 2007 | Cortex-M1 |
| 2009 | Cortex-M0 |
| 2010 | Cortex-M4 |
| 2012 | Cortex-M0+ |
| 2014 | Cortex-M7 |
| 2016 | Cortex-M23 |
| 2016 | Cortex-M33 |
| 2018 | Cortex-M35P |
| 2020 | Cortex-M55 |
| 2022 | Cortex-M85 |
| 2023 | Cortex-M52 |
The ARM Cortex-M family are ARM microprocessor cores that are designed for use in microcontrollers, ASICs, ASSPs, FPGAs, and SoCs. Cortex-M cores are commonly used as dedicated microcontroller chips, but also are "hidden" inside of SoC chips as power management controllers, I/O controllers, system controllers, touch screen controllers, smart battery controllers, and sensor controllers.
The main difference from Cortex-A cores is that Cortex-M cores have no memory management unit (MMU) for virtual memory, considered essential for "full-fledged" operating systems. Cortex-M programs instead run bare metal or on one of the many real-time operating systems which support a Cortex-M.
Though 8-bit microcontrollers were very popular in the past, Cortex-M has slowly been chipping away at the 8-bit market as the prices of low-end Cortex-M chips have moved downward. Cortex-M have become a popular replacements for 8-bit chips in applications that benefit from 32-bit math operations, and replacing older legacy ARM cores such as ARM7 and ARM9.
In particular, the embedded wear-leveling controller inside most SD cards or flash drives is a (8-bit) 8051 microcontroller or ARM CPU.[14]
License
[edit]ARM Limited neither manufactures nor sells CPU devices based on its own designs, but rather licenses the processor architecture to interested parties. Arm offers a variety of licensing terms, varying in cost and deliverables. To all licensees, Arm provides an integratable hardware description of the ARM core, as well as complete software development toolset and the right to sell manufactured silicon containing the ARM CPU.
Silicon customization
[edit]Integrated Device Manufacturers (IDM) receive the ARM Processor IP as synthesizable RTL (written in Verilog). In this form, they have the ability to perform architectural level optimizations and extensions. This allows the manufacturer to achieve custom design goals, such as higher clock speed, very low power consumption, instruction set extensions (including floating point), optimizations for size, debug support, etc. To determine which components have been included in a particular ARM CPU chip, consult the manufacturer datasheet and related documentation.
Some of the silicon options for the Cortex-M cores are:
- SysTick timer: A 24-bit system timer that extends the functionality of both the processor and the Nested Vectored Interrupt Controller (NVIC). When present, it also provides an additional configurable priority SysTick interrupt.[15][16][17] Though the SysTick timer is optional for the M0/M0+/M1/M23, it is extremely rare to find a Cortex-M microcontroller without it. If a Cortex-M33/M35P/M52/M55/M85 microcontroller has the Security Extension option, then it optionally can have two SysTicks (one Secure, one Non-secure).
- Bit-Band: Maps a complete word of memory onto a single bit in the bit-band region. For example, writing to an alias word will set or clear the corresponding bit in the bit-band region. This allows every individual bit in the bit-band region to be directly accessible from a word-aligned address. In particular, individual bits can be set, cleared, or toggled from C/C++ without performing a read-modify-write sequence of instructions.[15][16][17] Though the bit-band is optional, it is less common to find a Cortex-M3 and Cortex-M4 microcontroller without it. Some Cortex-M0 and Cortex-M0+ microcontrollers have bit-band.
- Memory Protection Unit (MPU): Provides support for protecting regions of memory through enforcing privilege and access rules. It supports up to sixteen different regions, each of which can be split further into equal-size sub-regions.[15][16][17]
- Tightly-Coupled Memory (TCM): Low-latency (zero wait state) SRAM that can be used to hold the call stack, RTOS control structures, interrupt data structures, interrupt handler code, and speed critical code. Other than CPU cache, TCM is the fastest memory in an ARM Cortex-M microcontroller. Since TCM isn't cached and accessible at the same speed as the processor and cache, it could be conceptually described as "addressable cache". There is an ITCM (Instruction TCM) and a DTCM (Data TCM) to allow a Harvard architecture processor to read from both simultaneously. The DTCM can't contain any instructions, but the ITCM can contain data. Since TCM is tightly connected to the processor core, DMA engines might not be able to access TCM on some implementations.
| ARM Core | Cortex M0[18] |
Cortex M0+[19] |
Cortex M1[20] |
Cortex M3[21] |
Cortex M4[22] |
Cortex M7[23] |
Cortex M23[24] |
Cortex M33[25] |
Cortex M35P[10] |
Cortex M52[26] |
Cortex M55[27] |
Cortex M85[28] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SysTick 24-bit Timer | Optional (0,1) |
Optional (0, 1) |
Optional (0,1) |
Yes (1) |
Yes (1) |
Yes (1) |
Optional (0, 1, 2) |
Yes (1, 2) |
Yes (1, 2) |
Yes (1, 2) |
Yes (1, 2) |
Yes (1, 2) |
| Single-cycle I/O port | No | Optional | No | No | No | No | Optional | No | No | No | No | No |
| Bit-Band memory | No[29] | No[29] | No* | Optional | Optional | Optional | No | No | No | No | No | No |
| Memory Protection Unit (MPU) |
No | Optional (0, 8) |
No | Optional (0,8) |
Optional (0, 8) |
Optional (0, 8, 16) |
Optional (0, 4, 8, 12, 16) |
Optional (0, 4, 8, 12, 16) |
Optional (up to 16)* |
Optional (0, 4, 8, 12, 16) |
Optional (0, 4, 8, 12, 16) |
Optional (0, 4, 8, 12, 16) |
| Security Attribution Unit (SAU) and Stack Limits |
No | No | No | No | No | No | Optional (0, 4, 8) |
Optional (0, 4, 8) |
Optional (up to 8)* |
Optional (0, 4, 8) |
Optional (0, 4, 8) |
Optional (0, 4, 8) |
| Instruction Cache | No[30] | No[30] | No[30] | No[30] | No[30] | Optional (up to 64 KB) |
No | No | Optional (up to 16 KB) |
Optional (up to 64 KB) |
Optional (up to 64 KB) |
Optional (up to 64 KB) |
| Data Cache | No[30] | No[30] | No[30] | No[30] | No[30] | Optional (up to 64 KB) |
No | No | No | Optional (up to 64 KB) |
Optional (up to 64 KB) |
Optional (up to 64 KB) |
| Instruction TCM (ITCM) Memory |
No | No | Optional (up to 1 MB) |
No | No | Optional (up to 16 MB) |
No | No | No | Optional (up to 16 MB) |
Optional (up to 16 MB) |
Optional (up to 16 MB) |
| Data TCM (DTCM) Memory |
No | No | Optional (up to 1 MB) |
No | No | Optional (up to 16 MB) |
No | No | No | Optional (up to 16 MB) |
Optional (up to 16 MB) |
Optional (up to 16 MB) |
| ECC for TCM and Cache |
No | No | No | No | No | No | No | No | Optional | Optional | Optional | Optional |
| Vector Table Offset Register (VTOR) |
No | Optional (0,1) |
Optional (0,1) |
Optional (0,1) |
Optional (0,1) |
Optional (0,1) |
Optional (0,1,2) |
Yes (1,2) |
Yes (1,2) |
Yes (1,2) |
Yes (1,2) |
Yes (1,2) |
- Note: Most Cortex-M3 and M4 chips have bit-band and MPU. The bit-band option can be added to the M0/M0+ using the Cortex-M System Design Kit.[29]
- Note: Software should validate the existence of each feature before attempting to use it.[17]
- Note: Limited public information is available for the Cortex-M35P until its Technical Reference Manual is released.
Additional silicon options:[15][16]
- Data endianness: Little-endian or big-endian. Unlike legacy ARM cores, the Cortex-M is permanently fixed in silicon as one of these choices.
- Interrupts: 1 to 32 (M0/M0+/M1), 1 to 240 (M3/M4/M7/M23), 1 to 480 (M33/M35P/M52/M55/M85).
- Wake-up interrupt controller: Optional.
- Vector Table Offset Register: Optional. (not available for M0).
- Instruction fetch width: 16-bit only, or mostly 32-bit.
- User/privilege support: Optional.
- Reset all registers: Optional.
- Single-cycle I/O port: Optional. (M0+/M23).
- Debug Access Port (DAP): None, SWD, JTAG and SWD. (optional for all Cortex-M cores)
- Halting debug support: Optional.
- Number of watchpoint comparators: 0 to 2 (M0/M0+/M1), 0 to 4 (M3/M4/M7/M23/M33/M35P/M52/M55/M85).
- Number of breakpoint comparators: 0 to 4 (M0/M0+/M1/M23), 0 to 8 (M3/M4/M7/M33/M35P/M52/M55/M85).
Instruction sets
[edit]The Cortex-M0 / M0+ / M1 implement the ARMv6-M architecture,[15] the Cortex-M3 implements the ARMv7-M architecture,[16] the Cortex-M4 / Cortex-M7 implements the ARMv7E-M architecture,[16] the Cortex-M23 / M33 / M35P implement the ARMv8-M architecture,[31] and the Cortex-M52 / M55 / M85 implements the ARMv8.1-M architecture.[31] The architectures are binary instruction upward compatible from ARMv6-M to ARMv7-M to ARMv7E-M. Binary instructions available for the Cortex-M0 / Cortex-M0+ / Cortex-M1 can execute without modification on the Cortex-M3 / Cortex-M4 / Cortex-M7. Binary instructions available for the Cortex-M3 can execute without modification on the Cortex-M4 / Cortex-M7 / Cortex-M33 / Cortex-M35P.[15][16] Only Thumb-1 and Thumb-2 instruction sets are supported in Cortex-M architectures; the legacy 32-bit ARM instruction set isn't supported.
All Cortex-M cores implement a common subset of instructions that consists of most Thumb-1, some Thumb-2, including a 32-bit result multiply. The Cortex-M0 / Cortex-M0+ / Cortex-M1 / Cortex-M23 were designed to create the smallest silicon die, thus having the fewest instructions of the Cortex-M family.
The Cortex-M0 / M0+ / M1 include Thumb-1 instructions, except new instructions (CBZ, CBNZ, IT) which were added in ARMv7-M architecture. The Cortex-M0 / M0+ / M1 include a minor subset of Thumb-2 instructions (BL, DMB, DSB, ISB, MRS, MSR).[15] The Cortex-M3 / M4 / M7 / M33 / M35P have all base Thumb-1 and Thumb-2 instructions. The Cortex-M3 adds three Thumb-1 instructions, all Thumb-2 instructions, hardware integer divide, and saturation arithmetic instructions. The Cortex-M4 adds DSP instructions and an optional single-precision floating-point unit (VFPv4-SP). The Cortex-M7 adds an optional double-precision FPU (VFPv5).[23][16] The Cortex-M23 / M33 / M35P / M52 / M55 / M85 add TrustZone instructions.
| Arm Core | Cortex M0[18] |
Cortex M0+[19] |
Cortex M1[20] |
Cortex M3[21] |
Cortex M4[22] |
Cortex M7[23] |
Cortex M23[24] |
Cortex M33[25] |
Cortex M35P |
Cortex M52[26] |
Cortex M55[27] |
Cortex M85[28] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ARM architecture | ARMv6-M [15] |
ARMv6-M [15] |
ARMv6-M [15] |
ARMv7-M [16] |
ARMv7E-M [16] |
ARMv7E-M [16] |
ARMv8-M Baseline[31] |
ARMv8-M Mainline[31] |
ARMv8-M Mainline[31] |
Armv8.1-M Mainline[31] |
Armv8.1-M Mainline[31] |
Armv8.1-M Mainline[31] |
| Computer architecture | Von Neumann |
Von Neumann |
Von Neumann |
Harvard | Harvard | Harvard | Von Neumann |
Harvard | Harvard | Harvard | Harvard | Harvard |
| Instruction pipeline | 3 stages | 2 stages | 3 stages | 3 stages | 3 stages | 6 stages | 2 stages | 3 stages | 3 stages | 4 stages | 4-5 stages | 7 stages |
| Interrupt latency (zero wait state memory) |
16 cycles | 15 cycles | 23 for NMI, 26 for IRQ |
12 cycles | 12 cycles | 12 cycles, 14 worst case |
15 cycles, 24 secure to NS IRQ |
12 cycles, 21 secure to NS IRQ |
TBD | TBD | TBD | TBD |
| Thumb-1 instructions | Most | Most | Most | Entire | Entire | Entire | Most | Entire | Entire | Entire | Entire | Entire |
| Thumb-2 instructions | Some | Some | Some | Entire | Entire | Entire | Some | Entire | Entire | Entire | Entire | Entire |
| Multiply instructions 32×32 = 32-bit result |
Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Multiply instructions 32×32 = 64-bit result |
No | No | No | Yes | Yes | Yes | No | Yes | Yes | Yes | Yes | Yes |
| Divide instructions 32/32 = 32-bit quotient |
No | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Saturated math instructions | No | No | No | Some | Yes | Yes | No | Yes | Yes | Yes | Yes | Yes |
| DSP instructions | No | No | No | No | Yes | Yes | No | Optional | Optional | Yes | Yes | Yes |
| Half-Precision (HP) floating-point instructions |
No | No | No | No | No | No | No | No | No | Optional | Optional | Optional |
| Single-Precision (SP) floating-point instructions |
No | No | No | No | Optional | Optional | No | Optional | Optional | Optional | Optional | Optional |
| Double-Precision (DP) floating-point instructions |
No | No | No | No | No | Optional | No | No | No | Optional | Optional | Optional |
| Helium vector instructions | No | No | No | No | No | No | No | No | No | Optional | Optional | Optional |
| TrustZone security instructions | No | No | No | No | No | No | Optional | Optional | Optional | Optional | Optional | Yes |
| Co-processor instructions | No | No | No | No | No | No | No | Optional | Optional | Optional | Optional | Optional |
| ARM Custom Instructions (ACI) | No | No | No | No | No | No | No | Optional | No | Optional | Optional | Optional |
| Pointer Authentication and Branch Target Identification (PACBTI) instructions |
No | No | No | No | No | No | No | No | No | Optional | No | Optional |
- Note: Interrupt latency cycle count assumes: 1) stack located in zero-wait state RAM, 2) another interrupt function not currently executing, 3) Security Extension option doesn't exist, because it adds additional cycles. The Cortex-M cores with a Harvard computer architecture have a shorter interrupt latency than Cortex-M cores with a Von Neumann computer architecture.
- Note: The Cortex-M series includes three new 16-bit Thumb-1 instructions for sleep mode: SEV, WFE, WFI.
- Note: The Cortex-M0 / M0+ / M1 doesn't include these 16-bit Thumb-1 instructions: CBZ, CBNZ, IT.[15][16]
- Note: The Cortex-M0 / M0+ / M1 only include these 32-bit Thumb-2 instructions: BL, DMB, DSB, ISB, MRS, MSR.[15][16]
- Note: The Cortex-M0 / M0+ / M1 / M23 only has 32-bit multiply instructions with a lower-32-bit result (32 bit × 32 bit = lower 32 bit), where as the Cortex-M3 / M4 / M7 / M33 / M35P includes additional 32-bit multiply instructions with 64-bit results (32 bit × 32 bit = 64 bit). The Cortex-M4 / M7 (optionally M33 / M35P) include DSP instructions for (16 bit × 16 bit = 32 bit), (32 bit × 16 bit = upper 32 bit), (32 bit × 32 bit = upper 32 bit) multiplications.[15][16]
- Note: The number of cycles to complete multiply and divide instructions vary across ARM Cortex-M core designs. Some cores have a silicon option for the choice of fast speed or small size (slow speed), so cores have the option of using less silicon with the downside of higher cycle count. An interrupt occurring during the execution of a divide instruction or slow-iterative multiply instruction will cause the processor to abandon the instruction, then restart it after the interrupt returns.
- Multiply instructions "32-bit result" – Cortex-M0/M0+/M23 is 1 or 32 cycle silicon option, Cortex-M1 is 3 or 33 cycle silicon option, Cortex-M3/M4/M7/M33/M35P is 1 cycle.
- Multiply instructions "64-bit result" – Cortex-M3 is 3–5 cycles (depending on values), Cortex-M4/M7/M33/M35P is 1 cycle.
- Divide instructions – Cortex-M3/M4 is 2–12 cycles (depending on values), Cortex-M7 is 3–20 cycles (depending on values), Cortex-M23 is 17 or 34 cycle option, Cortex-M33 is 2–11 cycles (depending on values), Cortex-M35P is TBD.
- Note: Some Cortex-M cores have silicon options for various types of floating point units (FPU). The Cortex-M55 / M85 has an option for half-precision (HP), the Cortex-M4 / M7 / M33 / M35P / M52 / M55 / M85 has an option for single-precision (SP), the Cortex-M7 / M52 / M55 / M85 has an option for double-precision (DP). When an FPU is included, the core is sometimes referred as "Cortex-MxF", where 'x' is the core variant, such as Cortex-M4F.[15][16]
| Group | Instr bits |
Instructions | Cortex M0, M0+, M1 |
Cortex M3 |
Cortex M4 |
Cortex M7 |
Cortex M23 |
Cortex M33 |
Cortex M35P |
Cortex M52 |
Cortex M55 |
Cortex M85 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Thumb-1 | 16 | ADC, ADD, ADR, AND, ASR, B, BIC, BKPT, BLX, BX, CMN, CMP, CPS, EOR, LDM, LDR, LDRB, LDRH, LDRSB, LDRSH, LSL, LSR, MOV, MUL, MVN, NOP, ORR, POP, PUSH, REV, REV16, REVSH, ROR, RSB, SBC, SEV, STM, STR, STRB, STRH, SUB, SVC, SXTB, SXTH, TST, UXTB, UXTH, WFE, WFI, YIELD | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Thumb-1 | 16 | CBNZ, CBZ | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Thumb-1 | 16 | IT | No | Yes | Yes | Yes | No | Yes | Yes | Yes | Yes | Yes |
| Thumb-2 | 32 | BL, DMB, DSB, ISB, MRS, MSR | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Thumb-2 | 32 | SDIV, UDIV, MOVT, MOVW, B.W, LDREX, LDREXB, LDREXH, STREX, STREXB, STREXH | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Thumb-2 | 32 | ADC, ADD, ADR, AND, ASR, B, BFC, BFI, BIC, CDP, CLREX, CLZ, CMN, CMP, DBG, EOR, LDC, LDM, LDR, LDRB, LDRBT, LDRD, LDRH, LDRHT, LDRSB, LDRSBT, LDRSH, LDRSHT, LDRT, LSL, LSR, MCR, MCRR, MLA, MLS, MRC, MRRC, MUL, MVN, NOP, ORN, ORR, PLD, PLDW, PLI, POP, PUSH, RBIT, REV, REV16, REVSH, ROR, RRX, RSB, SBC, SBFX, SEV, SMLAL, SMULL, SSAT, STC, STM, STR, STRB, STRBT, STRD, STRH, STRHT, STRT, SUB, SXTB, SXTH, TBB, TBH, TEQ, TST, UBFX, UMLAL, UMULL, USAT, UXTB, UXTH, WFE, WFI, YIELD | No | Yes | Yes | Yes | No | Yes | Yes | Yes | Yes | Yes |
| DSP | 32 | PKH, QADD, QADD16, QADD8, QASX, QDADD, QDSUB, QSAX, QSUB, QSUB16, QSUB8, SADD16, SADD8, SASX, SEL, SHADD16, SHADD8, SHASX, SHSAX, SHSUB16, SHSUB8, SMLABB, SMLABT, SMLATB, SMLATT, SMLAD, SMLALBB, SMLALBT, SMLALTB, SMLALTT, SMLALD, SMLAWB, SMLAWT, SMLSD, SMLSLD, SMMLA, SMMLS, SMMUL, SMUAD, SMULBB, SMULBT, SMULTT, SMULTB, SMULWT, SMULWB, SMUSD, SSAT16, SSAX, SSUB16, SSUB8, SXTAB, SXTAB16, SXTAH, SXTB16, UADD16, UADD8, UASX, UHADD16, UHADD8, UHASX, UHSAX, UHSUB16, UHSUB8, UMAAL, UQADD16, UQADD8, UQASX, UQSAX, UQSUB16, UQSUB8, USAD8, USADA8, USAT16, USAX, USUB16, USUB8, UXTAB, UXTAB16, UXTAH, UXTB16 | No | No | Yes | Yes | No | Optional | Optional | Yes | Yes | Yes |
| SP Float | 32 | VABS, VADD, VCMP, VCMPE, VCVT, VCVTR, VDIV, VLDM, VLDR, VMLA, VMLS, VMOV, VMRS, VMSR, VMUL, VNEG, VNMLA, VNMLS, VNMUL, VPOP, VPUSH, VSQRT, VSTM, VSTR, VSUB | No | No | Optional | Optional | No | Optional | Optional | Optional | Optional | Optional |
| DP Float | 32 | VCVTA, VCVTM, VCVTN, VCVTP, VMAXNM, VMINNM, VRINTA, VRINTM, VRINTN, VRINTP, VRINTR, VRINTX, VRINTZ, VSEL | No | No | No | Optional | No | No | No | Optional | Optional | Optional |
| Acquire/Release | 32 | LDA, LDAB, LDAH, LDAEX, LDAEXB, LDAEXH, STL, STLB, STLH, STLEX, STLEXB, STLEXH | No | No | No | No | Yes | Yes | Yes | Yes | Yes | Yes |
| TrustZone | 16 | BLXNS, BXNS | No | No | No | No | Optional | Optional | Optional | Optional | Optional | Yes |
| 32 | SG, TT, TTT, TTA, TTAT | |||||||||||
| Co-processor | 16 | CDP, CDP2, MCR, MCR2, MCRR, MCRR2, MRC, MRC2, MRRC, MRRC2 | No | No | No | No | No | Optional | Optional | Optional | Optional | Optional |
| ACI | 32 | CX1, CX1A, CX2, CX2A, CX3, CX3A, CX1D, CX1DA, CX2D, CX2DA, CX3D, CX3DA, VCX1, VCX1A, VCX2, VCX2A, VCX3, VCX3A | No | No | No | No | No | Optional | No | Optional | Optional | Optional |
| PACBTI | 32 | AUT, AUTG, BTI, BXAUT, PAC, PACBTI, PACG | No | No | No | No | No | No | No | Optional | No | Optional |
- Note: MOVW is an alias that means 32-bit "wide" MOV instruction.
- Note: B.W is a long-distance unconditional branch (similar in encoding, operation, and range to BL, minus setting of the LR register).
- Note: For Cortex-M1, WFE / WFI / SEV instructions exist, but execute as a NOP instruction.
- Note: The half-precision (HP) FPU instructions are valid in the Cortex-M52 / M55 / M85 only when the HP FPU option exists in the silicon.
- Note: The single-precision (SP) FPU instructions are valid in the Cortex-M4 / M7 / M33 / M35P / M52 / M55 / M85 only when the SP FPU option exists in the silicon.
- Note: The double-precision (DP) FPU instructions are valid in the Cortex-M7 / M52 / M55 / M85 only when the DP FPU option exists in the silicon.
Deprecations
[edit]The ARM architecture for ARM Cortex-M series removed some features from older legacy cores:[15][16]
- The 32-bit ARM instruction set is not included in Cortex-M cores.
- Endianness is chosen at silicon implementation in Cortex-M cores. Legacy cores allowed "on-the-fly" changing of the data endian mode.
- Co-processors were not supported on Cortex-M cores, until the silicon option was reintroduced in "ARMv8-M Mainline" for ARM Cortex-M33/M35P cores.
The capabilities of the 32-bit ARM instruction set is duplicated in many ways by the Thumb-1 and Thumb-2 instruction sets, but some ARM features don't have a similar feature:
- The SWP and SWPB (swap) ARM instructions don't have a similar feature in Cortex-M.
The 16-bit Thumb-1 instruction set has evolved over time since it was first released in the legacy ARM7T cores with the ARMv4T architecture. New Thumb-1 instructions were added as each legacy ARMv5 / ARMv6 / ARMv6T2 architectures were released. Some 16-bit Thumb-1 instructions were removed from the Cortex-M cores:
- The "BLX <immediate>" instruction doesn't exist because it was used to switch from Thumb-1 to ARM instruction set. The "BLX <register>" instruction is still available in the Cortex-M.
- SETEND doesn't exist because on-the-fly switching of data endian mode is no longer supported.
- Co-processor instructions were not supported on Cortex-M cores, until the silicon option was reintroduced in "ARMv8-M Mainline" for ARM Cortex-M33/M35P cores.
- The SWI instruction was renamed to SVC, though the instruction binary coding is the same. However, the SVC handler code is different from the SWI handler code, because of changes to the exception models.
Cortex-M0
[edit]| Architecture and classification | |
|---|---|
| Instruction set | ARMv6-M (Thumb-1 (most), Thumb-2 (some)) |
The Cortex-M0 core is optimized for small silicon die size and use in the lowest price chips.[2]
Key features of the Cortex-M0 core are:[18]
- ARMv6-M architecture[15]
- 3-stage pipeline
- Instruction sets:
- Thumb-1 (most), missing CBZ, CBNZ, IT
- Thumb-2 (some), only BL, DMB, DSB, ISB, MRS, MSR
- 32-bit hardware integer multiply with 32-bit result
- 1 to 32 interrupts, plus NMI
Silicon options:
- Hardware integer multiply speed: 1 or 32 cycles.
Chips
[edit]
The following microcontrollers are based on the Cortex-M0 core:
- ABOV AC30M1x64
- Cypress PSoC 4000, 4100, 4100M, 4200, 4200DS, 4200L, 4200M
- Infineon XMC1100, XMC1200, XMC1300, XMC1400, TLE984x
- Dialog DA1458x, DA1468x
- Nordic nRF51
- NXP LPC1100, LPC1200
- Nuvoton NuMicro
- Sonix SN32F700
- ST STM32 F0
- Toshiba TX00
- Vorago VA10800 (extreme temperature), VA10820 (radiation hardened)
The following chips have a Cortex-M0 as a secondary core:
- NXP LPC4300 (one Cortex-M4F + one Cortex-M0)
- Texas Instruments SimpleLink Wireless MCUs CC1310 and CC2650 (one programmable Cortex-M3 + one Cortex-M0 network processor + one proprietary Sensor Controller Engine)
Cortex-M0+
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv6-M |
| Instruction set | Thumb-1 (most), Thumb-2 (some) |
The Cortex-M0+ is an optimized superset of the Cortex-M0. The Cortex-M0+ has complete instruction set compatibility with the Cortex-M0 thus allowing the use of the same compiler and debug tools. The Cortex-M0+ pipeline was reduced from 3 to 2 stages, which lowers the power usage and increases performance (higher average IPC due to branches taking one fewer cycle). In addition to debug features in the existing Cortex-M0, a silicon option can be added to the Cortex-M0+ called the Micro Trace Buffer (MTB) which provides a simple instruction trace buffer. The Cortex-M0+ also received Cortex-M3 and Cortex-M4 features, which can be added as silicon options, such as the memory protection unit (MPU) and the vector table relocation.[19]
Key features of the Cortex-M0+ core are:[19]
- ARMv6-M architecture[15]
- 2-stage pipeline (one fewer than Cortex-M0)
- Instruction sets: (same as Cortex-M0)
- Thumb-1 (most), missing CBZ, CBNZ, IT
- Thumb-2 (some), only BL, DMB, DSB, ISB, MRS, MSR
- 32-bit hardware integer multiply with 32-bit result
- 1 to 32 interrupts, plus NMI
Silicon options:
- Hardware integer multiply speed: 1 or 32 cycles
- 8-region memory protection unit (MPU) (same as M3 and M4)
- Vector table relocation (same as M3, M4)
- Single-cycle I/O port (available in M0+/M23)
- Micro Trace Buffer (MTB) (available in M0+/M23/M33/M35P)
Chips
[edit]The following microcontrollers are based on the Cortex-M0+ core:
- ABOV Semiconductor A31G11x, A31G12x, A31G314
- Cypress PSoC 4000S, 4100S, 4100S+, 4100PS, 4700S, FM0+
- Epson S1C31W74, S1C31D01, S1C31D50
- Holtek HT32F52000
- Microchip SAM C2, D0, D1, D2, DA, L2, R2, R3; and PIC32CM JH and MC[32]
- NXP LPC800, LPC11E60, LPC11U60
- NXP (Freescale) Kinetis E, EA, L, M, V1, W0, S32K11x
- Raspberry Pi RP2040 (two M0+ cores)
- Renesas S124, S128, RE, RE01
- Silicon Labs (Energy Micro) EFM32 Zero, Happy
- ST STM32 L0, G0, C0, WL (one Cortex-M4 + one Cortex-M0+)
The following chips have a Cortex-M0+ as a secondary core:
The smallest ARM microcontrollers are of the Cortex-M0+ type (as of 2014, smallest at 1.6 mm by 2 mm in a chip-scale package is Kinetis KL03).[33]
On 21 June 2018, the "world's smallest computer'", or computer device was announced – based on the ARM Cortex-M0+ (and including RAM and wireless transmitters and receivers based on photovoltaics) – by University of Michigan researchers at the 2018 Symposia on VLSI Technology and Circuits with the paper "A 0.04mm3 16nW Wireless and Batteryless Sensor System with Integrated Cortex-M0+ Processor and Optical Communication for Cellular Temperature Measurement." The device is one-tenth the size of IBM's previously claimed world-record-sized computer from months back in March 2018, which is smaller than a grain of salt.
Cortex-M1
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv6-M |
| Instruction set | Thumb-1 (most), Thumb-2 (some) |
The Cortex-M1 is an optimized core especially designed to be loaded into FPGA chips.[4]
Key features of the Cortex-M1 core are:[20]
- ARMv6-M architecture[15]
- 3-stage pipeline.
- Instruction sets:
- Thumb-1 (most), missing CBZ, CBNZ, IT.
- Thumb-2 (some), only BL, DMB, DSB, ISB, MRS, MSR.
- 32-bit hardware integer multiply with 32-bit result.
- 1 to 32 interrupts, plus NMI.
Silicon options:
- Hardware integer multiply speed: 3 or 33 cycles.
- Optional Tightly-Coupled Memory (TCM): 0 to 1 MB instruction-TCM, 0 to 1 MB data-TCM, each with optional ECC.
- External interrupts: 0, 1, 8, 16, 32.
- Debug: none, reduced, full.
- Data endianness: little-endian or BE-8 big-endian.
- OS extension: present or absent.
Chips
[edit]The following vendors support the Cortex-M1 as soft-cores on their FPGA chips:
Cortex-M3
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv7-M |
| Instruction set | Thumb-1, Thumb-2, Saturated (some), Divide |


Key features of the Cortex-M3 core are:[21][36]
- ARMv7-M architecture[16]
- 3-stage pipeline with branch speculation.
- Instruction sets:
- Thumb-1 (entire).
- Thumb-2 (entire).
- 32-bit hardware integer multiply with 32-bit or 64-bit result, signed or unsigned, add or subtract after the multiply. 32-bit multiply is 1 cycle, but 64-bit multiply and MAC instructions require extra cycles.
- 32-bit hardware integer divide (2–12 cycles).
- saturation arithmetic support.
- 1 to 240 interrupts, plus NMI.
- 12 cycle interrupt latency.
- Integrated sleep modes.
Silicon options:
- Optional Memory Protection Unit (MPU): 0 or 8 regions.
Chips
[edit]The following microcontrollers are based on the Cortex-M3 core:
- ABOV AC33Mx128, AC33Mx064
- Actel/Microsemi/Microchip SmartFusion, SmartFusion 2 (FPGA)
- Analog Devices ADUCM360, ADUCM361, ADUCM3029
- Broadcom Wi-Fi Chip BCM4319XKUBG
- Cypress PSoC 5000, 5000LP, FM3
- Holtek HT32F
- Infineon TLE9860, TLE987x
- Microchip (Atmel) SAM 3A, 3N, 3S, 3U, 3X
- NXP LPC1300, LPC1700, LPC1800
- ON Q32M210
- Realtek RTL8710
- Silicon Labs Precision32
- Silicon Labs (Energy Micro) EFM32 Tiny, Gecko, Leopard, Giant
- ST STM32 F1, F2, L1, W
- TDK-Micronas HVC4223F
- Texas Instruments F28, LM3, TMS470, OMAP 4, SimpleLink Wireless MCUs (CC1310 Sub-GHz and CC2650 BLE+Zigbee+6LoWPAN)
- Toshiba TX03
- mindmotion mindmotion MM32
The following chips have a Cortex-M3 as a secondary core:
- Apple A9 (Cortex-M3 as integrated M9 motion co-processor)
- CSR Quatro 5300 (Cortex-M3 as co-processor)
- Samsung Exynos 7420 (Cortex-M3 as a DVS microcontroller)[37]
- Texas Instruments F28, LM3, TMS470, OMAP 4470 (one Cortex-A9 + two Cortex-M3)
- XMOS XS1-XA (seven xCORE + one Cortex-M3)
The following FPGAs include a Cortex-M3 core:
- Microsemi SmartFusion2 SoC
The following vendors support the Cortex-M3 as soft-cores on their FPGA chips:
Cortex-M4
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv7E-M |
| Instruction set | Thumb-1, Thumb-2, Saturated, DSP, Divide, FPU (SP) |
Conceptually the Cortex-M4 is a Cortex-M3 plus DSP instructions, and optional floating-point unit (FPU). A core with an FPU is known as Cortex-M4F.
Key features of the Cortex-M4 core are:[22]
- ARMv7E-M architecture[16]
- 3-stage pipeline with branch speculation.
- Instruction sets:
- Thumb-1 (entire).
- Thumb-2 (entire).
- 32-bit hardware integer multiply with 32-bit or 64-bit result, signed or unsigned, add or subtract after the multiply. 32-bit Multiply and MAC are 1 cycle.
- 32-bit hardware integer divide (2–12 cycles).
- Saturation arithmetic support.
- DSP extension: Single cycle 16/32-bit MAC, single cycle dual 16-bit MAC, 8/16-bit SIMD arithmetic.
- 1 to 240 interrupts, plus NMI.
- 12 cycle interrupt latency.
- Integrated sleep modes.
Silicon options:
- Optional floating-point unit (FPU): single-precision only IEEE-754 compliant. It is called the FPv4-SP extension.
- Optional memory protection unit (MPU): 0 or 8 regions.
Chips
[edit]
The following microcontrollers are based on the Cortex-M4 core:
- Analog Devices ADSP-CM40x
- Microchip (Atmel) SAM 4L, 4N, 4S
- NXP (Freescale) Kinetis K, W2
- ST (STM32) WL (one Cortex-M4 + one Cortex-M0+)
- Texas Instruments SimpleLink Wi-Fi CC32xx, CC32xxMOD
The following microcontrollers are based on the Cortex-M4F (M4 + FPU) core:
- Analog Devices ADUCM4050
- Cypress 6200 (one Cortex-M4F + one Cortex-M0+), FM4
- Infineon XMC4000
- Maxim Darwin
- Microchip (Atmel) SAM4C (Dual core: one Cortex-M4F + one Cortex-M4), SAM4E, SAM4L, SAM4N, SAM4S, SAMG5, SAMD5/E5x
- Nordic nRF52
- Nuvoton NuMicro M480
- NXP LPC4000, LPC4300 (one Cortex-M4F + one Cortex-M0), LPC54000
- NXP (Freescale) Kinetis K, V3, V4, S32K14x
- Renesas S3, S5, S7, RA4, RA6
- Silicon Labs (Energy Micro) EFM32 Wonder
- ST STM32 F3, F4, L4, L4+, G4, WB (one Cortex-M4F + one Cortex-M0+)
- Texas Instruments LM4F, TM4C, MSP432, CC13x2R, CC1352P, CC26x2R
- Toshiba TX04
The following chips have either a Cortex-M4 or M4F as a secondary core:
- NXP (Freescale) Vybrid VF6 (one Cortex-A5 + one Cortex-M4F)
- NXP (Freescale) i.MX 6 SoloX (one Cortex-A9 + one Cortex-M4F)
- NXP (Freescale) i.MX 7 Solo/Dual (one or two Cortex-A7 + one Cortex-M4F)
- NXP (Freescale) i.MX 8 (two Cortex-A72 + four Cortex-A53 + two Cortex-M4F)
- NXP (Freescale) i.MX 8M and 8M Mini (four Cortex-A53 + one Cortex-M4F)
- NXP (Freescale) i.MX 8X (four Cortex-A35 + one Cortex-M4F)
- ST STM32MP1 (one or two Cortex-A7 + one Cortex-M4)
- Texas Instruments OMAP 5 (two Cortex-A15s + two Cortex-M4)
- Texas Instruments Sitara AM5700 (one or two Cortex-A15s + two Cortex-M4s as image processing units + two Cortex-M4s as general purpose units)
Cortex-M7
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv7E-M |
| Instruction set | Thumb-1, Thumb-2, Saturated, DSP, Divide, FPU (SP & DP) |

The Cortex-M7 is a high-performance core with almost double the power efficiency of the older Cortex-M4.[7] It features a 6-stage superscalar pipeline with branch prediction and an optional floating-point unit capable of single-precision and optionally double-precision operations.[7][39] The instruction and data buses have been enlarged to 64-bit wide over the previous 32-bit buses. If a core contains an FPU, it is known as a Cortex-M7F, otherwise it is a Cortex-M7.
Key features of the Cortex-M7 core are:[23]
- ARMv7E-M architecture.
- 6-stage pipeline with branch speculation. Second-longest of all ARM Cortex-M cores, with the first being Cortex-M85.
- Instruction sets:
- Thumb-1 (entire).
- Thumb-2 (entire).
- 32-bit hardware integer multiply with 32-bit or 64-bit result, signed or unsigned, add or subtract after the multiply. 32-bit Multiply and MAC are 1 cycle.
- 32-bit hardware integer divide (2–12 cycles).
- Saturation arithmetic support.
- DSP extension: Single cycle 16/32-bit MAC, single cycle dual 16-bit MAC, 8/16-bit SIMD arithmetic.
- 1 to 240 interrupts, plus NMI.
- 12 cycle interrupt latency.
- Integrated sleep modes.
Silicon options:
- Optional floating-point unit (FPU): (single precision) or (single and double-precision), both IEEE-754-2008 compliant. It is called the FPv5 extension.
- Optional CPU cache: 0 to 64 KB instruction-cache, 0 to 64 KB data-cache, each with optional ECC.
- Optional Tightly-Coupled Memory (TCM): 0 to 16 MB instruction-TCM, 0 to 16 MB data-TCM, each with optional ECC.
- Optional Memory Protection Unit (MPU): 8 or 16 regions.
- Optional Embedded Trace Macrocell (ETM): instruction-only, or instruction and data.
- Optional Retention Mode (with Arm Power Management Kit) for Sleep Modes.
- Optional dual-redundant lock-step operation.
Chips
[edit]The following microcontrollers are based on the Cortex-M7 core:
Cortex-M23
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv8-M Baseline |
| Instruction set | Thumb-1 (most), Thumb-2 (some), Divide, TrustZone |
The Cortex-M23 core was announced in October 2016[40] and based on the ARMv8-M architecture that was previously announced in November 2015.[41] Conceptually the Cortex-M23 is similar to a Cortex-M0+ plus integer divide instructions and TrustZone security features, and also has a 2-stage instruction pipeline.[8]
Key features of the Cortex-M23 core are:[24][40]
- ARMv8-M Baseline architecture.[31]
- 2-stage pipeline. (similar to Cortex-M0+)
- TrustZone security instructions.
- 32-bit hardware integer divide (17 or 34 cycles).(slower than divide in all other cores)
- Stack limit boundaries. (available only with SAU option)
Silicon options:
- Hardware integer multiply speed: 1 or 32 cycles.
- Hardware integer divide speed: 17 or 34 cycles maximum. Depending on divisor, instruction may complete in fewer cycles.
- Optional Memory Protection Unit (MPU): 0, 4, 8, 12, 16 regions.
- Optional Security Attribution Unit (SAU): 0, 4, 8 regions.
- Single-cycle I/O port (available in M0+/M23).
- Micro Trace Buffer (MTB)
Chips
[edit]The following microcontrollers are based on the Cortex-M23 core:
- GigaDevice GD32E2xx
- Microchip SAM L10, L11, and PIC 32CM-LE 32CM-LS
- Nuvoton M23xx family, M2xx family, NUC1262, M2L31
- Renesas S1JA, RA2A1, RA2L1, RA2E1, RA2E2
Cortex-M33
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv8-M Mainline |
| Instruction set | Thumb-1, Thumb-2, Saturated, DSP, Divide, FPU (SP), TrustZone, Co-processor |
The Cortex-M33 core was announced in October 2016[40] and based on the ARMv8-M architecture that was previously announced in November 2015.[41] Conceptually the Cortex-M33 is similar to a cross of Cortex-M4 and Cortex-M23, and also has a 3-stage instruction pipeline.[9]
Key features of the Cortex-M33 core are:[25][40]
- ARMv8-M Mainline architecture.[31]
- 3-stage pipeline.
- TrustZone security instructions.
- 32-bit hardware integer divide (11 cycles maximum).
- Stack limit boundaries. (available only with SAU option)
Silicon options:
- Optional Floating-Point Unit (FPU): single-precision only IEEE-754 compliant. It is called the FPv5 extension.
- Optional Memory Protection Unit (MPU): 0, 4, 8, 12, 16 regions.
- Optional Security Attribution Unit (SAU): 0, 4, 8 regions.
- Micro Trace Buffer (MTB)
Chips
[edit]The following microcontrollers are based on the Cortex-M33 core:
- Analog Devices ADUCM4
- Dialog DA1469x
- GigaDevice GD32E5, GD32W5
- Nordic nRF91, nRF5340, nRF54, nRF54H20[42]
- NXP LPC5500, i.MX RT600, MCX N94x/54x (dual core)
- ON RSL15
- Renesas RA4, RA6
- ST STM32 H5, L5, U5, WBA
- Silicon Labs Wireless Gecko Series 2
- Texas Instruments CC3501E, CC3551E
- Raspberry Pi RP2350
The following chips have a Cortex-M33 or M33F as a secondary core:
- Infineon PSoC Edge
- ST STM32MP2 (one or two Cortex-A35 + one Cortex-M33)
Cortex-M35P
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv8-M Mainline |
| Instruction set | Thumb-1, Thumb-2, Saturated, DSP, Divide, FPU (SP), TrustZone, Co-processor |
The Cortex-M35P core was announced in May 2018 and based on the Armv8-M architecture. It is conceptually a Cortex-M33 core with a new instruction cache, plus new tamper-resistant hardware concepts borrowed from the ARM SecurCore family, and configurable parity and ECC features.[10]
Currently, information about the Cortex-M35P is limited, because its Technical Reference Manual and Generic User Guide haven't been released yet.
Chips
[edit]The following microcontrollers are based on the Cortex-M35P core:
- STMicroelectronics ST33K
Cortex-M52
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv8.1-M Mainline Helium |
| Instruction set | Thumb-1, Thumb-2, Saturated, DSP, Divide, FPU (VFPv5), TrustZone, Coprocessor, MVE |
The Cortex-M52 core was announced in November 2023 and based on the Armv8.1-M architecture. Conceptually, it can be seen as a cross between the Cortex-M33 and the Cortex-M55. Key differences are that its Helium co-processor is single beat (the M55 is dual beat), and it has a 32-bit main bus similar to the M33 to ease transition of applications. It has a 4 stage instruction pipeline.[11]
Key features of the Cortex-M52 core include:
- ARMv8.1-M Mainline/Helium architecture.[31]
- 4-stage pipeline.
- Stack limit boundaries (available only with SAU option).
- 32-bit main bus (AHB or AXI)[11]
Silicon options:
- Helium (M-Profile Vector Extension, MVE)
- Pointer Authentication and Branch Target Identification Extension
- Single-Precision and Double-Precision floating-point
- Digital Signal Processing (DSP) extension support
- TrustZone security extension support
- Safety and reliability (RAS) support
- Coprocessor support
- Secure and Non-secure MPU with 0, 4, 8, 12, or 16 regions
- SAU with 0, 4, or 8 regions
- Instruction cache with size of up to 64 KB
- Data cache with size of up to 64 KB
- ECC on caches and TCMs
- 1–480 interrupts
- 3–8 exception priority bits
- Internal and external WIC options, optional CTI, ITM, and DWT
- ARM Custom Instructions
Chips
[edit]The following microcontrollers are based on the Cortex M52 core
- Geehy Semiconductor G32R5[43]
Cortex-M55
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv8.1-M Mainline Helium |
| Instruction set | Thumb-1, Thumb-2, Saturated, DSP, Divide, FPU (VFPv5), TrustZone, Coprocessor, MVE |
The Cortex-M55 core was announced in February 2020 and based on the Armv8.1-M architecture. It has a 4 or 5 stage instruction pipeline.[12]
Key features of the Cortex-M55 core include:
- ARMv8.1-M Mainline/Helium architecture.[31]
- 4-stage pipeline.
- Stack limit boundaries (available only with SAU option).
- 64-bit AXI main bus[12]
Silicon options:
- Helium (M-Profile Vector Extension, MVE)
- Single-Precision and Double-Precision floating-point
- Digital Signal Processing (DSP) extension support
- TrustZone security extension support
- Safety and reliability (RAS) support
- Coprocessor support
- Secure and Non-secure MPU with 0, 4, 8, 12, or 16 regions
- SAU with 0, 4, or 8 regions
- Instruction cache with size of 4 KB, 8 KB, 16 KB, 32 KB, 64 KB
- Data cache with size of 4 KB, 8 KB, 16 KB, 32 KB, 64 KB
- ECC on caches and TCMs
- 1–480 interrupts
- 3–8 exception priority bits
- Internal and external WIC options, optional CTI, ITM, and DWT
- ARM Custom Instructions
Chips
[edit]- Alif Semiconductor Ensemble & Balletto MCU families offer single or dual Cortex-M55 cores, each paired with Ethos-U55 NPUs
- Infineon PSoC Edge
- ST STM32 N6
Cortex-M85
[edit]| Architecture and classification | |
|---|---|
| Microarchitecture | ARMv8.1-M Mainline Helium |
| Instruction set | Thumb-1, Thumb-2, Saturated, DSP, Divide, FPU (VFPv5), TrustZone, Coprocessor, MVE |
The Cortex-M85 core was announced in April 2022 and based on the Armv8.1-M architecture. It has a 7-stage instruction pipeline.[13]
Silicon options:
- Optional CPU cache: 0 to 64 KB instruction-cache, 0 to 64 KB data-cache, each with optional ECC.
- Optional Tightly-Coupled Memory (TCM): 0 to 16 MB instruction-TCM, 0 to 16 MB data-TCM, each with optional ECC.
- Optional Memory Protection Unit (MPU): 16 regions. Can have separate ones for secure and non-secure mode if TrustZone is implemented.
- Up to 480 interrupts and NMI
- 3–8 exception priority bits
- Optional dual-redundant lock-step operation.
Chips
[edit]- Renesas RA8
Development tools
[edit]Documentation
[edit]The documentation for ARM chips is extensive. In the past, 8-bit microcontroller documentation would typically fit in a single document, but as microcontrollers have evolved, so has everything required to support them. A documentation package for ARM chips typically consists of a collection of documents from the IC manufacturer as well as the CPU core vendor (ARM Limited).
A typical top-down documentation tree is:
- Documentation tree (top to bottom)
- IC manufacturer website.
- IC manufacturer marketing slides.
- IC manufacturer datasheet for the exact physical chip.
- IC manufacturer reference manual that describes common peripherals and aspects of a physical chip family.
- ARM core website.
- ARM core generic user guide.
- ARM core technical reference manual.
- ARM architecture reference manual.
IC manufacturers have additional documents, such as: evaluation board user manuals, application notes, getting started guides, software library documents, errata, and more. See External links section for links to official Arm documents.
See also
[edit]References
[edit]- ^ ARM Cortex-M website; ARM Limited.
- ^ a b "Cortex-M0 Home". ARM Limited.
- ^ "Cortex-M0+ Home". ARM Limited.
- ^ a b "Cortex-M1 Home". ARM Limited.
- ^ "Cortex-M3 Home". ARM Limited.
- ^ "Cortex-M4 Home". ARM Limited.
- ^ a b c "Cortex-M7 Home". ARM Limited.
- ^ a b "Cortex-M23 Home". ARM Limited.
- ^ a b "Cortex-M33 Home". ARM Limited.
- ^ a b c "Cortex-M35P Home". ARM Limited.
- ^ a b c "Cortex-M52 Home". ARM Limited.
- ^ a b c "Cortex-M55 Home". ARM Limited.
- ^ a b "Cortex-M85 Home". ARM Limited.
- ^ "On Hacking MicroSD Cards".
- ^ a b c d e f g h i j k l m n o p q r "ARMv6-M Architecture Reference Manual". ARM Limited.
- ^ a b c d e f g h i j k l m n o p q r "ARMv7-M Architecture Reference Manual". ARM Limited.
- ^ a b c d Cortex-M3 Embedded Software Development; App Note 179; ARM Limited.
- ^ a b c "Cortex-M0 Technical Reference Manual". ARM Limited.
- ^ a b c d "Cortex-M0+ Technical Reference Manual". ARM Limited.
- ^ a b c "Cortex-M1 Technical Reference Manual". ARM Limited.
- ^ a b c "Cortex-M3 Technical Reference Manual". ARM Limited.
- ^ a b c "Cortex-M4 Technical Reference Manual". ARM Limited.
- ^ a b c d "Cortex-M7 Technical Reference Manual". ARM Limited.
- ^ a b c "Cortex-M23 Technical Reference Manual". ARM Limited.
- ^ a b c "Cortex-M33 Technical Reference Manual". ARM Limited.
- ^ a b "Cortex-M52 Technical Reference Manual". ARM Limited.
- ^ a b "Cortex-M55 Technical Reference Manual". ARM Limited.
- ^ a b "Cortex-M85 Technical Reference Manual". ARM Limited.
- ^ a b c "Cortex-M System Design Kit (CMSDK)". Arm Holdings. Archived from the original on March 4, 2016.
- ^ a b c d e f g h i j ARM Cortex-M Programming Guide to Memory Barrier Instructions; Section 3.6 System implementation requirements; AppNote 321; ARM Limited.
- ^ a b c d e f g h i j k l "ARMv8-M Architecture Reference Manual". ARM Limited.
- ^ 32-bit PIC and SAM Microcontrollers; Microchip.
- ^ Fingas, Jon (25 February 2014). "Freescale makes the world's smallest ARM controller chip even tinier". Retrieved 2 October 2014.
- ^ GOWIN Semiconductor joins ARM DesignStart offering free ARM Cortex-M1 Processors for its FPGA product families
- ^ Cortex-M1 DesignStart FPGA XilinxEdition; ARM Limited.
- ^ Sadasivan, Shyam. "An Introduction to the ARM Cortex-M3 Processor" (PDF). ARM Limited. Archived from the original (PDF) on July 26, 2014.
- ^ "Samsung Exynos 7420 Deep Dive - Inside a Modern 14nm SoC". AnandTech. Archived from the original on June 30, 2015. Retrieved 2015-06-15.
- ^ Cortex-M3 DesignStart FPGA XilinxEdition
- ^ "ARM Supercharges MCU Market with High Performance Cortex-M7 Processor". ARM Limited (Press release). September 24, 2014.
- ^ a b c d New ARM Cortex-M processors offer the next industry standard for secure IoT; ARM Limited; October 25, 2016.
- ^ a b ARMv8-M Architecture Simplifies Security for Smart Embedded Devices; ARM Limited; November 10, 2015.
- ^ "nRF54H20 - Nordic Semiconductor". www.nordicsemi.com. Retrieved 2024-10-30.
- ^ "The World's First Dual-Core Real-Time Control MCU Featuring Cortex-M52 Processor Unveiled at Electronica China 2024".
Further reading
[edit]- Designer's Guide to the Cortex-M Processor Family; 3rd Ed; Trevor Martin; 648 pages; 2022; ISBN 978-0323854948.
- Definitive Guide to the ARM Cortex-M0 and Cortex-M0+ Processors; 2nd Ed; Joseph Yiu; 784 pages; 2015; ISBN 978-0128032770.
- Definitive Guide to the ARM Cortex-M3 and Cortex-M4 Processors; 3rd Ed; Joseph Yiu; 864 pages; 2013; ISBN 978-0124080829.
- Definitive Guide to the ARM Cortex-M23 and Cortex-M33 Processors; 1st Ed; Joseph Yiu; 928 pages; 2020; ISBN 978-0128207352.
- Microcontrollers with C: Cortex-M and Beyond; 1st Ed; Klaus Elk; 227 pages; 2023; ISBN 979-8862003437.
- Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C; 4th Ed; Yifeng Zhu; 730 pages; 2023; ISBN 978-0982692677.
- ARM Assembly for Embedded Applications; 5th Ed; Daniel Lewis; 379 pages; 2019; ISBN 978-1092542234.
- Assembly Language Programming: ARM Cortex-M3; 1st Ed; Vincent Mahout; 256 pages; 2012; ISBN 978-1848213296.
- Digital Signal Processing and Applications Using the ARM Cortex-M4; 1st Ed; Donald Reay; 320 pages; 2015; ISBN 978-1118859049.
- Hands-On RTOS with Microcontrollers; 1st Ed; Brian Amos; 496 pages; 2020; ISBN 978-1838826734.
External links
[edit]- ARM Cortex-M official documents
- ARM Cortex-M official website
- Cortex-M for Beginners arm.com
- ARMv8-M Security Extensions arm.com
- Cortex Microcontroller Software Interface Standard (CMSIS) arm.com
ARM
coreBit
widthARM
websiteARM generic
user guideARM technical
reference manualARM architecture
reference manualCortex-M0 32 Link Link Link ARMv6-M Cortex-M0+ 32 Link Link Link ARMv6-M Cortex-M1 32 Link Link Link ARMv6-M Cortex-M3 32 Link Link Link ARMv7-M Cortex-M4 32 Link Link Link ARMv7E-M Cortex-M7 32 Link Link Link ARMv7E-M Cortex-M23 32 Link Link Link ARMv8-M Cortex-M33 32 Link Link Link ARMv8-M Cortex-M35P 32 Link N/A N/A ARMv8-M Cortex-M52 32 Link Link Link ARMv8.1-M Cortex-M55 32 Link Link Link ARMv8.1-M Cortex-M85 32 Link Link Link ARMv8.1-M
- Quick reference cards
- Instructions: Thumb-1 (1), ARM and Thumb-2 (2), Vector Floating-Point (3) arm.com
- Opcodes: Thumb-1 (1, 2), ARM (3, 4), GNU Assembler Directives (5).
- Migrating
- Migrating from 8051 to Cortex-M3 – arm.com
- Migrating from PIC to Cortex-M3 – arm.com
- Migrating from ARM7TDMI to Cortex-M3 – arm.com
- Migrating from Cortex-M4 to Cortex-M7 – keil.com
- Other
ARM Cortex-M
View on Grokipedia- Cortex-M0 and M0+: Entry-level cores based on Armv6-M, optimized for ultra-low power and minimal area in simple control tasks, achieving up to 0.9 DMIPS/MHz with low gate count for cost-sensitive devices.[3]
- Cortex-M3: A balanced, general-purpose core on Armv7-M, providing 1.25 DMIPS/MHz for applications requiring moderate performance and single-cycle multiply instructions.[4]
- Cortex-M4: Enhances the M3 with digital signal processing (DSP) extensions and an optional single-precision floating-point unit (FPU), delivering up to 1.25 DMIPS/MHz and 10x faster floating-point operations for signal control in sensors and audio processing.[5]
- Cortex-M7: The high-performance flagship on Armv7E-M, offering single-precision FPU with optional double-precision support, branch prediction, and up to 2.14 DMIPS/MHz for demanding tasks like motor control and graphics in automotive and industrial systems.[6][7]
- Cortex-M23 and M33: Armv8-M implementations adding TrustZone for secure IoT, with the M23 focusing on area efficiency (0.9 DMIPS/MHz) and the M33 on balanced security and performance (1.5 DMIPS/MHz).[8]
- Cortex-M55 and M85: Armv8.1-M implementations as latest additions with Arm Helium vector processing technology for machine learning inference, providing up to 4.4 CoreMark/MHz on the M55 and unprecedented scalar/DSP/ML performance on the M85 for edge AI applications.[9][10]
Introduction
Overview
The ARM Cortex-M family consists of 32-bit RISC processor cores licensed by Arm Holdings for integration into low-cost, energy-efficient embedded systems, particularly microcontrollers used in applications ranging from consumer electronics to industrial controls. These cores are designed to deliver reliable performance in resource-constrained environments, enabling developers to build scalable solutions without the overhead of more complex architectures.[12] Optimized for deterministic and interrupt-driven operations in deeply embedded scenarios, the Cortex-M processors incorporate features such as the Nested Vectored Interrupt Controller (NVIC), which provides low-latency interrupt handling to ensure responsive real-time behavior.[5] This focus on predictability and efficiency makes them ideal for applications requiring consistent execution, such as sensor interfaces and control systems.[13] By 2023, over 250 billion Arm-based chips had been shipped cumulatively,[14] with the Cortex-M series dominating the microcontroller market by capturing approximately 69% share by core architecture as of 2024.[15] In contrast to the high-performance Cortex-A profile for application processors or the Cortex-R profile for real-time systems, the Cortex-M prioritizes low power consumption and minimal cost over maximum computational throughput.History
The ARM Cortex-M series originated from the evolution of ARM's earlier 8/16-bit microcontroller cores in the 1990s, such as the ARM7TDMI, which dominated embedded applications but faced limitations in scalability and efficiency as demand grew for more advanced 32-bit processing in cost-sensitive devices.[16] In response to the microcontroller market's shift toward higher performance without excessive power consumption, ARM announced the first Cortex-M processor, the Cortex-M3, on October 19, 2004, marking the debut of a dedicated family optimized for deeply embedded systems.[17] Silicon implementations of the Cortex-M3 became available in 2006, enabling widespread adoption in real-time applications.[18] Subsequent releases expanded the family's range to address diverse embedded needs. The Cortex-M0, introduced in 2009 as the smallest 32-bit core, targeted ultra-low-power scenarios to replace legacy 8/16-bit designs.[19] In 2010, the Cortex-M4 added digital signal processing (DSP) and floating-point unit (FPU) capabilities, enhancing support for signal processing tasks.[20] The high-performance Cortex-M7 followed in 2014, doubling compute capabilities for demanding applications like motor control. The transition to Armv8-M architecture began with the announcements of the Cortex-M23 and Cortex-M33 in October 2016, introducing baseline and mainline profiles respectively.[21] Key evolutionary drivers included the industry's move toward 32-bit dominance for better code density and performance, the integration of security features like TrustZone-M in 2016 to enable secure/non-secure execution states, and the addition of vector processing via Helium (M-Profile Vector Extension) in the Armv8.1-M architecture starting in 2019, responding to rising IoT and machine learning demands at the edge. Later advancements featured the Cortex-M35P in May 2018 for enhanced secure isolation against physical attacks, the Helium-enabled Cortex-M55 in February 2020, the top-performance Cortex-M85 in April 2022, and the compact Helium-supporting Cortex-M52 in November 2023.[22][23][10][24] By 2025, ARM continued rebranding its offerings from individual "Cortex" cores toward integrated compute subsystems to streamline development for complex AIoT platforms, though the M-series naming remained for legacy microcontroller support; no new Cortex-M core announcements occurred by November 2025.[25] This licensing model has facilitated broad adoption across billions of devices, particularly fueling the IoT expansion since 2010.[26]Licensing and Customization
The ARM Cortex-M processor cores are licensed as intellectual property (IP) by Arm to semiconductor vendors, who integrate them into system-on-chip (SoC) designs or microcontrollers (MCUs) for embedded applications. This licensing model provides access to synthesizable register-transfer level (RTL) designs, enabling partners such as STMicroelectronics and NXP Semiconductors to customize and manufacture chips without developing the core from scratch. The business structure typically involves upfront access fees—waived in some cases through programs like Arm DesignStart for cores such as Cortex-M0 and Cortex-M3—followed by a royalty-based payment per shipped chip, aligning costs with commercial success.[27][28][29] Customization options allow licensees to tailor the cores to specific requirements, including configurable parameters for elements like instruction cache sizes, multiplier units, and peripheral interfaces such as AHB or APB buses. Silicon-proven implementations, including reference designs and subsystems, are available to accelerate time-to-market by reducing verification efforts. For instance, Arm's Flexible Access and Total Access programs provide scalable access to these configurable IP blocks, enabling experimentation and integration without immediate full commitment. Additionally, custom instructions introduced in Armv8-M architecture permit vendors to add application-specific accelerations—such as for signal processing or cryptography—directly into the instruction set decoder, using the same registers as standard instructions while preserving compatibility with Arm's ecosystem.[27][28][30] Cortex-M cores are offered in variants suited to different design needs: soft macros, which are synthesizable RTL allowing area and power optimization during place-and-route, and hard macros, which are pre-implemented layouts for fixed performance and faster integration but with less flexibility. These variants support a range of process nodes, from mature 180nm for cost-sensitive devices to advanced 7nm and below as of 2025, facilitating deployment in high-efficiency IoT and automotive applications. Arm's collaboration with foundries like TSMC ensures optimized implementations across these nodes.[31] Semiconductor vendors frequently extend Cortex-M cores with proprietary features while upholding Arm compatibility to ensure software portability across the ecosystem. For example, NXP incorporates vector processing capabilities in its MCU portfolios, leveraging custom extensions for enhanced signal processing in industrial and IoT devices, built atop the standard Cortex-M architecture. This approach allows differentiation in performance-critical areas without breaking binary compatibility for Armv8-M software.[30][32]Architecture
Instruction Set Architecture
The ARM Cortex-M processors implement the M-profile of the ARM architecture, utilizing the Thumb and Thumb-2 instruction sets, which consist of 16-bit and 32-bit instructions optimized for code density and efficient memory usage in embedded systems.[33] The Armv6-M baseline, used in Cortex-M0 and Cortex-M0+ cores, supports the ARMv6-M Thumb instruction set with a subset of 32-bit Thumb-2 instructions for enhanced functionality while maintaining compactness.[34] In contrast, the Armv7-M architecture, implemented in Cortex-M3, Cortex-M4, and Cortex-M7 cores, provides the full Thumb-2 instruction set, enabling more complex operations through variable-length instructions that improve performance without significantly increasing code size.[35] The Armv8-M architecture, featured in Cortex-M23 and Cortex-M33 cores, employs a subset of the T32 (Thumb-2) instruction set, ensuring backward compatibility with prior M-profile versions through 16-bit and 32-bit encodings.[2] Key extensions to the base ISA enhance signal processing capabilities in higher-end cores. The Cortex-M4 and Cortex-M7 incorporate DSP extensions under Armv7-M, including single instruction multiple data (SIMD) multiply-accumulate (MAC) operations and fixed-point arithmetic support, which accelerate common digital signal processing tasks like filtering and transforms.[36] These extensions introduce instructions such as SMLAD (signed multiply-accumulate dual) for parallel 16-bit operations, enabling efficient handling of audio and sensor data without floating-point units.[36] Building on this, the Armv8.1-M architecture introduces the M-Profile Vector Extension (MVE), branded as Helium, which adds 128-bit vector processing for machine learning and advanced DSP workloads, supporting operations on 8-bit, 16-bit, and 32-bit data types with both integer and floating-point variants.[37] The Armv8-M defines two conformance levels: Baseline and Mainline. The Baseline variant, a superset of Armv6-M, targets simpler implementations with basic Thumb instructions and omits advanced DSP and vector extensions for reduced complexity and power.[38] The Mainline variant, a superset of Armv7-M, includes full support for DSP extensions and Helium, providing greater performance for demanding applications.[38] Post-Armv7-M, certain legacy Thumb-1 instructions, such as those related to ThumbEE mode, are deprecated to streamline the ISA and eliminate rarely used features.[39] Binary compatibility across Cortex-M cores is facilitated by the CMSIS software interface, allowing portable code without reliance on features like Jazelle direct bytecode execution or big.LITTLE heterogeneous processing found in A- and R-profile architectures.[40]Pipeline and Core Features
The ARM Cortex-M family utilizes pipeline architectures tailored to balance performance, power efficiency, and complexity across its cores. Entry-level designs, such as the Cortex-M0+ and Cortex-M23, employ a 2-stage pipeline consisting of fetch/decode and execute stages, emphasizing simplicity and minimal power draw for ultra-constrained applications.[3][41] In contrast, mid-range cores like the Cortex-M3 and Cortex-M4 implement a 3-stage pipeline with fetch, decode, and execute phases, incorporating branch speculation in the Cortex-M4 to improve control flow efficiency without full prediction hardware.[42][43] Higher-end cores introduce advanced pipelining for greater throughput. The Cortex-M7 features a 6-stage superscalar pipeline with branch prediction, enabling dual-issue execution of instructions and supporting out-of-order completion for loads and stores to boost performance in demanding tasks.[44] Branch prediction is also present in subsequent cores like the Cortex-M33 and Cortex-M55, reducing pipeline stalls from conditional branches and enhancing overall instruction-level parallelism.[45][46] Performance characteristics vary by core, as quantified by Dhrystone MIPS per MHz (DMIPS/MHz) and CoreMark per MHz benchmarks, which assess integer and mixed workload efficiency, respectively. The following table summarizes representative metrics for select cores:| Core | DMIPS/MHz | CoreMark/MHz |
|---|---|---|
| Cortex-M0 | 0.96 | 2.33 |
| Cortex-M0+ | 0.99 | 2.46 |
| Cortex-M3 | 1.25 | 3.34 |
| Cortex-M4 | 1.25 | 3.42 |
| Cortex-M7 | 2.14 | 5.01 |
| Cortex-M23 | 0.88 | 2.64 |
Debug and Trace Support
The ARM Cortex-M processors incorporate the CoreSight architecture, a scalable on-chip debug and trace infrastructure developed by Arm, which enables efficient resource sharing among debug and trace components to facilitate development, testing, and runtime analysis in embedded systems.[52] This architecture integrates various components connected via a debug bus, typically the Advanced High-performance Bus Access Port (AHB-AP) in Cortex-M implementations, allowing non-intrusive access to processor registers, memory, and trace data without halting the system entirely.[53] CoreSight supports standardized external interfaces for debug access, primarily through the Debug Access Port (DAP), which can be accessed via the Serial Wire Debug (SWD) protocol or the Joint Test Action Group (JTAG) interface compliant with IEEE 1149.1.[54] SWD offers a two-wire alternative to the traditional four- or five-wire JTAG, reducing pin count while maintaining full debug functionality, and is widely used in resource-constrained Cortex-M devices.[54] For halting and control, CoreSight includes breakpoint and watchpoint units, implemented via the Flash Patch and Breakpoint (FPB) unit for code breakpoints and the Data Watchpoint and Trace (DWT) unit for data access monitoring; the number of supported units varies by core, with entry-level cores like Cortex-M0+ offering 1-4 breakpoints and 1-2 watchpoints, while higher-end cores such as Cortex-M7 can support up to 16 breakpoints.[55] These units enable precise halting on instruction execution or data accesses, essential for debugging complex firmware. Trace capabilities in CoreSight enhance runtime analysis by capturing execution flows without software modifications. The Embedded Trace Macrocell (ETM) provides instruction trace by outputting compressed packet streams of program flow, allowing reconstruction of code execution paths for profiling and debugging.[56] Complementing this, the DWT unit includes performance counters for cycle counting, exception tracing, and data value sampling, helping identify bottlenecks in real-time applications.[57] For software instrumentation, the Instrumentation Trace Macrocell (ITM) supports printf-style debugging by routing application-generated messages, timestamps, and hardware events through a stimulus port, often funneled to an external trace port like Serial Wire Output (SWO) for low-overhead logging.[58] In multi-core configurations, although less common in standard Cortex-M designs due to their focus on single-core efficiency, CoreSight enables synchronized debugging via the Cross Trigger Interface (CTI) and Embedded Cross Trigger (ECT) matrix.[59] This setup allows debug events—such as a breakpoint on one core—to propagate triggers to others, facilitating coordinated halting and trace correlation in custom system-on-chip (SoC) implementations with multiple Cortex-M instances.[60] Tool integration is streamlined through standards like CMSIS-DAP, which provides a vendor-neutral USB-based interface to the CoreSight DAP, enabling seamless connectivity with development environments for SWD/JTAG access and trace capture.[61]Security Features
TrustZone-M
TrustZone-M, introduced as part of the Armv8-M architecture in 2016, provides hardware-enforced isolation between Secure and Non-Secure worlds on Cortex-M processors. This security extension partitions the system into two execution environments, where the Secure world handles trusted operations and the Non-Secure world runs untrusted code, preventing unauthorized access to sensitive resources. The isolation is achieved through address space controllers, including the Secure Attribution Unit (SAU) and the Implementation Defined Attribution Unit (IDAU), which assign security attributes to memory regions and peripherals.[62][63] The SAU is a programmable component configurable only in the Secure state, allowing up to 16 secure regions to be defined for memory partitioning, while the IDAU provides a fixed, implementation-specific memory map that the SAU can override. These units ensure that Non-Secure code cannot access Secure memory or peripherals, enforcing runtime protection against software attacks such as buffer overflows or privilege escalations. Additionally, TrustZone-M incorporates an airgap mechanism for interrupt isolation via the Nested Vectored Interrupt Controller (NVIC), which includes a secure mask register to prevent Non-Secure handlers from responding to Secure interrupts, thereby maintaining separation even during exception handling.[64][65] Processor operation in TrustZone-M builds on the traditional Handler and Thread modes, extended with Secure and Non-Secure states, as well as privilege levels (Privileged or Unprivileged). Secure software can execute in either mode with elevated privileges to manage system resources, while Non-Secure code is restricted to Unprivileged Thread mode for safety. Context switching between worlds occurs via Secure Gateway (SG) instructions, which are placed at entry points to the Secure world; these instructions validate the transition and ensure secure parameter passing without exposing sensitive data.[66][67] The primary benefits of TrustZone-M include robust runtime security for microcontrollers, enabling features like secure boot to verify firmware integrity at startup and isolated cryptographic operations to protect keys and algorithms from compromise. By providing this foundation, it supports development of secure IoT devices and embedded systems without requiring separate secure elements, reducing costs while enhancing protection against common attack vectors. This technology is implemented in cores such as the Cortex-M33, where it integrates with debug features for secure tracing.[63]Additional Security Extensions
The Pointer Authentication and Branch Target Identification (PACBTI) extension in the Armv8.1-M architecture, implemented in the Cortex-M85 processor, enables cryptographic signing of pointers to defend against exploits like buffer overflows and return-oriented programming by appending a Pointer Authentication Code (PAC) to pointer values, along with BTI for validating indirect branches. The PAC is generated using a block cipher derived from AES-128, employing 128-bit keys and a modifier (such as the stack pointer) to ensure uniqueness and verifiability; upon use, the PAC is stripped and authenticated, with failed verification resulting in the pointer being replaced by an invalid address to trigger a fault.[68][69] In the Cortex-M35P processor, isolation is enhanced through physical security mechanisms, including a P-channel design that provides hardware-level separation of secure assets to protect against invasive tampering and side-channel attacks. This P-channel facilitates isolated execution paths and memory regions, integrated with TrustZone-M for runtime protection, and contributes to the processor's EAL6+ certification under Common Criteria for high-assurance security.[70][71] Helium technology, via the M-Profile Vector Extension (MVE), incorporates secure vector state isolation in TrustZone-M-enabled cores to safeguard DSP and machine learning workloads from side-channel leaks, by banking the eight 128-bit vector registers separately for secure and non-secure execution states. This prevents unauthorized access to sensitive vector data during context switches, maintaining confidentiality in mixed-trust environments without impacting performance.[37][72] The Armv8-M architecture deprecates legacy Memory Protection Unit (MPU) configurations from Armv7-M to streamline security and reduce vulnerabilities, eliminating support for certain outdated region setups in favor of enhanced PMSAv8 protections. Implementations without TrustZone-M are cautioned against for contemporary applications demanding robust isolation.Processor Cores
Entry-Level Cores
The entry-level cores in the ARM Cortex-M family, including the Cortex-M0, Cortex-M0+, and Cortex-M1, are optimized for ultra-low-cost, low-power embedded applications where minimal silicon area and energy efficiency are paramount. These processors implement the ARMv6-M architecture, focusing on simplicity and compatibility with the Thumb instruction set to enable 32-bit performance at an 8/16-bit price point. They target scenarios such as simple sensors, wearables, and cost-sensitive IoT devices, prioritizing gate count reduction and power optimization over advanced features like floating-point units or digital signal processing.[73][48][74] The Cortex-M0, introduced in 2009, serves as the foundational entry-level core with a three-stage pipeline (fetch, decode, execute) and delivers 0.9 DMIPS/MHz performance. It features an ultra-low gate count of approximately 12,000 gates, enabling integration into analog and mixed-signal devices, and lacks a memory protection unit (MPU) to minimize area. The core includes an integrated Nested Vectored Interrupt Controller (NVIC) supporting up to 32 interrupts and uses an AMBA AHB-Lite system interface for straightforward system-on-chip (SoC) integration. Ideal for ultra-low-cost applications like basic control systems and disposable electronics, the Cortex-M0 achieves active power consumption as low as 9 μA/MHz at 0.9V supply.[48][75][76] Building on the Cortex-M0, the Cortex-M0+ was released in 2010 as an enhanced variant with a two-stage pipeline for improved energy efficiency and code density. It offers slightly higher performance at 0.93-0.99 DMIPS/MHz while reducing silicon area compared to its predecessor, with implementations showing up to 15% smaller footprint in certain benchmarks. Key additions include support for an optional MPU with eight regions and integration compatibility with micro-DMA controllers for efficient data transfers without CPU intervention. The core enables sleep-walking peripherals in low-power modes, allowing asynchronous peripheral operation during CPU sleep states to extend battery life. Targeted at sensors, wearables, and battery-operated devices like the BBC micro:bit, it maintains active power below 50 μA/MHz and supports three low-power modes for dynamic energy management.[49][77][74][78][49] The Cortex-M1, also debuted in 2009, is a synthesizable soft core specifically designed for field-programmable gate arrays (FPGAs) from vendors like Xilinx and Intel (formerly Altera). It supports configurable tightly coupled memories (up to 1024 KB) and operates at frequencies up to 150 MHz depending on the FPGA fabric, with four interrupt priority levels via NVIC. Unlike the M0 series, it allows up to 256 custom instructions for FPGA-specific acceleration, enhancing flexibility for hardware-software co-design in prototyping or reconfigurable systems. Suited for FPGA-based embedded prototypes and custom logic integration, it retains the ARMv6-M Thumb instruction set for low-latency interrupt handling.[79][80] These entry-level cores trade advanced capabilities for extreme efficiency, featuring minimal pipeline depths and no support for full ARM instructions beyond the basic Thumb subset to achieve sub-50 μA/MHz active currents and gate counts under 15,000. This design philosophy ensures prolonged battery life in power-constrained environments but limits them to straightforward tasks without DSP extensions or hardware floating-point, distinguishing them from mid-range siblings.[48][78][74]| Core | Architecture | Pipeline Stages | Performance (DMIPS/MHz) | Gate Count (approx.) | Key Features | Typical Power (active) |
|---|---|---|---|---|---|---|
| Cortex-M0 | ARMv6-M | 3 | 0.9 | 12,000 | NVIC (up to 32 IRQs), no MPU | ~9 μA/MHz @ 0.9V |
| Cortex-M0+ | ARMv6-M | 2 | 0.93-0.99 | <12,000 | Optional MPU, micro-DMA support, sleep modes | <50 μA/MHz |
| Cortex-M1 | ARMv6-M | 3 | 0.88 | Configurable (~15k) | FPGA soft core, custom instructions (up to 256), up to 150 MHz | N/A (FPGA-dependent) |