8.2.4 Protection Region n Control Register
Legend: n = Region number, x = Loaded from Configuration bits, W = Writable bit, R = Readable bit
Note:
- Register is read-only unless
RTYPE[1:0] bits are ‘
11’ and LOCK[1:0] bits (PRnLOCK[1:0]) are ‘11’. Firmware configurable region descriptors are locked (read-only) at Reset and must be unlocked with a write to PRnLOCK before being modified. - IRT regions: all access disabled when the PLCK bit (IRTCRTL[4]) is set. For the OTP regions, the region write permissions are disabled, regardless of the WR bit. OTP and IRT are permanent regions.
- The WR bit is not used for OTP regions; write permissions are always disabled for OTP regions.
| Name: | PRnCTRL |
| Offset: | 0x300, 0x310, 0x320, 0x330, 0x340, 0x350, 0x360, 0x370 |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| Access | |||||||||
| Reset |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| Access | |||||||||
| Reset |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| PSEL[1:0] | RTYPE[1:0] | ||||||||
| Access | R | R | R | R | |||||
| Reset | x | x | x | x | |||||
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| CRC | WR | RD | EX | ERAO | RDIS | ||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | |||
| Reset | x | x | x | x | x | x |
Bits 13:12 – PSEL[1:0] Partition Select bits
| Value | Description |
|---|---|
| 11 | Both User Program Partitions |
| 10 | User Program Partition 2 |
| 01 | User Program Partition 1 |
| 00 | User Data |
Bits 9:8 – RTYPE[1:0] Protection Region Type Selection bits (1,2)
| Value | Description |
|---|---|
| 11 | Firmware Configurable Region |
| 10 | One Time Programmable (OTP) Region |
| 01 | Immutable Root of Trust (IRT) Region |
| 00 | Reserved |
Bit 7 – CRC CRC Permission Enable bit
| Value | Description |
|---|---|
| 1 | NVM Controller CRC is permitted. |
| 0 | NVM Controller CRC is disabled. |
Bit 6 – WR Write Permission Enable bit(3)
| Value | Description |
|---|---|
| 1 | Write (program/erase) is permitted. |
| 0 | Write (program/erase) is disabled. |
Bit 5 – RD Read Permission Enable bit
| Value | Description |
|---|---|
| 1 | Read is permitted. |
| 0 | Read is disabled. |
Bit 4 – EX Execute Permission Enable bit
| Value | Description |
|---|---|
| 1 | Execute (instruction fetch) is permitted. |
| 0 | Execute (instruction fetch) is disabled. |
Bit 1 – ERAO Error Report Address Only bit
| Value | Description |
|---|---|
| 1 | ECC error reporting information is restricted to address only. |
| 0 | No ECC error reporting restrictions |
Bit 0 – RDIS Protection Region Disable bit
| Value | Description |
|---|---|
| 1 | Region is disabled. |
| 0 | Region is enabled. |
