# Install stm32flash with Homebrew, apk, apt, MacPorts, Nix, zypper

Open source flash program for STM32 using the ST serial bootloader. Version 0.7 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:stm32flash
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install stm32flash
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stm32flash
```

  Evidence: MacPorts ports tree: devel/stm32flash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add stm32flash
```

  Evidence: Alpine Linux edge package indexes: stm32flash from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install stm32flash
```

  Evidence: Debian stable package indexes: stm32flash from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#stm32flash
```

  Evidence: nixpkgs package indexes: pkgs/by-name/st/stm32flash/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install stm32flash
```

  Evidence: openSUSE Tumbleweed package metadata: stm32flash from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:stm32flash
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stm32flash>
- **Version:** 0.7
- **Source summary:** Open source flash program for STM32 using the ST serial bootloader
- **Homepage:** <https://sourceforge.net/projects/stm32flash/>
- **Repository:** <https://sourceforge.net/p/stm32flash/code>
- **Upstream docs:** <https://sourceforge.net/p/stm32flash/wiki/Home>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://downloads.sourceforge.net/project/stm32flash/stm32flash-0.7.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- stm32flash (cli)
- stm32flash (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.7
- Local data: ok
- Upstream repository: https://sourceforge.net/projects/stm32flash/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

stm32flash is an open source cross-platform flashing utility for STM32 ARM microcontrollers using the built-in ST serial bootloader over UART or I2C. Its history is small but useful: it is the serial-bootloader counterpart to USB ST-LINK tools.

### Project history

The official SourceForge wiki says stm32flash was originally written by Geoffrey McRae and has been maintained by Tormod Volden since 2012. The same page identifies the SourceForge Git repository as the code host and also notes a GitLab mirror.

### Adoption history

The SourceForge wiki documents release downloads and version 0.7 released on 2022-03-26. The input package metadata lists availability in Homebrew, Debian, MacPorts, Nix, Ubuntu, Alpine, and openSUSE-related package managers, showing that it remains packaged for embedded workflows.

### How it is used

Users run stm32flash against a tty or I2C device to identify devices, read or write flash or RAM, verify writes, erase pages, start execution at an address, reset on exit, and optionally use GPIO sequences to enter bootloader mode.

### Why package nerds care

Package nerds care because stm32flash is a minimal C-style command-line utility for boards that expose the ROM bootloader through common serial adapters. It packages the kind of hardware recovery and firmware-flashing workflow that developers want available from a distro or Homebrew install.

### Timeline

- 2012: Tormod Volden became maintainer according to the official SourceForge wiki.
- 2022: stm32flash 0.7 was released on 2022-03-26 according to the official wiki.
- 2020s: The official wiki documents UART and I2C transports, SourceForge Git hosting, and a GitLab mirror.

### Related projects

- STMicroelectronics STM32 microcontrollers are the target devices.
- ST serial bootloader protocols are the communication basis.
- stlink is a related STM32 flashing/debugging package for ST-LINK hardware rather than the serial bootloader path.

### Sources

- <https://sourceforge.net/p/stm32flash/code>
- <https://sourceforge.net/p/stm32flash/wiki/Home/>
- <https://stm32flash.sourceforge.net/stm32flash-manual.pdf>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** stm32flash
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - stm32flash - 0.7-1: normalized package name match | Debian stable package indexes: stm32flash from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | STM32 chip flashing utility using a serial bootloader | http://stm32flash.sourceforge.net/
- Nix - stm32flash: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stm32flash/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - stm32flash - 0.7-1: normalized package name match | Ubuntu 24.04 LTS package indexes: stm32flash from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | STM32 chip flashing utility using a serial bootloader | http://stm32flash.sourceforge.net/
- apk - stm32flash - 0.7-r0: normalized package name match | Alpine Linux edge package indexes: stm32flash from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Flash STM32 ARM SoCs using built-in ST serial bootloader over UART or I2C | https://sourceforge.net/p/stm32flash/wiki/Home/
- apk - stm32flash-doc - 0.7-r0: normalized package name match | Alpine Linux edge package indexes: stm32flash-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Flash STM32 ARM SoCs using built-in ST serial bootloader over UART or I2C (documentation) | https://sourceforge.net/p/stm32flash/wiki/Home/
- zypper - stm32flash - 0.7-1.10: normalized package name match | openSUSE Tumbleweed package metadata: stm32flash from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Flash Program for the STM32 Bootloader | https://sourceforge.net/p/stm32flash/wiki/Home
- MacPorts - stm32flash: normalized package name match | MacPorts ports tree: devel/stm32flash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [stlink](https://www.automicvault.com/pkg/brew/stlink/) - Shares av.db curated category or tags: cli, developer-tools, embedded, firmware-flashing, stm32.
- [jaguar](https://www.automicvault.com/pkg/brew/jaguar/) - Shares av.db curated category or tags: cli, developer-tools, embedded, microcontrollers.
- [lm4tools](https://www.automicvault.com/pkg/brew/lm4tools/) - Shares av.db curated category or tags: cli, developer-tools, embedded, microcontrollers.
- [mspdebug](https://www.automicvault.com/pkg/brew/mspdebug/) - Shares av.db curated category or tags: cli, developer-tools, embedded, microcontrollers.
- [probe-rs-tools](https://www.automicvault.com/pkg/brew/probe-rs-tools/) - Shares av.db curated category or tags: cli, developer-tools, embedded, microcontrollers.
- [bossa](https://www.automicvault.com/pkg/brew/bossa/) - Shares av.db curated category or tags: cli, developer-tools, embedded.
- [elf2uf2-rs](https://www.automicvault.com/pkg/brew/elf2uf2-rs/) - Shares av.db curated category or tags: cli, developer-tools, embedded.
- [espflash](https://www.automicvault.com/pkg/brew/espflash/) - Shares av.db curated category or tags: cli, developer-tools, embedded.
- [gpsim](https://www.automicvault.com/pkg/brew/gpsim/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, embedded, microcontrollers.
- [gputils](https://www.automicvault.com/pkg/brew/gputils/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, embedded.

## Combined YAML source

View the package source record on GitHub. [combined/stm32flash.yml](https://github.com/automic-vault/db/blob/main/combined/stm32flash.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
