STM32F4 series MCU, Windows watchdog WWDG bug

Source: Internet
Author: User
Tags reset
Bug in STM32F4 Series MCU, window watchdog WWDG.


1. If it is possible to pre-feed the dog interrupt, then the following two points must be met
(1) Before turning on the WWDG interrupt, the EWI flag bit in the SR register must be zeroed out, otherwise the watchdog will constantly reset
(2) Add a small delay to the WWDG_IRQ, otherwise the watchdog will be constantly reset
2. If there are other interrupts in the system, such as keystrokes, set a variable in the key interrupt, which is read in the WWDG_ISR to decide whether to stop feeding the dog
When you press the button, the system flies directly.
A test code is given here. as shown below.

/** ****************************************************************************** * @file USART/USART_Printf/main . c * @author MCD application Team * @version V1.0.1 * @date 13-april-2012 * @brief Main Program Body * * * * * * @attention * * &LT;H2&GT;&LT;CENTER&GT ; ©copyright stmicroelectronics</center> 



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.