09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> Embedded Flash memory interface<br />

Table 13. Access versus read protection level<br />

Memory area<br />

Main Flash Memory<br />

and Backup SRAM<br />

Option Bytes<br />

OTP<br />

Protection<br />

Level<br />

Figure 5 shows how to go from one RDP level to another.<br />

Figure 5. RDP levels<br />

3.6.4 Write protections<br />

Debug features, Boot from RAM or<br />

from System memory bootloader<br />

Booting from Flash memory<br />

Read Write Erase Read Write Erase<br />

Level 1 NO NO (1)<br />

Up to 24 user sectors in Flash memory can be protected against unwanted write operations<br />

due to loss of program counter contexts. When the non-write protection nWRPi bit<br />

(0 ≤ i ≤ 11) in the FLASH_OPTCR or FLASH_OPTCR1 registers is low, the corresponding<br />

YES<br />

Level 2 NO YES<br />

Level 1 YES YES<br />

Level 2 NO NO<br />

Level 1 NO NA YES NA<br />

Level 2 NO NA YES NA<br />

1. The main Flash memory and backup SRAM are only erased when the RDP changes from level 1 to 0. The OTP area<br />

remains unchanged.<br />

Write options<br />

including<br />

RDP = CCh<br />

Lev<br />

el<br />

2<br />

RDP<br />

= CCh<br />

Options write (RDP level increase) includes<br />

- Options erase<br />

- New options program<br />

Options write (RDP level decrease) includes<br />

- Mass erase<br />

- Options erase<br />

- New options program<br />

RDP /= AAh & /= CCh<br />

Others options modified<br />

Level 1<br />

RDP /= AAh<br />

RDP /= CCh<br />

default<br />

Write options<br />

including<br />

RDP = CCh<br />

Write optionsincluding<br />

RDP /= CCh & /= AAh<br />

Lev<br />

el<br />

0<br />

RDP<br />

= AAh<br />

Write options<br />

including<br />

RDP = AAh<br />

RDP = AAh<br />

Others option(s) modified<br />

Options write (RDP level identical) includes<br />

- Options erase<br />

- New options program<br />

ai16045<br />

Doc ID 018909 Rev 3 74/1416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!