{bp-17045} arch/arm/stm32h7: Fix and enhance WWDG (Window Watchdog) support#17094
Merged
xiaoxiang781216 merged 1 commit intoapache:releases/12.11from Sep 27, 2025
Merged
{bp-17045} arch/arm/stm32h7: Fix and enhance WWDG (Window Watchdog) support#17094xiaoxiang781216 merged 1 commit intoapache:releases/12.11from
xiaoxiang781216 merged 1 commit intoapache:releases/12.11from
Conversation
This patch addresses several issues and adds enhancements to the WWDG (Window Watchdog) implementation for the STM32H7 platform. The changes include: - Extend the definitions of WWDG_CFR_PCLK1 macros to support dividers up to 128, and update the stm32_settimeout() function to consider this extended range. - Fix the "elapsed" calculations in the stm32_getstatus() function to ensure correct time remaining calculations. - Clear the EWIF (Early Wakeup Interrupt Flag) bit in the stm32_start() function, as this bit might be set by hardware before the watchdog is actually started. - Initialize the WWDG clock in the RCC_APB3ENR register and set the RCC_GCR_WW1RSC bit as per the STM32 reference manual to ensure proper behavior when enabling the WWDG1. Signed-off-by: Szymon Magrian <szymon.magrian@hexagon.com>
cederom
approved these changes
Sep 26, 2025
acassis
approved these changes
Sep 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This patch addresses several issues and adds enhancements to the WWDG (Window Watchdog) implementation for the STM32H7 platform. The changes include:
Impact
RELEASE
Testing
CI