cancel
Showing results for 
Search instead for 
Did you mean: 

Debug step-by-step with Watchdog enable !

mahmoud_dhaiwi
Associate II
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
1 REPLY 1
Danish1
Lead II
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