pyflashgui
A graphical flash programming tool. It works with any debug probe pyOCD supports, for Arm Cortex-M targets: CMSIS-DAP probes such as the Raspberry Pi Debug Probe, DAPLink, NXP MCU-Link and Atmel-ICE, TI XDS110 and the probes built into many development boards, as well as ST-Link and J-Link. With a J-Link it can also use SEGGER's J-Link Commander, for the many other devices that supports.
Install and run
To install it:
pip install pyflashgui
To run it (python -m pyflashgui does the same):
pyflashgui
To update it:
pip install --upgrade pyflashgui
Python 3.15 on Windows is not supported yet: libraries pyOCD needs there have not been released for 3.15. Use 3.14, 3.13 or 3.12 until they have.
On Linux, Qt needs a system library to draw the window, and Debian, Ubuntu, Linux Mint and the like often leave it out:
sudo apt install libxcb-cursor0
A probe is usable without root on Linux once a udev rule allows it; pyOCD publishes a set of them.
What it does
- Probe and target in a bar across the top: the probe by its serial number, the target by name, the debug clock, and Connect -- through pyOCD, stopping the target or leaving it running.
- Files: ELF, Intel HEX, Motorola S-record and raw binary, in one list with what has been read from a target. A file is read again whenever a build writes it.
- Device packs: every Cortex-M device there is a CMSIS-Pack for, found by part number and installed from inside pyflashgui, with the address each pack comes from -- or added from a
.packfile, for a computer with no internet. - Memory map: where everything ticked will land on the chosen target, how full each flash region is and how much is erased, checked before anything is sent. A file built for another part, or two that write the same addresses, are found here.
- Program and verify in one press, with each half on its own beside it and Program without erasing for flash erased already, Erase of all the flash, some regions or a range, and Reset, by the reset pin or another way where a device needs it.
- Read any range of a target's memory back, shown as addresses, bytes and text, with a search for bytes or text and a way to an address. A read is saved as raw binary, Intel HEX or S-record, can be cropped to what is in use or to a range, and can be programmed like a file.
- Compare any two of them -- what is in the target against the file that should be, or one read against another -- with each difference marked.
- Workspaces: one for each board or project, holding its probe, target, files and layout.
- A Python console with the probe and the target as
flash: read, write RAM, erase, program, verify and reset from a prompt or a script, each call waiting for its answer. File > Run script... runs one, and keeps the last five a click away. - A simulated probe and target, to try all of it with no hardware.
- Help > Diagnostics: how the connection was made, the last operations in order and what pyOCD reported, ready to paste into a bug report.
The manual covers each of these, and is also under Help > Documentation in the application.
Probes and targets
Through pyOCD, any probe it supports, for Arm Cortex-M targets: CMSIS-DAP probes, ST-Link, and J-Link. The targets are those pyOCD has built in and those in CMSIS-Packs, which Tools > pyOCD device packs finds and installs.
Through SEGGER's J-Link Commander, a J-Link reaches the devices beyond Cortex-M that SEGGER's software supports -- Cortex-A and Cortex-R, RISC-V and others. SEGGER's software is not included: install it, and pyflashgui finds it.
The README says which probes need which drivers.
More
Safety notice and licence
pyflashgui talks to real equipment. It is intended only for people trained and experienced in working with microcontrollers, debug probes and the equipment they are part of. It is a tool for development and the bench, and is not meant for production programming.
Erasing and programming replace what a device holds, and cannot be undone. A device given the wrong file, or one that changes its protection or configuration, may not run, and may no longer be reachable through its debug port. Connecting, resetting and reading can stop or restart a device that is running, and with it whatever that device controls.
Like any software, pyflashgui can have faults, so do not rely on it alone to say that a device holds what was meant. Where a mistake could hurt someone or damage equipment, keep a way to stop that equipment within reach.
pyflashgui is provided under the Apache License 2.0, without warranty of any kind.
Metadata
Release files for pyflashgui 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyflashgui-0.2.5.tar.gz | 477.3 kB | With provenance | Details for pyflashgui-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyflashgui-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for pyflashgui-0.2.5-py3-none-any.whl |
Total release size: 895.3 kB
Release files / pyflashgui-0.2.5.tar.gz
| Download URL | pyflashgui-0.2.5.tar.gz |
|---|---|
| Size | 477.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5bc8ff029b94a837d57d9c035cf890c7923eb3a68095efb706afccd16469caa
|
|
BLAKE2b-256 checksum How to use checksums |
aaf1782bb5b3eddc81a6ecdda1e33a49db38477331ea0b092c9f933fc93502ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / pyflashgui-0.2.5-py3-none-any.whl
| Download URL | pyflashgui-0.2.5-py3-none-any.whl |
|---|---|
| Size | 418.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1afed4aac53fcbf5c0143f061b11f79c088a47644db8224bb49e5897c1e07b56
|
|
BLAKE2b-256 checksum How to use checksums |
ff0e083ebc8181274b86aa1d4094a028a4acadb549de6c5784e03cd50446e9be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for pyflashgui 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyflashgui-0.2.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.