Skip to content

Add STM32H5 TFTP client demo#117

Open
dgarske wants to merge 1 commit into
wolfSSL:masterfrom
dgarske:h5_tftp_client
Open

Add STM32H5 TFTP client demo#117
dgarske wants to merge 1 commit into
wolfSSL:masterfrom
dgarske:h5_tftp_client

Conversation

@dgarske
Copy link
Copy Markdown
Member

@dgarske dgarske commented May 12, 2026

No description provided.

@dgarske dgarske self-assigned this May 12, 2026
Copilot AI review requested due to automatic review settings May 12, 2026 16:21
Copy link
Copy Markdown
Contributor

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

Adds an STM32H563-specific TFTP RRQ (GET) client demo that downloads a firmware image at boot and stages it into the wolfBoot update partition, integrating the wolfIP TFTP module into this port’s build and startup flow.

Changes:

  • Introduces tftp_client_demo.c/h implementing UDP transport glue + STM32H5 flash write/erase routines + wolfBoot “update trigger” write.
  • Adds ENABLE_TFTP=1 build option (TZEN=0 only) and wires the demo into main.c boot + poll loop.
  • Documents build/config/host setup and expected output in the port README; adds default server IP / filename in config.h.

Reviewed changes

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

Show a summary per file
File Description
src/port/stm32h563/tftp_client_demo.h Public API for starting/polling/reporting demo transfer status
src/port/stm32h563/tftp_client_demo.c TFTP client integration + flash programming/erase logic + wolfBoot trigger write
src/port/stm32h563/README.md Usage docs for ENABLE_TFTP mode, configuration, and host-side setup
src/port/stm32h563/Makefile Adds ENABLE_TFTP build flag, sources, include path, and TZEN constraint
src/port/stm32h563/main.c Starts the TFTP demo after network init; polls it in the main loop
src/port/stm32h563/config.h Default TFTP_SERVER_IP and TFTP_FETCH_FILENAME settings

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

Comment thread src/port/stm32h563/tftp_client_demo.c
Comment thread src/port/stm32h563/tftp_client_demo.c
Comment thread src/port/stm32h563/tftp_client_demo.c
Comment thread src/port/stm32h563/tftp_client_demo.c
Comment thread src/port/stm32h563/tftp_client_demo.c
Comment thread src/port/stm32h563/tftp_client_demo.c Outdated
@dgarske dgarske assigned danielinux and unassigned dgarske May 12, 2026
@dgarske dgarske requested a review from danielinux May 12, 2026 20:27
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.

3 participants