Secure and Unsecure the CSM
The CSM is always secured after reset
To unsecure the CSM:
Perform a dummy read of each CSMPSWD(0,1,2,3)
register (passwords in the OTP)
Write the correct password to each
CSMKEY(0,1,2,3) register
Passwords are all 0xFFFF on new devices
When passwords are all 0xFFFF, only a read of
each password location (PWL) is required to
unsecure the device
The bootloader does these dummy reads and
hence unsecures devices that do not have
passwords programmed