cancel
Showing results for 
Search instead for 
Did you mean: 

How to disbale STM32MCU IWDG Watchdog during debug

New.Fish
Associate III

This is our production code, I enable IWDG watchdog to avoid program hang. The problem is the watchdog keep trigger during I debug. How to disable the WD during debugging in the setting? Rather than modify the source code.

2 REPLIES 2
Alec Davis
Associate III

IIRC if you've used cubemx to create then in main there's a line MX_IWDG_INIT() , comment it out during the debug session.

New.Fish
Associate III

This is what I am doing now, but to modify the code is not a good idea.