Skip to main content

pyflashgui icon: a chip with pins on every side and a flash across it

pyflashgui

CI release PyPI python platform license

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.

pyflashgui on its simulated probe: the Files pane with a firmware file and a read, the memory map under them, the bytes of the read beside them, and the Event Log below

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 .pack file, 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.

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyflashgui 0.2.0
File Size Uploaded Provenance Actions
pyflashgui-0.2.0.tar.gz 420.8 kB With provenance Details for pyflashgui-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyflashgui 0.2.0
File Interpreter ABI Platform Actions
pyflashgui-0.2.0-py3-none-any.whl Python 3 none any Details for pyflashgui-0.2.0-py3-none-any.whl

Total release size: 779.9 kB

Release files / pyflashgui-0.2.0.tar.gz

Download URL pyflashgui-0.2.0.tar.gz
Size 420.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c369fed100caeebb4e27a4a07ead3a2b02281ab60dcf78becb74385dc1522edb
BLAKE2b-256 checksum
How to use checksums
3d8b58b163b5660cad8e4de8dd8c3ea21e58ef0a2cc2997ba14c8822b01a51c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Release files / pyflashgui-0.2.0-py3-none-any.whl

Download URL pyflashgui-0.2.0-py3-none-any.whl
Size 359.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ed5ff43f30d87405e5eb5290cbf02df04efb2c3cd6ec789b56df0118c806aad
BLAKE2b-256 checksum
How to use checksums
9655d3b02222cda1921ed494208b994fae366bfc5c1abd015207d9c58352dbf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Security for pyflashgui 0.2.0

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.

Select from 2 files

Attestation for pyflashgui-0.2.0.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 Oct 17, 2026.

Transparency log

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

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page