Page 1 of 1

Is there any problem if the system registers is not relocked after the register is unlocked using SYS_UnlockReg()?

Posted: 31 May 2021, 15:55
by a_ziliu
SYS_UnlockReg() and SYS_UnlockReg() are registers for protecting the system. To modify the system register, you need to unlock it first and then relock it after the modification.
There is no problem if it is not locked, but it is recommended to lock the system register to prevent unintended situation and process from changing the contents of the system register.