6.5.7.1.9 Check If The Device Is Locked
Steps | Commands |
|---|---|
| Read status register | Status = dap_read_word(DSU_DAL); |
| Check the value of bit 1:0 | Locked = !(Status & 0x00000003); |
If bits 1:0 are ‘0’, then the device is locked and requires a Chip Erase before any other access can occur.
