Memory Protection; Read Protection; Table 7. Flash Memory Read Protection Status - STMicroelectronics RM0365 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

Embedded Flash memory
4.3

Memory protection

The user area of the Flash memory can be protected against read by untrusted code. The
pages of the Flash memory can also be protected against unwanted write due to loss of
program counter contexts. The write-protection granularity is two pages.
4.3.1

Read protection

The read protection is activated by setting the RDP option byte and then, by applying a
system reset to reload the new RDP option byte.
Note:
If the read protection is set while the debugger is still connected through JTAG/SWD, apply
a POR (power-on reset) instead of a system reset.
There are three levels of read protection from no protection (level 0) to maximum protection
or no debug (level 2).
The Flash memory is protected when the RDP option byte and its complement contain the
pair of values shown in
RDP byte value
0xAA
Any value except 0xAA or
0xCC
0xCC
The System memory area is read accessible whatever the protection level. It is never
accessible for program/erase operation
Level 0: no protection
Read, program and erase operations into the main memory Flash area are possible. The
option bytes are also accessible by all operations.
67/1080
Table
7.

Table 7. Flash memory read protection status

RDP complement value
0x55
Any value (not necessarily
complementary) except 0x55 and
0x33
0x33
DocID025202 Rev 7
RM0365
Read protection level
Level 0 (ST production
configuration)
Level 1
Level 2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RM0365 and is the answer not in the manual?

Table of Contents