6.5.7.1.9 Check If The Device Is Locked

Table 6-26. Check If The Device Is Locked Sequence

Steps

Commands
Read status registerStatus = dap_read_word(DSU_DAL);
Check the value of bit 1:0Locked = !(Status & 0x00000003);

If bits 1:0 are ‘0’, then the device is locked and requires a Chip Erase before any other access can occur.