RM0367 Rev 7 99/1043
RM0367 Flash program memory and data EEPROM (FLASH)
122
Any read access performed as data (see Read as data and pre-read) in a protected sector
will trigger the RDERR flag in the FLASH_SR register. Any read-protected sector is also
write-protected and any write access to one of these sectors will trigger the WRPERR flag in
the FLASH_SR register.
When WPRMOD = 1 (PcROP enabled), it is not possible to reduce the protection on a
sector: new zeros (to protect new sectors) can be set, but new ones (to remove the
protection from sectors) cannot be added. This is valid regardless of the protection level
(RDPROT configuration). When WPRMOD is active, if the user tries to reset WPRMOD or
to remove the protection from a sector, the programming is launched but WPRMOD or
protected sectors remain unchanged.
Table 20. Link between protection bits of FLASH_WRPROTx register
and protected address in Flash program memory
Bit Start address End address Bit Start address End address
0 0x0800 0000 0x0800 0FFF 24 0x0801 8000 0x0801 8FFF
1 0x0800 1000 0x0800 1FFF 25 0x0801 9000 0x0801 9FFF
2 0x0800 2000 0x0800 2FFF 26 0x0801 A000 0x0801 AFFF
3 0x0800 3000 0x0800 3FFF 27 0x0801 B000 0x0801 BFFF
4 0x0800 4000 0x0800 4FFF 28 0x0801 C000 0x0801 CFFF
5 0x0800 5000 0x0800 5FFF 29 0x0801 D000 0x0801 DFFF
6 0x0800 6000 0x0800 6FFF 30 0x0801 E000 0x0801 EFFF
7 0x0800 7000 0x0800 7FFF 31 0x0801 F000 0x0801 FFFF
8 0x0800 8000 0x0800 8FFF 32 0x0802 0000 0x0802 0FFF
9 0x0800 9000 0x0800 9FFF 33 0x0802 1000 0x0802 1FFF
10 0x0800 A000 0x0800 AFFF 34 0x0802 2000 0x0802 2FFF
11 0x0800 B000 0x0800 BFFF 35 0x0802 3000 0x0802 3FFF
12 0x0800 C000 0x0800 CFFF 36 0x0802 4000 0x0802 4FFF
13 0x0800 D000 0x0800 DFFF 37 0x0802 5000 0x0802 5FFF
14 0x0800 E000 0x0800 EFFF 38 0x0802 6000 0x0802 6FFF
15 0x0800 F000 0x0800 FFFF 39 0x0802 7000 0x0802 7FFF
16 0x0801 0000 0x0801 0FFF 40 0x0802 8000 0x0802 8FFF
17 0x0801 1000 0x0801 1FFF 41 0x0802 9000 0x0802 9FFF
18 0x0801 2000 0x0801 2FFF 42 0x0802 A000 0x0802 AFFF
19 0x0801 3000 0x0801 3FFF 43 0x0802 B000 0x0802 BFFF
20 0x0801 4000 0x0801 4FFF 44 0x0802 C000 0x0802 CFFF
21 0x0801 5000 0x0801 5FFF 45 0x0802 D000 0x0802 DFFF
22 0x0801 6000 0x0801 6FFF 46 0x0802 E000 0x0802 EFFF
23 0x0801 7000 0x0801 7FFF 47 0x0802 F000 0x0802 FFFF