2. Memory and bus architecture
2.1 System architecture
The main system consists of 32-bit multilayer AHB bus matrix that interconnects:
- • Three masters:
- – CPU (Cortex®-M0+) core S-bus
- – DMA1
- – Sub-1 GHz radio subsystem
- • Seven slaves:
- – Internal flash memory on CPU (Cortex®-M0+) S bus
- – Internal SRAM0 (up to 16 Kbytes)
- – APB0 peripherals (through an AHB to APB bridge)
- – APB1 peripherals (through an AHB to APB bridge)
- – AHB0 peripherals
- – AHB0 including AHB to APB bridge, and radio peripherals (connected to APB2)
The bus matrix provides access from a master to a slave, enabling concurrent access and efficient operation even when several high-speed peripherals work simultaneously. This architecture is shown in Figure 1: System architecture:
The system consists of a Cortex®-M0+ “Radio protocol and application” processor with its radio sub-system.
There is a single flash memory to be used by the CPU for both Sub-1 GHz protocols and application management.
The peripherals are located on the different system buses (AHB, APB0, APB1, APB2 for the radio system). There is one SRAM bank, SRAM0, which is always power supplied. For more information see Control register 2 (PWR_CR2).
Figure 1. System architecture

The diagram illustrates the system architecture of the RM0551. At the top, three master components are shown: ARM Cortex-M0+, DMA 7ch, and Radio system. The ARM Cortex-M0+ connects to the BusMatrix via S0. The DMA 7ch connects via S1. The Radio system connects via S2, S3, S4, and S5 through an AHB UP Conv block. The BusMatrix is a 6x7 matrix with rows S0-S5 and columns M0-M6. Connections are indicated by circles at the intersections: S0 connects to M0, M1, M3, M4, M5, and M6; S1 connects to M1, M3, M4, and M5; S2, S3, and S4 connect to M1, M2, M3, M4, and M5; S5 connects to M1, M2, M3, M4, and M5. The columns M0-M6 connect to external components: M0 to Flash Controller and Flash; M1 to SRAM0; M2 is unconnected; M3 to AHB2APB and APB0 peripherals; M4 to AHB2APB and APB1 peripherals; M5 to AHB0 peripherals; M6 to AHB DOWN conv and AHB2APB. A blue dot is located at the intersection of S5 and M6. The label 'BusMatrix 6x7' is at the bottom of the matrix. The reference 'MSV58740V1' is on the right side.
2.1.1 S0: CPU (Cortex®-M0+) S-bus
This bus connects the system bus of the CPU core to the BusMatrix. This bus is used by the core to fetch instructions, for literal load and debug access, and access data located in a peripheral or SRAM area. The targets of this bus are all the possible peripherals (the internal flash and SRAM memories, the AHB0, APB0, APB1 and APB2 peripherals).
2.1.2 S1: DMA-bus
This bus connects the AHB master interface of the DMA to the BusMatrix. The targets of this bus are the SRAM0 bank and the AHB0, APB0 and APB1 peripherals.
2.1.3 S2-S5: Sub-1 GHz radio system-bus
This bus connects the 4 AHB master interfaces of the Radio system to the BusMatrix through a dedicate 4x1 BusMatrix. The targets of this bus are the SRAM0 bank and, only for the Sequencer AHB master port of the MR_SUBG IP, the APB peripherals internal to the MR_SUBG IP.
2.1.4 Bus matrix
The bus matrix manages the access arbitration between masters. The arbitration uses a round-robin algorithm. The bus matrix is composed of three masters (CPU, DMA1-bus and
radio-system bus) and seven slaves (FLASH, SRAM0, APB0 and APB1, AHB0 and AHBRF).
Bus matrix 4x1
The bus matrix 4x1 manages the access arbitration between 4 AHB master ports of the sub-GHz radio system. The arbitration uses a round-robin algorithm. The BusMatrix 4x1 is composed of four masters (Radio system-bus) and one slave (the main BusMatrix).
AHB/APB bridges
The two bridges AHB to APB0 and AHB to ABP1 provide full synchronous connections between the AHB and the two APB buses.
All the AHB and APB ports of the MR_SUBG radio controller work at fixed 16 MHz frequency clock. Two blocks are added on the AHB/APB path to manage potential prescaled MR_SUBGHz frequency versus the system frequency:
- – AHB up converter is used for the MR_SUBG AHB master transactions towards the SRAM.
- – AHB down converter is used for the CPU AHB master transactions towards the MR_SUBG APB registers.
Refer to Section 2.2.2: Memory map and register boundary addresses for the address mapping of the peripherals connected to this bridge.
After each device reset, all peripheral clocks are disabled (except for the SRAM and flash memory interface). Before using a peripheral the user has to enable its clock in the RCC_AHBxENR and the RCC_APBxENR registers.
Note: When a 16- or 8-bit access is performed on an APB register, the access is transformed into a 32-bit access: the bridge duplicates the 16- or 8-bit data to feed the 32-bit vector.
2.2 Memory organization
2.2.1 Introduction
Program memory, data memory and registers are organized within the same linear 4-Gbyte address space.
The bytes are coded in memory in Little Endian format. the lowest numbered byte in a word is considered the words least significant byte and the highest numbered byte the most significant.
Figure 2. Memory map

The diagram illustrates the memory map of the RM0551 microcontroller. It is organized into two main vertical sections. The left section shows the overall memory layout from 0x0000 0000 to 0xFFFF FFFF. The right section provides a detailed view of the APB0, APB1, and APB2 peripheral regions.
Overall Memory Layout (Left Section):
| Address Range | Memory Type |
|---|---|
| 0xFFFF FFFF to 0xE00F FFFF | Reserved |
| 0xE00F FFFF to 0xE000 0000 | CortexTM M0+ Internal Peripherals |
| 0xE000 0000 to 0x5FFF FFFF | Reserved |
| 0x5FFF FFFF to 0x4000 0000 | Peripherals |
| 0x4000 0000 to 0x2FFF FFFF | Reserved |
| 0x2FFF FFFF to 0x2000 0000 | SRAM |
| 0x2000 0000 to 0x1007 FFFF | Reserved |
| 0x1007 FFFF to 0x0000 0000 | CODE |
Detailed APB Regions (Right Section):
| Address Range | Memory Type |
|---|---|
| 0x5FFF FFFF to 0x4900 13FF | Reserved |
| 0x4900 13FF to 0x4900 0000 | APB2 (RF) |
| 0x4900 0000 to 0x4890 03FF | Reserved |
| 0x4890 03FF to 0x4800 0000 | AHB0 |
| 0x4800 0000 to 0x4100 73FF | Reserved |
| 0x4100 73FF to 0x4100 0000 | APB1 |
| 0x4100 0000 to 0x4000 A3FF | Reserved |
| 0x4000 A3FF to 0x4000 0000 | APB0 |
| 0x3FFF FFFF to 0x2000 4000 | Reserved |
| 0x2000 4000 to 0x2000 0000 | SRAM0 (16 Kbytes) |
| 0x1FFF FFFF to 0x1005 FFFF | Reserved |
| 0x1005 FFFF to 0x1004 0000 | Main flash memory (up to 128 Kbytes) |
| 0x1004 0000 to 0x1000 1BFF | Reserved |
| 0x1000 1BFF to 0x1000 1800 | OTP area (1 Kbyte) |
| 0x1000 1800 to 0x0003 FFFF | Reserved |
| 0x0003 FFFF to 0x0000 0000 | CortexTM M0+ IFR, Flash or SRAM0, depending on BOOT configuration |
Legend: Shaded gray boxes represent Reserved memory areas.
MSV58741V1
All the memory areas that are not allocated to on-chip memories and peripherals are considered “Reserved”. For the detailed mapping of available memory and registers areas, refer to the chapter and peripheral chapters.
2.2.2 Memory map and register boundary addresses
The Table 3 gives the boundary addresses of the peripherals available in the device.
Table 3. Memory map and peripheral register boundary addresses
| Bus | Boundary address | Actual size (bytes) | Peripheral | Peripheral register map |
|---|---|---|---|---|
| Misc | 0xE00F FFFF - 0xFFFF FFFF | 255 M | Reserved | - |
| 0xE000 0000 - 0xE00F FFFF | 1 M | Private peripheral bus | Cortex-M0+ registers (interrupt controller, SysTick, and so on.) | |
| 0x4900 1000 - 0x4900 13FF | 1 K | Reserved | - | |
| APB2 | 0x4900 0000 - 0x4900 07FF | 2 K | MR_SUBG | MR_SUBG registers |
| AHB0 | 0x4890 0000 - 0x4890 03FF | 1 K | AES | See Section 18.7: AES register map |
| 0x4880 0000 - 0x4880 03FF | 1 K | DMAMUX | See Section 11.6: DMAMUX register map | |
| 0x4870 0000 - 0x4870 00FF | 256 | DMA slave | See Section 10.5: DMA register map | |
| 0x4860 0000 - 0x4860 0FFF | 4 K | RNG | See Section 13.2: RNG registers map | |
| 0x4850 0000 - 0x4850 03FF | 1 K | PWR | See section Section 5.7: PWR register map | |
| 0x4840 0000 - 0x4840 03FF | 1 K | RCC | See section Section 6.7: RCC register map | |
| 0x4830 0400 - 0x4830 13FF | 4 K | Reserved | - | |
| 0x4830 0000 - 0x4830 03FF | 1 K | Reserved | - | |
| 0x4820 0000 - 0x4820 03FF | 1 K | CRC | See Section 15.5: CRC register map | |
| 0x4810 0000 - 0x4810 03FF | 1 K | GPIOB | See section Section 7.5: GPIO register map | |
| 0x4800 0000 - 0x4800 03FF | 1 K | GPIOA | See section Section 7.5: GPIO register map | |
| 0x4800 0000 - 0x4800 03FF | 1 K | GPIOA | See section Section 7.5: GPIO register map | |
| APB1 | 0x4100 7000 - 0x4100 73FF | 1 K | SPI3 | See Section 23.10: SPI/I2S register map |
| 0x4100 6000 - 0x4100 63FF | 1 K | ADC | See Section 12.7: ADC register map | |
| 0x4100 5000 - 0x4100 53FF | 1 K | LPUART | See Section 22.5.11: LPUART register map | |
| 0x4100 4000 - 0x4100 43FF | 1 K | USART | See Section 21.8: USART register map | |
| 0x4100 3000 - 0x4100 33FF | 1 K | Reserved | - | |
| 0x4100 2000 - 0x4100 23FF | 1 K | Reserved | - | |
| 0x4100 1000 - 0x4100 13FF | 1 K | Reserved | - | |
| 0x4100 0000 - 0x4100 03FF | 1 K | I2C1 | See Section 20.7: I2C register map |
Table 3. Memory map and peripheral register boundary addresses
| Bus | Boundary address | Actual size (bytes) | Peripheral | Peripheral register map |
|---|---|---|---|---|
| APB0 | 0x4000 A000 - 0x4000 A3FF | 1 K | Reserved | - |
| 0x4000 9000 - 0x4000 93FF | 1 K | Reserved | - | |
| 0x4000 8000 - 0x4000 83FF | 1 K | DBGMCU | See Section 25.4: DBG register map | |
| 0x4000 7000 - 0x4000 73FF | 1 K | Reserved | - | |
| 0x4000 6000 - 0x4000 63FF | 1 K | Reserved | - | |
| 0x4000 5000 - 0x4000 53FF | 1 K | TIM16 | See Section 17.4: TIM16 registers | |
| 0x4000 4000 - 0x4000 43FF | 1 K | RTC | See Section 18.7: RTC register map | |
| 0x4000 3000 - 0x4000 33FF | 1 K | IWDG | See Section 19.5: IWDG register map | |
| 0x4000 2000 - 0x4000 23FF | 1 K | TIM2 | See Section 16.5: TIM2 register map | |
| 0x4000 1000 - 0x4000 1FFF | 4 K | FLASH_CTRL | See Section 9.6: Flash controller register map | |
| 0x4000 0000 - 0x4000 03FF | 1 K | SYSTEM_CTRL | See Section 8.3: System controller register map | |
| SRAM | 0x2000 4000 - 0x3FFF FFFF | 528 K | Reserved | - |
| 0x2000 0030 - 0x2000 3FFF | 16 340 | SRAM0 | Start of user RAM | |
| 0x2000 0000 - 0x2000 002F | 48 | Reserved. See Table 4: SRAM0 reserved locations | ||
| Flash | 0x1004 0000 - 0x1005 FFFF | Up to 128 K | Main flash | - |
| DESIG | 0x1000 1EF0 - 0x1000 1EF7 | - | - | Section 26: Device electronic signature (DESIG) |
| OTP | 0x1000 1800 - 0x1000 1BFF | 1 K | OTP area | Section 26: Device electronic signature (DESIG) applies only to the DESIG |
| Boot(1) | 0x0000 0000 - 0x0003 FFFF | Up to 256 K | CPU Boot area | Mirroring of flash or SRAM0 |
- 1. This area is a mirroring area. The CPU accesses are redirected to other memory map depending in REMAP bit located in the flash controller CONFIG register. See Table 5 for remapping detail.
| Address | Actual size (bytes) | Identifier | Description |
|---|---|---|---|
| 0x2000 0004 | 4 | Reserved1 | Reserved for future use. |
| 0x2000 0008 | 4 | SavedMSP | Used by the LPM module to save context information pointer. |
| 0x2000 000C | 4 | WakeupFromSleepFlag | Used by the LPMmodule. Indicates whether the system has been woken up from Deepstop mode. |
| 0x2000 0010 | 4 | ResetReason | Copy of last reset reason from register RCC_CSR. The register is read, copied to this location by the bootloader code and finally cleared. As a consequence, software reading the register always reads 0. Users should read this location to know the last reset reason. |
| 0x2000 0014 | 4 | AppBase | Relocation of application base. The Bootloader jumps to the location pointed to by this value when a wakeup from DeepStop occurs. |
| 0x2000 0018 | 4 | bootloader_vr | Bootloader virtual register |
| 0x2000 001C | 4 | bootloader_vr1 | Bootloader virtual register1 |
| 0x2000 0020 | 16 | Reserved2 | Reserved for future use. |
| REMAP | Memory mapped |
|---|---|
| 0 | Main flash memory |
| 1 | SRAM0 |
2.3 ARM® Cortex®-M0+
Table 6. Address remapping depending on REMAP bit
| REMAP | Memory mapped |
|---|---|
| 0 | Main flash |
| 1 | SRAM0 |
The ARM® Cortex®-M0+ processor was developed to provide a low-cost platform that meets the needs of MCU implementation, with a reduced pin count and low-power consumption, while delivering outstanding computational performance and an advanced response to interrupts.
The embedded Cortex-M0+ embeds:
- • four breakpoints
- • two watchpoints
- • a MPU (Memory Protection Unit) providing eight unified protection regions
- • a SysTick running only with the system clock (external clock option not supported).
2.3.1 CPU memory remap
Following CPU boot the application software can modify the memory map at address 0x0000 0000. This modification is performed by programming the REMAP bit in the flash controller (see Configuration register (CONFIG)).
The following memory can be remapped:
- • Main flash memory
- • SRAM0 memory
Embedded boot loader
ST provides a boot loader executed after each CPU reboot. This boot loader has its own documentation.
Note: STM32WL3Rxx devices latch the PA8 / PA9 / PA10 / PA11 / PB12 / PB13 / PB14 / PB15 pads value at POR. The information is available in PWR_SR2 register (see Status register 2 (PWR_SR2)). One of those eight I/Os can be used by the boot loader as boot indication between a normal boot or a boot on serial interface.
2.3.2 Interrupts
Interrupts are handled by the Cortex-M0+ Nested Vector Interrupt Controller (NVIC). The NVIC controls specific Cortex-M0+ interrupts (address 0x00 to 0x3C) as well as 32 user interrupts (address 0x40 to 0xBC). In STM32WL3Rxx devices, the user interrupts have been connected to the interrupt signals of the different peripherals (GPIO, flash controller, timer, UART,...). These interrupts can be controlled using the ISER, ICER, ISPR and ICPR registers (see the Cortex-M0+ Devices Generic User Guide).
Vector table
On reset, the Cortex-M0+ vector table is fixed at address 0x0000_0000. The software may relocate the vector table address to a different memory location, in a range 0x0000_0000 to 0xFFFF_FF80 in multiples of 256 bytes through the Vector Table Offset Register (VTOR) located in the Cortex-M0+ registers area (see Cortex-M0+ Devices Generic User Guide).
The STM32WL3Rxx interrupt-vector mapping is detailed in Table 7.
Table 7. Interrupt vectors(1)
| Position | Priority | Type of priority | Acronym | Description | Address offset |
|---|---|---|---|---|---|
| - | - | - | - | Initial main SP | 0x0000_0000 |
| - | -3 | Fixed | Reset | Reset_Handler | 0x0000_0004 |
| - | -2 | Fixed | NmiSR | NMI_Handler | 0x0000_0008 |
| - | -1 | Fixed | FaultISR | HardFault_handler | 0x0000_000C |
| - | - | Reserved | Reserved | Reserved | 0x0000_000C - 0x0000_0038 |
| - | 6 | Settable | SysTick | System tick timer | 0x0000_003C |
| 0 | Init 0 | Settable | NVM | Non-volatile memory (flash) controller | 0x0000_0040 |
| 1 | Init 0 | Settable | RCC | Reset and clock controller | 0x0000_0044 |
| 2 | Init 0 | Settable | BATTERY | PVD / BORH | 0x0000_0048 |
| 3 | Init 0 | Settable | I2C1 | I2C1 interrupt | 0x0000_004C |
| 4 | Init 0 | Reserved | Reserved | Reserved | 0x0000_0050 |
| 5 | Init 0 | Reserved | Reserved | Reserved | 0x0000_0054 |
| 6 | Init 0 | Reserved | Reserved | Reserved | 0x0000_0058 |
| 7 | Init 0 | Settable | SPI3 | SPI3 interrupt | 0x0000_005C |
| 8 | Init 0 | Settable | USART | USART interrupt | 0x0000_0060 |
| 9 | Init 0 | Settable | LPUART | LPUART interrupt | 0x0000_0064 |
| 10 | Init 0 | Settable | TIM2 | TIM2 interrupt | 0x0000_0068 |
| 11 | Init 0 | Settable | RTC | RTC interrupt | 0x0000_006C |
| 12 | Init 0 | Reserved | Reserved | Reserved | 0x0000_0070 |
| 12 | Init 0 | Settable | ADC | ADC interrupt | 0x0000_0070 |
| 13 | Init 0 | Settable | AES | AES interrupt | 0x0000_0074 |
| 14 | Init 0 | Reserved | Reserved | Reserved | 0x0000_0078 |
| Position | Priority | Type of priority | Acronym | Description | Address offset |
|---|---|---|---|---|---|
| 15 | Init 0 | Settable | GPIOA | GPIOA interrupt | 0x0000_007C |
| 16 | Init 0 | Settable | GPIOB | GPIOB interrupt | 0x0000_0080 |
| 17 | Init 0 | Settable | DMA | DMA interrupt | 0x0000_0084 |
| 18 | Init 0 | Reserved | Reserved | Reserved | 0x0000_0088 |
| 19 | Init 0 | Reserved | Reserved | Reserved | 0x0000_008C |
| 20 | Init 0 | Settable | MRSUBG_BUSY | MRSUBG Busy interrupt | 0x0000_0090 |
| 21 | Init 0 | Settable | MRSUBG | MRSUBG interrupt | 0x0000_0094 |
| 22 | Init 0 | Settable | MRSUBG_TX_RX_SEQUENCE | MRSUBG TX/RX sequence interrupt | 0x0000_0098 |
| 23 | Init 0 | Settable | MRSUBG_TIMER_CPU_WKUP | MRSUBG TIMER CPU Wakeup interrupt | 0x0000_009C |
| 24 | Init 0 | Settable | MRSUBG_WKUP | MRSUBG Wakeup interrupt | 0x0000_00A0 |
| 25 | Init 0 | Reserved | Reserved | Reserved | 0x0000_00A4 |
| 26 | Init 0 | Settable | TIM16 | TIM16 interrupt | 0x0000_00A8 |
| 27- 31 | Init 0 | Reserved | Reserved | Reserved | 0x0000_00AC - 0x0000_00BC |
1. Priority level is set to 0 after reset, each interrupt can be programmed with 4 higher priorities.
Interrupt activation sequence
Safely activating a peripheral interrupt requires the following steps:
- – Make sure the interrupt is disabled and cleared on the peripheral side (this prevents receiving an interrupt due to a previous event)
- – Clear pending requests for this interrupt on the Cortex-M0+ side using the NVIC ICPR register.
- – Set the priority using the NVIC IPR0-IPR7 registers.
- – Activate on the Cortex-M0+ side using the NVIC ISER register.
- – Activate on the peripheral side.
Note: Most peripherals require clearing interrupt requests on the peripheral side when handling interrupt service requests to prevent triggering continuous interrupts for the same event.
For more details on the Cortex-M0+ exception model, see ARMv6-M Architecture Reference Manual, §B1.5.
For more details on the Cortex-M0+ NVIC behavior and registers, see the ARMv6-M Architecture Reference Manual, §B3.4.