Core Architecture Overview

Core Architecture Overview

The ARM Cortex-M Core

The ARM Cortex-M core implements the ARM architecture, providing the
instruction set and execution pipeline. Key features include:

Nested Vectored Interrupt Controller (NVIC)

The NVIC manages interrupts with minimal latency and maximum configurability:

Memory Architecture

image 4.png

Memory Map

The STM32 uses a unified 32-bit address space with memory-mapped peripherals:

image.png

image.png

image.png

image.png

image.png

Of these, the most interesting for a new developer are:

Clock System

Clock Sources:

clock tree:

image.png

PLL: Phase-Locked Loop.

AHB: advanced high-performance bus

APB: Advanced Peripheral Bus

AHB (Advanced High-performance Bus)

APB (Advanced Peripheral Bus)

The STM32F401xB/C and STM32F401xD/E feature a 32-bit multilayer AHB bus matrix as their main system. This matrix interconnects:

• Six masters:
– Cortex-M4 with FPU core I-bus, D-bus and S-bus
– DMA1 memory bus
– DMA2 memory bus
– DMA2 peripheral bus

• Five slaves:
– Internal Flash memory ICode bus
– Internal Flash memory DCode bus
– Main internal SRAM
– AHB1 peripherals including AHB to APB bridges and APB peripherals
– AHB2 peripherals

This bus matrix architecture allows masters to access slaves efficiently, enabling concurrent operations when multiple high-speed peripherals work simultaneously. Figure 1 illustrates this architecture.

image.png