
DocID024597 Rev 5
117/1830
RM0351
Embedded Flash memory (FLASH)
136
Note:
Full Mass Erase or Partial Mass Erase is performed only when Level 1 is active and Level 0
requested. When the protection level is increased (0->1, 1->2, 0->2) there is no mass erase.
To validate the protection level change, the option bytes must be reloaded through the
OBL_LAUNCH bit in Flash control register.
Figure 6. Changing the Read protection (RDP) level
069
2SWLRQVZULWH5'3OHYHOLQFUHDVHLQFOXGHV
2SWLRQVSDJHHUDVH
1HZRSWLRQVSURJUDP
5'3[$$DQG5'3[&&
2WKHUVRSWLRQVPRGLILHG
:ULWHRSWLRQVLQFOXGLQJ
5'3 [$$
:ULWHRSWLRQV,QFOXGLQJ
5'3 [&&
:ULWHRSWLRQVLQFOXGLQJ
5'3[&&DQG5'3[$$
/HYHO
5'3[$$
5'3[&&
GHIDXOW
/HYHO
5'3 [&&
/HYHO
5'3 [$$
5'3 [$$
2WKHUVRSWLRQVPRGLILHG
:ULWHRSWLRQVLQFOXGLQJ
5'3 [&&
2SWLRQVZULWH5'3OHYHOGHFUHDVHLQFOXGHV
)XOO0DVVHUDVHRU3DUWLDO0DVVHUDVHWRQRW
HUDVH3&523SDJHVLI3&523B5'3LVFOHDUHG
%DFNXSUHJLVWHUVDQG65$0HUDVH
2SWLRQVSDJHHUDVH
1HZRSWLRQVSURJUDP
2SWLRQVZULWH5'3OHYHOLGHQWLFDOLQFOXGHV
2SWLRQVSDJHHUDVH
1HZRSWLRQVSURJUDP
Table 15. Access status versus protection level and execution modes
Area
Protection
level
User execution (BootFromFlash)
Debug/ BootFromRam/
BootFromLoader
(1)
Read Write Erase Read Write Erase
Flash main
memory
1
Yes Yes Yes No No No
2
Yes Yes Yes N/A
N/A
N/A
System
memory
(2)
1
Yes No No Yes No No
2
Yes No No N/A
N/A N/A
Option bytes
1
Yes
Yes
(3)
Yes Yes Yes
Yes
2
Yes No
No N/A N/A N/A