Skip to main content
New.Fish
Associate III
May 22, 2019
Question

How to disbale STM32MCU IWDG Watchdog during debug

  • May 22, 2019
  • 2 replies
  • 844 views

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.

This topic has been closed for replies.

2 replies

Alec Davis
Associate III
May 22, 2019

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
New.FishAuthor
Associate III
May 22, 2019

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