8.2.7 Protection Region n Lock Control Register
Legend: R = Readable bit, W = Writable bit
- The LOCK field does not apply to OTP and IRT region descriptors that cannot be modified by firmware.
| Name: | PRnLOCK |
| Offset: | 0x30C, 0x31C, 0x32C, 0x33C, 0x34C, 0x35C, 0x36C, 0x37C |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| KEY[15:8] | |||||||||
| Access | W | W | W | W | W | W | W | W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| KEY[7:0] | |||||||||
| Access | W | W | W | W | W | W | W | W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| Access | |||||||||
| Reset |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| LOCK[1:0] | |||||||||
| Access | R/W | R/W | |||||||
| Reset | 0 | 0 | |||||||
Bits 31:16 – KEY[15:0] Write Key bits
Register is read-only if LOCK[1:0] bits are set to ‘01’. Writes
to the PRxLOCK registers must be 32 bits with the 0xB737 key field value;
otherwise, the write is ignored. The region descriptors are locked (read-only)
on Reset to prevent inadvertent writes from corrupting a descriptor. The region
descriptor registers are unlocked (writes enabled) by setting LOCK[1:0] bits to
‘11’.
Bits 1:0 – LOCK[1:0] Protection Region Lock Option bits (1)
Register is read-only if LOCK[1:0] bits are set to ‘01’. Writes
to the PRxLOCK registers must be 32 bits with the 0xB737 key field value;
otherwise, the write is ignored. The region descriptors are locked (read-only)
on Reset to prevent inadvertent writes from corrupting a descriptor. The region
descriptor registers are unlocked (writes enabled) by setting LOCK[1:0] bits to
‘11’.
| Value | Description |
|---|---|
| 3 | Region descriptor is unlocked (can be modified in SFRs). |
| 2 | Reserved |
| 1 | Region descriptor is locked and cannot be unlocked until after the next Reset. |
| 0 | Region descriptor is locked. |
