29.5.13 Debugger Access Level
The Debugger Access Level (DSU STATUSB.DAL) defines the access rights of a debugger connected to the device.
- 0x0 = Access to very limited features (basically only the DSU external address space)
- 0x1 = Access to all non-secure memory; can debug non-secure CPU code (PIC32CM LS00/LS60 only)
- 0x2 = Access to all memory; can debug secure and non-secure CPU code
DAL can be set to a lower setting using a SDAL command (CTRLA register).
Important:
- Issuing a SDAL command to set a higher setting for DAL is only possible if NVMCTRL.SECCTRL.DALUN == 1
- If NVMCTRL.SECCTRL.DALUN == 0 and a SDAL command to set a higher value is performed, an INTFLAG.PROGE error is issued. In this case, only a Chip Erase can change DAL to a higher setting