From 901d328e59e09bc453c3f0a9aa6287b2b232c54d Mon Sep 17 00:00:00 2001 From: Lothar Felten Date: Mon, 28 Jul 2025 12:00:22 +0200 Subject: [PATCH] hosttools: add stm32flash Add stm32flash utility to hosttools. It's a small open source tool to flash STM32 MCUs using the serial bootloader. Signed-off-by: Lothar Felten --- README.md | 1 + .../recipes-hosttools/stm32flash/stm32flash_git.bb | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 meta-zephyr-sdk/recipes-hosttools/stm32flash/stm32flash_git.bb diff --git a/README.md b/README.md index d4f6cc4b..1300576d 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ The following host tools are available as part of the Zephyr SDK: - OpenOCD - QEMU - Xilinx QEMU +- stm32flash ## Releases diff --git a/meta-zephyr-sdk/recipes-hosttools/stm32flash/stm32flash_git.bb b/meta-zephyr-sdk/recipes-hosttools/stm32flash/stm32flash_git.bb new file mode 100644 index 00000000..dcb6c00e --- /dev/null +++ b/meta-zephyr-sdk/recipes-hosttools/stm32flash/stm32flash_git.bb @@ -0,0 +1,13 @@ +SUMMARY = "Open source flash program using STM32 ARM microcontrollers using the built-in ST serial bootloader" +HOMEPAGE = "https://sourceforge.net/projects/stm32flash/" +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz" +SRCREV = "b89d626c64d8674e2a8b767915e0c6fd51ac8147" + +S = "${WORKDIR}/${BPN}" + +do_install() { + oe_runmake install DESTDIR=${D} PREFIX=${prefix} +}