29.6.11 Non-Secure Region Unlock Bits
Important: For PIC32CM LS00/LS60 Non-Secure accesses, write
accesses (W*) are allowed only if Non-Secure Write is set in the NONSEC register.
Name: | NSULCK |
Offset: | 0x22 |
Reset: | x initially determined from NVM User Row after reset |
Property: | PAC Write-Protection, Write-Mix-Secure |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
NSLKEY[7:0] | |||||||||
Access | W/W*/W | W/W*/W | W/W*/W | W/W*/W | W/W*/W | W/W*/W | W/W*/W | W/W*/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
DNS | ANS | ||||||||
Access | RW/RW*/RW | RW/RW*/RW | |||||||
Reset | x | x |
Bits 15:8 – NSLKEY[7:0] (Non-Secure) Unlock Key
When this bit group is written to the key value 0xA5, the write will be performed. If a value different from the key value is tried, the write will be discarded and INTFLAG.KEYE set.
Bit 2 – DNS (Non-Secure) Data Flash (DNS region) Unlock Bit
Note: For PIC32CM
LE00 devices, the Non-Secure Data Flash
region corresponds to the entire Data Flash region.
Value | Description |
---|---|
0 | The Non-Secure Data Flash region (DNS region) is locked |
1 | The Non-Secure Data Flash region (DNS region) is not locked |
Bit 1 – ANS (Non-Secure) Flash (ANS region) Unlock Bit
Note: For PIC32CM
LE00 devices, the Non-Secure Flash
(APPLICATION region) corresponds to the Flash (APPLICATION region).
Value | Description |
---|---|
0 | The Non-Secure Flash (ANS region) is locked |
1 | The Non-Secure Flash (ANS region) is not locked |