Skip to content

[watchdog, stm32wb, tests] Implement watchdog abstraction. Implement IWDG/WWDG drivers for STM32WB. Implement generic watchdog test#28

Merged
AlexLanzano merged 1 commit intowolfSSL:mainfrom
AlexLanzano:watchdog
Apr 8, 2026
Merged

Conversation

@AlexLanzano
Copy link
Copy Markdown
Member

No description provided.

@AlexLanzano AlexLanzano self-assigned this Apr 8, 2026
Copilot AI review requested due to automatic review settings April 8, 2026 14:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a generic watchdog abstraction to wolfHAL, adds STM32WB implementations for both IWDG and WWDG, and wires up a hardware test intended to validate watchdog refresh/reset behavior across a reboot.

Changes:

  • Add whal_Watchdog generic API + driver vtable, and include it in the umbrella wolfHAL.h.
  • Implement STM32WB IWDG/WWDG drivers and add STM32WB board integration (device macros, clock/LSI enable).
  • Add a multi-phase watchdog hardware test and hook it into the test runner.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
wolfHAL/wolfHAL.h Exposes watchdog API through the top-level include.
wolfHAL/watchdog/watchdog.h Defines the generic watchdog abstraction + vtable API.
wolfHAL/watchdog/stm32wb_iwdg.h Declares STM32WB IWDG config + driver entry points.
wolfHAL/watchdog/stm32wb_wwdg.h Declares STM32WB WWDG config + driver entry points.
wolfHAL/platform/st/stm32wb55xx.h Adds STM32WB55 watchdog device/clock macros.
wolfHAL/clock/stm32wb_rcc.h Adds RCC API to enable/disable LSI (needed by IWDG).
src/watchdog/watchdog.c Implements generic watchdog call-through wrappers.
src/watchdog/stm32wb_iwdg.c Implements STM32WB IWDG driver.
src/watchdog/stm32wb_wwdg.c Implements STM32WB WWDG driver.
src/clock/stm32wb_rcc.c Implements LSI enable/ready wait logic.
boards/stm32wb55xx_nucleo/Makefile.inc Adds watchdog build flags and sources.
boards/stm32wb55xx_nucleo/board.h Exposes g_whalWatchdog for board/test usage.
boards/stm32wb55xx_nucleo/board.c Instantiates watchdog + enables LSI for IWDG.
tests/watchdog/test_watchdog.c Adds a multi-phase watchdog reset/refresh hardware test.
tests/main.c Adds conditional execution of the watchdog test suite.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…IWDG/WWDG drivers for STM32WB. Implement generic watchdog test
@AlexLanzano AlexLanzano merged commit 4eb5a62 into wolfSSL:main Apr 8, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants