Package Details: stm32cubeprog 2.22.0-1

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)

Required by (0)

Sources (7)

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 makepkg to manually package it.

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

cartogan commented on 2026-04-29 05:33 (UTC)

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.

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.