# 使用 Homebrew, apk, apt, MacPorts, Nix, zypper 安装 stm32flash

查看 stm32flash 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stm32flash
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stm32flash
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: stm32flash from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:stm32flash
- **软件包管理器:** Homebrew
- **版本:** 0.7
- **来源摘要:** Open source flash program for STM32 using the ST serial bootloader
- **主页:** <https://sourceforge.net/projects/stm32flash/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- stm32flash (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.7
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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)


## 来源

- 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
