Getting started with WDG

Revision as of 17:52, 14 November 2022 by Registered User
Under construction.png Coming soon

This article explains what WDOG is and how to use it through examples

1. Introduction of WDOG

WDOG stands for Watch DOG. The main goal of this IP is to detect and resolve malfunctions due to software failures.

2. WDOG type

There are two types of WDOG :
  • WWDG : Window WatchDoG
  • IWDG : Independent WatchDoG

Main differences are listed below :

  • WWDG is clocked by the APB1 peripheral clock ans the IWDG is clocked by the LSI.
  • WWDG need to be refresh

3. Configure WWDOG with LED indication

3.1. Definition

3.2. Objective

  • In this project, you will learn how to setup WWDG in STM32CubeIDE
  • How to Generate Code in STM32CubeIDE and use HAL functions
  • Create simple application to test WWDG

3.3. How

  • Configure WWDG in STM32CubeIDE and Generate Code
  • Learn how to activate and refresh WWDG
  • Add into the project the HAL_Delay function and HAL_GPIO_Toggle function
  • Verify the correct functionality on toggling LED

3.4. Create the project in CSTM32ubeIDE

4. Configure IWDOG with LED indication

4.1. Objective

  • In this project, you will learn how to setup IWDG in STM32CubeIDE
  • How to Generate Code in STM32CubeIDE and use HAL functions
  • Create simple application to test IWDG

4.2. How

  • Configure IWDG in STM32CubeIDE and Generate Code
  • Learn how to activate and refresh IWDG
  • Add into the project the HAL_Delay function and HAL_GPIO_Toggle function
  • Verify the correct functionality on toggling LED

4.3. Create the project in CSTM32ubeIDE

5. Conclusion

Keep in mind this :



[[category:Getting_started_with_STM32_system_peripherals | 15]]