Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[ARM] STM32F103C8T6 with window watchdog timer

Sudhakar R

Newbie level 4
Newbie level 4
Joined
Dec 26, 2022
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
70
how to configure window watchdog timer with stm32 microcontroller
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,269
Helped
4,741
Reputation
9,503
Reaction score
5,127
Trophy points
1,393
Activity points
154,156
Hi,

It's not clear what information you are looking for.

Basically:
* by writing it's registers
* with values explained in the datasheet

Klaus
 

Sudhakar R

Newbie level 4
Newbie level 4
Joined
Dec 26, 2022
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
70
I trying to configure by register.
first i crash my code using Divide by zero fault. then my code stuck in UsageFault.
so, code will be crash at that time window watchdog timer should reset the my code.

RCC->APB1ENR |= (1<<11); // Window watchdog clock enable

WWDG->CFR = 0x0000014f; // 10: CK Counter Clock (PCLK1 div 4096) div 4 & window value is 79
WWDG->CR = 0x0000006C;
WWDG->CR |= WWDG_CR_WDGA;

but code is looping the above three line
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top