Skip to main content
mahmoud_dhaiwi
Associate II
May 26, 2015
Question

Debug step-by-step with Watchdog enable !

  • May 26, 2015
  • 1 reply
  • 1188 views
Posted on May 26, 2015 at 09:49

Hello,

I am debugging step-by-step my project on stm32f103vd, using CooCox CoIDE, and ST-LinkV2.

when I enable whatchdog, the system go then to Reset_DefaultHandler(). I think that's normal no ?

and how I can debug step-by-step with keeping watchdog enable ?

thanks :)

#stm32 #debug #whatchdog
This topic has been closed for replies.

1 reply

Danish1
Lead III
May 26, 2015
Posted on May 26, 2015 at 11:08

In the register DBGMCU_CR there are a number of bits you can set to stop some peripherals while the core is halted. You can freeze the IWDG and WWDG to prevent watchdog reset, as well as various timers.

See the ''debug support'' part of the reference manual for more details.

Hope this helps,

Danish