Mainstream Microcontroller Core Architectures: ARM and RISC-V

In embedded systems,the core of a microcontroller (MCU) — the core (Core) determines the performance boundaries, power consumption characteristics, and software ecosystem of the entire platform. The current mainstream microcontroller architectures are represented by ARM and RISC-V, one being the cornerstone of the mature industrial sector, and the other being the pioneer of the open-source chip wave.

This article will systematically analyze the two major architectures, ARM and RISC-V, from four dimensions: architectural concepts, development ecosystems, commercial adaptations, and development trends, helping readers clarify their selection direction and learning path.

1. ARM Core: The Stable Mainstay of the Industry

Architecture Overview

ARM (Advanced RISC Machine) is a commercial processor architecture based on a Reduced Instruction Set Computing (RISC) model, licensed by the British company ARM, and widely used in embedded, mobile, and industrial fields.

In the microcontroller domain, common ARM cores include:

  • Cortex-M Series: Designed specifically for MCU scenarios, such as STM32, NXP LPC, TI MSP432, etc.;
  • Cortex-R Series: Used in systems with higher real-time requirements, such as automotive ECUs;
  • Cortex-A Series: Runs operating systems (like Linux), commonly used in Raspberry Pi, smart terminals, and other high-performance applications.

The STM32F103 mentioned in the previous article uses the Cortex-M3 core, which is a typical representative of the ARM architecture in MCUs.

Main Advantages

  • Mature Ecosystem: Comprehensive toolchains (Keil MDK, IAR, STM32CubeMX, etc.) and abundant development resources;
  • Excellent Power Optimization: Supports multiple energy-saving modes, suitable for low-power applications;
  • Flexible Performance Selection: The Cortex-M series offers different performance levels from M0 to M7, facilitating engineering selection;
  • Continuously Enhanced Security Mechanisms: For example, ARMv8-M introduces the TrustZone security architecture, catering to IoT security needs.

2. RISC-V Core: A Rising Star in the Open-Source Wave

Origin of the Architecture

RISC-V (pronounced “Risk-Five”) originated from the University of California, Berkeley, and is a completely open-source RISC instruction set architecture. It is not dependent on any company, allowing for free implementation, customization, and expansion, earning it the title of “Linux of the chip world.”

Core Features

  • Open Source and Free: No licensing fees, lowering the threshold for chip development, conducive to domestic alternatives;
  • Modular Design: The base instruction set is minimal, supporting on-demand additions (such as integer operations I, multiplication and division M, floating point F, atomic A, compression C, etc.);
  • Easy Customization and Optimization: Suitable for deep domain optimizations, such as dedicated AI computation units, low-power SoCs, etc.;
  • Great Development Potential: Major manufacturers (SiFive, Allwinner, GigaDevice, Sifive Technology) are actively developing RISC-V MCU product lines.

Challenges Faced

  • Ecology Still Under Construction: Although there are tools like GCC, Eclipse, and PlatformIO, the overall toolchain and development board resources are still not as rich as ARM;
  • Significant Implementation Differences: Variations in support for extended instructions among manufacturers increase software porting difficulties.

3. Overview Comparison of ARM and RISC-V

Dimension ARM Cortex-M Series RISC-V MCU
Maturity High, with a long commercial history Emerging architecture, rapidly developing
Licensing Model Commercial licensing, requires licensing fees Completely open-source, free to use
Performance and Power Consumption Multiple options, stable and reliable Can be customized and optimized as needed, highly adaptable
Security Support TrustZone, MPU, FPU, etc., have matured in commercial use Under development, gradually adding security mechanisms
Toolchain Ecosystem Rich (Keil, IAR, STM32Cube, etc.) Under improvement (GCC, OpenOCD, QEMU, etc.)
Market Applications Industrial control, consumer electronics, automotive electronics, etc. Education, open-source projects, domestic alternatives, IoT

4. Future Trends and Engineering Recommendations

Trend Outlook

  • ARM will continue to deepen its presence in the industrial and IoT markets, maintaining its lead through a mature ecosystem and security mechanisms;
  • RISC-V will rapidly expand based on its open-source advantages, especially showing strong growth in education, research, domestic alternatives, and dedicated chips;
  • The two are not in an “oppositional relationship,” but rathertechnologies that run parallel and complement each other, meeting the needs of different levels and scenarios.

Engineering Practice Recommendations

  • For Beginners: It is recommended to start with the ARM Cortex-M series (such as STM32), as resources are abundant and debugging is easier;
  • For Advanced Learners: RISC-V can be introduced as a second learning direction to understand instruction set design and chip customization logic;
  • For Product Engineers: They should weigh the project budget, scalability, and ecosystem needs when making reasonable trade-offs between ARM and RISC-V.

5. Final Thoughts

ARM is the industrial pillar in reality, while RISC-V is the technology future driven by open-source.

In the world of microcontroller cores, there are no absolute winners, only architectures that better suit your needs. Whether you are an embedded beginner just starting out or a project-oriented engineer, you shouldunderstand the stable ecosystem of ARM and the open potential of RISC-V.

Leave a Comment