Hi,
If either the HLK or SLK bits in the SWT_MCR are set then the SWT_MCR, SWT_TO, SWT_WN, SWT_SK registers are read only.
Hard Lock :
Can be only cleared by reset.
It is widely used when you configure peripheral and you want to be sure that no changes are accidentally made during SW run-time.
Soft Lock :
Can be cleared by SW. Soft lock is cleared by writing the unlock sequence to the service register.
Can be used whenever you need to change value in secured registers during run-time.
Use of this feature is strongly application specific.
Peter