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.
Search Criteria
Package Details: stm32cubeprog 2.18.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: | 8 |
Popularity: | 0.003601 |
First Submitted: | 2021-01-15 20:39 (UTC) |
Last Updated: | 2024-11-28 13:06 (UTC) |
Dependencies (32)
- at-spi2-core (at-spi2-core-gitAUR)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- cairo (cairo-gitAUR)
- dbus (dbus-gitAUR, dbus-selinuxAUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- freetype2 (freetype2-qdoledAUR, freetype2-macosAUR, freetype2-gitAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- gdk-pixbuf2 (gdk-pixbuf2-gitAUR)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classicAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- krb5 (krb5-gitAUR)
- libdrm (libdrm-gitAUR)
- libglvnd (libglvnd-gitAUR)
- libusb (libusb-gitAUR)
- libx11 (libx11-gitAUR)
- libxcb (libxcb-gitAUR)
- libxext (libxext-gitAUR)
- libxi (libxi-gitAUR)
- libxkbcommon (libxkbcommon-gitAUR)
- libxrender
- libxtst
- libxxf86vm
- pango (pango-gitAUR)
- stlink (stlink-gitAUR)
- wayland (wayland-gitAUR, wayland-asan-gitAUR, wayland-chromiumAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- gsfonts (gsfonts-emojilessAUR) (make)
- icoutils (make)
- java-environment (jdk12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jdk11-jbr-xdgAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, jdk18-openjdkAUR, amazon-corretto-19-binAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jdk-openj9AUR, jdk11-graalvm-ee-binAUR, jdk12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk8-graalvm-ee-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk8-dragonwell-extendedAUR, jdk13-openjdkAUR, jdk15-openjdkAUR, jdk21-graalvm-binAUR, jdk17-jetbrainsAUR, jdk8-openj9-binAUR, jdk-ltsAUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, liberica-nik-24-full-binAUR, jdk21-jetbrains-gitAUR, zulu-17-binAUR, zulu-11-binAUR, zulu-8-binAUR, mandrel-binAUR, mandrel24-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-binAUR, jdk17-graalvm-ee-binAUR, jdk21-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk22-graalvm-binAUR, jdk19-openjdkAUR, jdk17-jetbrains-binAUR, zulu-jdk-fx-binAUR, jabba-binAUR, jdk21-jetbrainsAUR, jdk17-zulu-prime-binAUR, java-openjdk-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, jdk21-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk11-temurinAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk17-temurinAUR, jdk8-temurinAUR, zulu-21-binAUR, jdk-temurinAUR, jdk8AUR, zulu-17-fx-binAUR, jdk8-perfAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jre-jetbrainsAUR, jdk-openjdk-wakefieldAUR, jdk21-openj9-binAUR, zulu-23-binAUR, jdkAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk-android-studioAUR, jdk17-openj9-binAUR, jdk23-graalvm-ee-binAUR, zing-8-binAUR, zing-21-binAUR, java-openjdk-ea-binAUR, jdk21-jetbrains-binAUR, jdk11AUR, openjdk-zulu-ca-fx-binAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, jdk-openj9-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk8-openjdk) (make)
- p7zip (p7zip-natspecAUR, p7zip-full-binAUR, 7zip) (make)
Required by (0)
Sources (6)
CloverGit commented on 2024-12-23 03:24 (UTC)
hannahk commented on 2024-12-23 00:05 (UTC)
==> Validating source files with sha256sums... en.stm32cubeprg-lin-v2-18-0.zip ... FAILED AnalyticsPanelsConsoleHelper.java ... Passed CheckedHelloPorgrammerPanelConsoleHelper.java ... Passed FinishProgrammerPanelConsoleHelper.java ... Passed TargetProgrammerPanelConsoleHelper.java ... Passed SLA0048_STM32CubeProg.pdf ... Passed ==> ERROR: One or more files did not pass the validity check! error: failed to download sources for 'stm32cubeprog-2.18.0-1': error: packages failed to build: stm32cubeprog-2.18.0-1
CloverGit commented on 2024-09-23 01:35 (UTC)
After adding some missing ConsoleHelper implementation and modifying the download link in the last few commits, I believe the previous issues have been resolved, and recommend trying to rebuild with the latest PKGBUILD.
sschueller commented on 2024-09-09 11:37 (UTC)
The version 2.17.0 is currently broken because of two reasons.
-
The download appears to require registration and the workaround doesn't appear to work anymore. Hence the zero byte file.
-
ST removed any option from installing without a GUI: https://community.st.com/t5/stm32cubeprogrammer-mcus/installation-of-stm32cubeprogrammer-without-a-graphical/td-p/695449
There appears to be an internal ticket which requests to fix this.
The only way I was able to install was to download the installer from ST and running it directly going through the GUI install wizard.
HCharacter commented on 2024-07-26 11:46 (UTC) (edited on 2024-07-26 11:47 (UTC) by HCharacter)
I though to give more input why the current stm32cubeprog 2.16.0-2 fails and how I managed to install the application:
I found out that the ZIP file size of en.stm32cubeprg-lin-v2-16-0.zip
was in my case 0 B while the real packet should have been over 280 MB. Thus sha256sum fails.
As @hoe10 suggest, downloading the stm32cubeprog
from ST's website and replacing cached version of the ZIP file with it, yay allows me to build and install the application as now the correct ~280 MB ZIP file exist in yay's build files at ~/.cache/yay/stm32cubeprog/
.
So why it was 0 bytes then? While I was trying to install the packet I tried to do the cleanBuild (in yay this removes pre-downloaded build files from yay's cache and downloads them again) with verbose command yay -Sv stm32cubeprog
, it didn't download the ZIP file at all. Instead I got an error curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
. Google search suggests there is something wrong with HTTP/2 or then it might be the curl syntaxes are missing some key parameters in the PKGBUILD starting at line 41.
I hope this helps someone and gives some light for the maintainers why the packet fails to build.
hoe10 commented on 2024-06-27 17:54 (UTC) (edited on 2024-06-27 18:20 (UTC) by hoe10)
The installation fails with
Validating source files with sha256sums...
en.stm32cubeprg-lin-v2-16-0.zip ... FAILED
...
Workaround was to directly download the zip file from st website and replace the one downloaded by makepkg
. The sha256 matches with the one specified in the PKGBUILD
. Weird and a bit fishy
cribbageSTARSHIP commented on 2024-04-29 17:24 (UTC) (edited on 2024-04-29 17:31 (UTC) by cribbageSTARSHIP)
I had to set it manually to work:
$ sudo archlinux-java set java-8-openjdk
Thanks for maintaining this.
sl1pkn07 commented on 2024-03-28 22:03 (UTC)
nvm. my fault
gretings
sots commented on 2024-03-25 05:57 (UTC)
@GPereira Thanks for the update. I have an additional advice: Arch Linux usually use the latest JDK available on the system to provide the default java environment. I have version 8, 11, 17, 22 installed on my device, and the javac
command uses version 22 by default.
==> 正在开始 build()...
./SetupSTM32CubeProgrammer-2.16.0.linux
/home/sots/.cache/paru/clone/stm32cubeprog/src
chdir /home/sots/.cache/paru/clone/stm32cubeprog/src/.
current dir /home/sots/.cache/paru/clone/stm32cubeprog/src
Command line arguments: -options-auto install.options
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/st/CustomPanels/AnalyticsPanelsConsoleHelper has been compiled by a more recent version of the Java Runtime (class file version 66.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
It is recommended to use archlinux-java-run
to set the JDK version.
prepare() {
JAVA_HOME=$(archlinux-java-run --max 8 --feature jdk --java-home) \
&& "$JAVA_HOME"/bin/javac -cp "Setup${_pkgname}-${pkgver}.exe" -d . AnalyticsPanelsConsoleHelper.java
7z a Setup${_pkgname}-${pkgver}.exe com/st/CustomPanels/AnalyticsPanelsConsoleHelper.class
}
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.