RM0046 Flash Memory
Doc ID 16912 Rev 5 333/936
An erased bit in the Flash module reads as logic level 1 (or high).
Program and erase of the Flash module requires multiple system clock cycles to complete.
The erase sequence may be suspended.
The program and erase sequences may be terminated.
Flash module sectorization
The code Flash module supports 256 KB of user memory, plus 16 KB of test memory (a
portion of which is one-time programmable by the user). An extra 16 KB sector is available
as Shadow space usable for user option bits or censorship.
The code Flash and data modules are each composed of a single bank: Bank 0 (code
Flash) and Bank 1 (data Flash). Read-While-Modify within a module is not supported, but
can be performed by reading from one module while writing to another.
The code Flash Bank 0 is divided in 8 sectors including a reserved sector named TestFlash,
in which One Time Programmable (OTP) user data are stored, and a Shadow Sector in
which user erasable configuration values can be stored (see Ta bl e 14 2 ).
The data Flash Bank 1 is divided in five sectors including a reserved sector named
TestFlash (see Table 143).
Table 142. 288 KB code Flash module sectorization
Bank Sector Addresses Size Address space
B0 B0F0 0x0000_0000–0x0000_7FFF 32 KB Low Address Space
B0 B0F1 0x0000_8000–0x0000_BFFF 16 KB Low Address Space
B0 B0F2 0x0000_C000–0x0000_FFFF 16 KB Low Address Space
B0 B0F3 0x0001_0000–0x0001_7FFF 32 KB Low Address Space
B0 B0F4 0x0001_8000–0x0001_FFFF 32 KB Low Address Space
B0 B0F5 0x0002_0000–0x0003_FFFF 128 KB Low Address Space
B0 Reserved 0x0004_0000–0x0007_FFFF 256 KB Mid Address Space
B0 Reserved 0x0008_0000–0x001F_FFFF 1536 KB High Address Space
B0 B0SH 0x0020_0000–0x0020_3FFF 16 KB Shadow Address Space
B0 Reserved 0x0020_4000–0x003F_FFFF 2032 KB Shadow Address Space
B0 B0TF 0x0040_0000–0x0040_3FFF 16 KB Test Address Space
B0 Reserved 0x0040_4000–0x007F_FFFF 4080 KB Test Address Space
Table 143. 64 KB data Flash module sectorization
Bank Sector Addresses Size (KB) Address space
B1 B1F0 0x0080_0000 to 0x0080_3FFF 16 Low Address Space
B1 B1F1 0x0080_4000 to 0x0080_7FFF 16 Low Address Space
B1 B1F2 0x0080_8000 to 0x0080_BFFF 16 Low Address Space
B1 B1F3 0x0080_C000 to 0x0080_FFFF 16 Low Address Space