Datasheet

Table Of Contents
DS13105 Rev 4 15/135
STM32WLE5J8/JB/JC Functional overview
46
The MPU is especially helpful for applications where some critical or certified code must be
protected against the misbehavior of other tasks. It is usually managed by an RTOS (real-
time operating system). If a program accesses a memory location that is prohibited by the
MPU, the RTOS can detect it and take action. In an RTOS environment, the kernel can
dynamically update the MPU area setting, based on the process to be executed.
The MPU is optional and can be bypassed for applications that do not need it.
3.5 Memories
3.5.1 Embedded Flash memory
The Flash memory interface manages the CPU AHB ICode and DCode accesses to the
Flash memory. It implements the access, the erase and program Flash memory operations,
and the read and write protection.
The main features of the Flash memory are listed below:
Memory organization: 1 bank
main memory: up to 256 Kbytes
page size: 2 Kbytes
72-bit wide data read (64 bits plus 8 ECC bits)
72-bit wide data write (64 bits plus 8 ECC bits)
Page erase and mass erase
Flexible protections can be configured thanks to option bytes:
Readout protection (RDP) to protect the whole memory. Three levels are available:
Level 0: no readout protection
Level 1: memory readout protection. The Flash memory cannot be read from or
written to if either debug features are connected, boot in SRAM or bootloader is
selected.
Level 2: chip readout protection. Debug features (JTAG and serial wire), boot in
SRAM and bootloader selection are disabled (JTAG fuse). This selection is
irreversible.
Table 3. Access status versus RDP level and execution mode
Area
RDP
level
User execution
Debug, boot from SRAM or boot from
system memory (loader)
Read Write Erase Read Write Erase
Main memory
1 Yes Yes Yes No No No
2 Yes Yes Yes NA NA NA
System memory
1Yes No No Yes No No
2 Yes No No NA NA NA
Option bytes
1 Yes Yes Yes Yes Yes Yes
2Yes No
(1)
No
(1)
NA NA NA