# 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. Also installable with debian: sudo apt install stm32flash.

## 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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:stm32flash
- **Package manager:** Homebrew
- **Version:** 0.7
- **Source summary:** Open source flash program for STM32 using the ST serial bootloader
- **Homepage:** <https://sourceforge.net/projects/stm32flash/>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- stm32flash (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.7
## 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

## 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.12: normalized package name match | openSUSE Tumbleweed package metadata: stm32flash from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

View the package source record on GitHub. [combined/stm32flash.yml](https://github.com/mxcl/pkgdb/blob/main/combined/stm32flash.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
