Skip to content

stm32h563: add BOARD=stm32h573i_dk for the STM32H573I-DK - #205

Merged
mattia-moffa merged 1 commit into
wolfSSL:masterfrom
dgarske:stm32h573i_dk
Dec 3, 2026
Merged

mattia-moffa merged 1 commit into
wolfSSL:masterfrom
dgarske:stm32h573i_dk

Conversation

@dgarske

@dgarske dgarske commented Dec 2, 2026

Copy link
Copy Markdown
Member

Adds a board option to the bare-metal STM32H563 port so it runs on the STM32H573I-DK. The two boards differ in two places for this port: the ST-LINK console is USART1 on PA9 instead of USART3 on PD8, and ETH_TXD1 is PG12 instead of PB15. The other RMII pins and the LED are the same.

What it adds

  • src/port/stm32h563/Makefile - BOARD=stm32h573i_dk adds -DBOARD_STM32H573I_DK; rejected with TZEN=1
  • src/port/stm32h563/main.c - debug UART base, clock enable and TX pin selected by board; TXD1 pin selected by board
  • src/port/stm32h563/README.md - build instructions for the board

The default build is unchanged: app.bin is byte-identical before and after.

Hardware / test status

Validated on an STM32H573I-DK with TrustZone disabled: link up, DHCP, ping, TCP echo, the TLS 1.3 echo server, HTTPS, SSH and the MQTT broker over TLS, each exercised from a host on the same network.

Scope

TZEN=1 and the wolfHAL backend are not covered for this board. The port still uses software crypto; the hardware AES, HASH and PKA of the H573 are not enabled here.

Copilot AI balanced review requested due to automatic review settings December 2, 2026 19:09

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.

🟡 Changes recommended

Changing BOARD can reuse stale objects and firmware, leaving the wrong board’s pins selected because the build does not track board selection as a prerequisite.

1 open issue
What changed in this PR

Adds STM32H573I-DK support to the existing STM32H563 bare-metal port while preserving the default NUCLEO pinout.

Changes:

  • Adds BOARD=stm32h573i_dk, rejecting TrustZone-enabled builds.
  • Selects USART1/PA9 for the console and PG12 for Ethernet TXD1.
  • Documents the board-specific build command.
File Description
src/​port/​stm32h563/​README.md Documents DK support and build instructions.
src/​port/​stm32h563/​Makefile Adds board selection and TrustZone restriction.
src/​port/​stm32h563/​main.c Selects board-specific UART and Ethernet pins.

Review effort: Balanced

Comment thread src/port/stm32h563/Makefile Resolved
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

stm32h563-freertos-https

  • FLASH: .text -656 B (-0.2%, 283,796 B / 2,064,384 B, total: 14% used)

stm32h563-full

  • FLASH: .text -688 B (-0.2%, 355,500 B / 2,064,384 B, total: 17% used)

stm32h563-https

  • FLASH: .text -656 B (-0.2%, 280,876 B / 2,064,384 B, total: 14% used)

stm32h563-tzen-ssh

  • FLASH: .text -688 B (-0.2%, 320,268 B / 654,336 B, total: 49% used)

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@dgarske dgarske self-assigned this Dec 2, 2026
@mattia-moffa
mattia-moffa merged commit 250e0ca into wolfSSL:master Dec 3, 2026
51 of 52 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.

4 participants