Unable to freeze IWDG during debugging using SEGGER j-link (STM32L053)
I've configured IWDG for my application (STM32L053). When I've halted the application during debugging, the IWDG is still triggering resets. I'm using a SEGGER j-link.
I've attempted to use the __HAL_DBGMCU_FREEZE_IWDG() macro, but it doesn't seem to have any affect. I've also tried to write to the register directly:
*((volatile int *)(0xE0042008)) |= (1 << 12);
When I check in the SFR view for APB1_FZ, the DBG_IWDG_STOP value never changes.
I can disable initializing the IWDG when debugging, but that isn't ideal. Any help?