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 15141312111098 
 NSLKEY[7:0] 
Access W/W*/WW/W*/WW/W*/WW/W*/WW/W*/WW/W*/WW/W*/WW/W*/W 
Reset 00000000 
Bit 76543210 
      DNSANS  
Access RW/RW*/RWRW/RW*/RW 
Reset xx 

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.
ValueDescription
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).
ValueDescription
0 The Non-Secure Flash (ANS region) is locked
1 The Non-Secure Flash (ANS region) is not locked