STM32G050 Debug with IWDG enabled
I enabled IWDG on my STM32G050C8T6 and it works correctly but I also want to be able to debug the MCU with IWDG enabled. According to the MCU family's reference manual I should set bit 12 (DBG_IWDG_STOP) of DBG APB freeze register 1 (DBG_APB_FZ1) to disable IWDG clock counter when the core is halted.
The DBG APB freeze register 1 can be written by debugger under system reset.

But I do not know how to write to this register. I tried to change it using STM32CubeProgrammer but it does not work.

I also tried to do this using st-link utility and gdb but the DBG_APB_FZ1 is still 0.

How to set this register so I can debug my device with IWDG enabled?
