ST have changed the naming scheme of their installation files. Downloading SetupSTM32CubeProgrammer_linux_64.zip and renaming it to en.stm32cubeprg-lin-v2-22-0.zip before running makepkg works.
Search Criteria
Package Details: stm32cubeprog 2.22.0-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/stm32cubeprog.git (read-only, click to copy) |
|---|---|
| Package Base: | stm32cubeprog |
| Description: | An all-in-one multi-OS software tool for programming STM32 products. |
| Upstream URL: | https://www.st.com/en/development-tools/stm32cubeprog.html |
| Keywords: | programmer stm32 |
| Licenses: | custom:SLA0048 |
| Provides: | stm32cubeprogrammer |
| Submitter: | yjun |
| Maintainer: | taotieren (GPereira, akumaexs, CloverGit) |
| Last Packager: | CloverGit |
| Votes: | 12 |
| Popularity: | 0.074879 |
| First Submitted: | 2021-01-15 20:39 (UTC) |
| Last Updated: | 2026-03-01 12:09 (UTC) |
Dependencies (8)
- libusb (libusb-gitAUR)
- qt6-serialport
- stlink (stlink-gitAUR)
- gendesk (make)
- gsfonts (gsfonts-emojilessAUR) (make)
- icoutils (make)
- java-environment (jdk12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, jdk18-openjdkAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jdk-openj9AUR, jdk12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk13-openjdkAUR, jdk15-openjdkAUR, jdk17-jetbrainsAUR, mandrel-binAUR, mandrel24-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk22-graalvm-binAUR, jdk19-openjdkAUR, jdk21-jetbrainsAUR, zulu-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, jdk11-openj9-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk8AUR, jdk23-graalvm-ee-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk24-graalvm-ce-binAUR, jdk8-dragonwell-extendedAUR, jdk23-temurinAUR, zing-23-binAUR, jdk17-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, openjdk-zulu-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, zulu-24-binAUR, liberica-nik-23-full-binAUR, jdk11AUR, liberica-nik-24-full-binAUR, jdk-openj9-binAUR, jdk24-graalvm-binAUR, jdk24-graalvm-ee-binAUR, liberica-nik-25-full-binAUR, amazon-corretto-24-binAUR, jdk8-openj9-binAUR, zulu-21-binAUR, jdk21-jetbrains-gitAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica-full-binAUR, jdk-openjdk-wakefieldAUR, amazon-corretto-15AUR, microsoft-openjdk-21-binAUR, microsoft-openjdk-25-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-11-binAUR, jdk21-graalvm-ee-binAUR, amazon-corretto-25-binAUR, zulu-8-binAUR, zulu-11-binAUR, zulu-25-binAUR, jdk-android-studioAUR, zing-21-binAUR, zing-17-binAUR, zing-8-binAUR, jdk8-perfAUR, jdk25-openjdk-wakefieldAUR, zulu-17-binAUR, jdk25-graalvm-binAUR, jdk25-graalvm-ce-binAUR, jabba-binAUR, zulu-26-fx-binAUR, jdk21-jetbrains-binAUR, liberica-jdk-21-binAUR, jdk16-temurinAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-25-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk25-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk22-openjdkAUR, jdk23-openjdkAUR, jdk24-openjdkAUR, jdk17-graalvm-ee-binAUR, zulu-17-fx-binAUR, jdk25-openj9-binAUR, jdk11-temurinAUR, jdk17-openj9-binAUR, jdk21-openj9-binAUR, liberica-jdk-11-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-17-full-binAUR, jdk11-graalvm-ee-binAUR, jdk8-graalvm-ee-binAUR, jdk8-temurinAUR, jdk21-graalvm-binAUR, jdk-temurinAUR, amazon-corretto-11AUR, amazon-corretto-8AUR, sapmachine11-jdkAUR, sapmachine17-jdkAUR, zulu8-fx-binAUR, zulu21-fx-binAUR, zulu-jdk-fx-binAUR, jre-jetbrainsAUR, jdkAUR, jdk-ltsAUR, java-openjdk-ea-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk25-openjdk, jdk8-openjdk) (make)
- p7zip (p7zip-natspecAUR, 7zip-natspecAUR, p7zip-full-binAUR, 7zip-zstd-binAUR, 7zip-zstdAUR, 7zip) (make)
Required by (0)
Sources (7)
cartogan commented on 2026-04-29 05:33 (UTC)
Gumminess7654 commented on 2026-03-01 23:33 (UTC)
I had some issues where the STM32CubeProgrammer script in /opt/stm32cubeprog/bin didn't follow the symlink correctly when executed from the symlink in /usr/bin.
I solved it with the following patch:
diff --git a/STM32CubeProgrammer b/STM32CubeProgrammerFixed
index 4ca90bc..af24023 100755
--- a/STM32CubeProgrammer
+++ b/STM32CubeProgrammerFixed
@@ -1,5 +1,5 @@
#!/bin/bash
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR="$( cd "$( dirname $( realpath "${BASH_SOURCE[0]}") )" && pwd )"
export LD_LIBRARY_PATH="$DIR/../lib:$LD_LIBRARY_PATH"
cd "$DIR"
-GDK_BACKEND=x11 "$DIR"/jre/bin/java -Djdk.gtk.version=2 -jar "$DIR/STM32CubeProgrammerLauncher" 2>/dev/null
\ No newline at end of file
+GDK_BACKEND=x11 "$DIR"/jre/bin/java -Djdk.gtk.version=2 -jar "$DIR/STM32CubeProgrammerLauncher" 2>/dev/null
abody commented on 2026-02-28 22:35 (UTC)
2.22 fixes the flash loader cannot be loaded bug on Linux
abody commented on 2026-02-28 22:32 (UTC) (edited on 2026-02-28 22:33 (UTC) by abody)
diff --git a/PKGBUILD b/PKGBUILD
index 9aea9bd..beb66b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
pkgname=stm32cubeprog
_pkgname="STM32CubeProgrammer"
-pkgver=2.21.0
+pkgver=2.22.0
pkgrel=1
pkgdesc="An all-in-one multi-OS software tool for programming STM32 products."
arch=('x86_64')
@@ -64,7 +64,7 @@ source=("${_pkg_file_name}::$_download_path"
"TargetProgrammerPanelConsoleHelper.java"
"SLA0048_STM32CubeProg.pdf")
-sha256sums=('85e35c46793b2f65f7d19cc06e593cabfbbd459e970d58fb962460a918697af2'
+sha256sums=('fffa017abb4da14582e129aa9a1e4f87e6d0719a3cb950c0184f4cb48ab60aa7'
'4fc6f177425adbd491cbb7326969a4e77a78588c30e674a1e3455981ad523c40'
'12f3f8a3301d6f50c00195f9c852e25f8d841246768bf3bbfd4e91fd2052ce6e'
'8775375cfd21848eafb92bc11712b2d797bbec4f0109e728c175c4abb014131c'
stefluik commented on 2026-01-11 14:40 (UTC)
I just installed the package and got following issues: - got problems during installation. I copied the downloaded zip into the cache directory and installation worked. - after that, I couldn't start the application from menu and by CL - I installed the original from zip over the existing application and I could start it
marceljoseph commented on 2025-10-14 09:55 (UTC)
@mrechte I had the same problem and this worked for me: https://stackoverflow.com/questions/78850472/stm32cubeprogrammer-flash-loader-cannot-be-loaded
mrechte commented on 2025-10-11 16:05 (UTC)
Hello. When I connect to the device, I get the message "stm32cubeprog error: flash loader cannot be loaded FlashLoaderPath = /opt/stm32cubprog/bin/FlashLoader/Ox". This same program used to work a few months ago (2.18 and 2.20 gives the same error). To use this prog, I had to switch to Xorg. Now there is no more choice. Would this problem be linked to Wayland ?
kjkent commented on 2025-07-26 00:59 (UTC)
@fermentedfly see the pinned comment from Dec 2024 ;).
For anyone using an AUR helper (e.g., yay (I know they're not officially supported)) you can follow the upstream URL to download and move the downloaded file to ~/.cache/yay/stm32cubeprog/en.stm32cubeprg-lin-v2-20-0.zip and rerun the install. Change version/filename as necessary per the PKGBUILD.
fermentedfly commented on 2025-07-17 07:49 (UTC) (edited on 2025-07-17 07:49 (UTC) by fermentedfly)
makepkg fails due to bad shasum for en.stm32cubeprg-lin-v2-20-0.zip.
It seems the download from st.com results in a HTTP 401 error.
Manually downloading "stm32cubeprg-lin-v2-20-0.zip" from ST (login required) and placing it in the build folder as "en.stm32cubeprg-lin-v2-20-0.zip" mitigates the problem.
Pinned Comments
CloverGit commented on 2024-12-23 03:24 (UTC)
ST has modified their website, and now you must add the cookie in the request header to download files. Until this issue is resolved, please download the en.stm32cubeprg-lin-v${VERSION}.zip via the browser and then use
makepkgto manually package it.