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

Status
Not open for further replies.

Sudhakar R

Newbie level 6
Joined
Dec 26, 2022
Messages
12
Helped
0
Reputation
0
Reaction score
2
Trophy points
3
Activity points
121
how to configure window watchdog timer with stm32 microcontroller
 

Hi,

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

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

Klaus
 

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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top