Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32n6/STM32N645/RISAF/RISAF_CR#0x0
GLOCK=B_0x0
RISAF configuration register
global lock
0 (B_0x0): RISAF registers are writable.
1 (B_0x1): All writes to RISAF registers are ignored, except RISAF_IACR, RISAF_REGx_zCFGR, RISAF_REGx_zSTARTR and RISAF_REGx_zENDR (z = A to B).
https://github.com/modm-io/cmsis-svd-stm32