Skip to content

arch/arm/stm32f4: fudge STM32F411VE NGPIO so GPIOH is enabled - #20007

Merged
acassis merged 1 commit into
apache:masterfrom
dakejahl:dakejahl/stm32f411ve-ngpio
Aug 30, 2026
Merged

arch/arm/stm32f4: fudge STM32F411VE NGPIO so GPIOH is enabled#20007
acassis merged 1 commit into
apache:masterfrom
dakejahl:dakejahl/stm32f411ve-ngpio

Conversation

@dakejahl

@dakejahl dakejahl commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Found while adding STM32F412VG in #20006: the same STM32_NGPIO 81 / "GPIOA-H" mismatch.

Summary

Set STM32F411VE STM32_NGPIO to 113 so GPIO ports A–H are enabled.

Problem

STM32_NGPIO_PORTS is (N+15)>>4. 81 is the real pin count but yields six ports A–F, so PH0/PH1 cannot be configured and GPIOH clocks/registers are never set up.

Solution

Use 113, matching the F40x 100-pin entries (F405VG/F407VG). That gives eight ports A–H. Enabling unused F/G clocks is harmless.

STM32_NGPIO_PORTS is (N+15)>>4. 81 (the real pin count) yields six
ports A-F, so PH0/PH1 cannot be configured. 113 matches the F40x
100-pin entries and gives A-H.

Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
@dakejahl
dakejahl requested a review from raiden00pl as a code owner August 29, 2026 20:39
@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels Aug 29, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@acassis
acassis merged commit e1ac507 into apache:master Aug 30, 2026
32 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants