Skip to content

stm32wba: set HPRE5 to divide-by-4 for AHB5 - #961

Open
AlexLanzano wants to merge 1 commit into
wolfSSL:masterfrom
AlexLanzano:stm32wba-fix
Open

AlexLanzano wants to merge 1 commit into
wolfSSL:masterfrom
AlexLanzano:stm32wba-fix

Conversation

@AlexLanzano

Copy link
Copy Markdown
Member

HPRE5 value 0b101 divides by 3 per RM0493, which put HCLK5 at 33.3 MHz with a 100 MHz SYSCLK, above the 32 MHz AHB5 limit. Use 0b110 (divide-by-4) for 25 MHz.

HPRE5 value 0b101 divides by 3 per RM0493, which put HCLK5 at
33.3 MHz with a 100 MHz SYSCLK, above the 32 MHz AHB5 limit. Use
0b110 (divide-by-4) for 25 MHz.
@AlexLanzano AlexLanzano self-assigned this Oct 28, 2026
Copilot AI balanced review requested due to automatic review settings October 28, 2026 20:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the AHB5 prescaler and explanatory comment update.

No open issues 🎉

What changed in this PR

Corrects the STM32WBA55 Nucleo board’s AHB5 prescaler so a 100 MHz system clock produces a 25 MHz AHB5 clock, below the 32 MHz limit.

Changes:

  • Changes HPRE5 from 5 (divide-by-3) to 6 (divide-by-4).
  • Corrects the comment to identify 0b110 as the divide-by-4 encoding.
File Description
hal/​boards/​stm32wba55cg_nucleo/​wolfHAL_board.c Corrects the AHB5 prescaler value and its explanatory comment.

Review effort: Balanced

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