Package Details: stm32cubeprog 2.17.0-2

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: taotieren
Votes: 8
Popularity: 0.015616
First Submitted: 2021-01-15 20:39 (UTC)
Last Updated: 2024-09-09 07:27 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

xiretza commented on 2023-03-12 17:31 (UTC)

@GPereira: as commented multiple times, the installer needs to be run in xvfb to work in a clean chroot (or use the alternative build flow suggested by @DCNick3).

DCNick3 commented on 2023-03-08 21:24 (UTC) (edited on 2023-03-08 21:24 (UTC) by DCNick3)

I still get this. Is there any way that my pc keeps old stuff and didn't understand the new update?

@angelosn I don't think the problem is because of a stale file, it's failing in the same way for me

angelosn commented on 2023-03-08 21:15 (UTC) (edited on 2023-03-08 21:16 (UTC) by angelosn)

I still get this. Is there any way that my pc keeps old stuff and didn't understand the new update?

==> Starting package()... cp: cannot stat '/home/angel/.cache/yay/stm32cubeprog/src/build/*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... -> error making: stm32cubeprog

DCNick3 commented on 2023-03-08 21:14 (UTC) (edited on 2023-03-08 21:22 (UTC) by DCNick3)

Btw, I have found a less fiddly way to extract the files.

The installer is built with IzPack.

The "real" part of the installer is located in the .exe file, which has a jar file embedded into it. The linux executable is just a wrapper around it.

The installer already has support for automatic installs, but it doesn't work because of an ST's custom panel (AnalyticsPanels) asking to accept the usage of telemetry lacking the support for console installation mode.

It is possible to add such support by adding another class with the name AnalyticsPanelsConsoleHelper

Here's an archive with such a class: https://files.catbox.moe/o7kz0e.zip (source included, compiled with java8 with SetupSTM32CubeProgrammer-2.13.0.exe in the class path)

It can be injected into the installer by putting it into com/st/CustomPanels directory and using 7z: 7z a SetupSTM32CubeProgrammer-2.13.0.exe com/st/CustomPanels/AnalyticsPanelsConsoleHelper.class (the directory hoops required because it needs to be put into specific directory in the jar)

After this the linux installer can be using in an "auto" mode:

echo "INSTALL_PATH=${srcdir}/build" > install.options
./Setup${_pkgname}-${pkgver}.linux -options-auto install.options

Here's PoC PKGBUILD for this: https://gist.github.com/DCNick3/289e3e5d191008a036c5303ef7426168 (needs the .class from above)

DCNick3 commented on 2023-03-08 18:19 (UTC)

xvfb is added back, let us know if you still have issues

Doesn't seem to be the case, still commented out for me

GPereira commented on 2023-03-08 11:54 (UTC)

The download is now fixed and mouse positions of the installer updated!

GPereira commented on 2023-03-08 11:00 (UTC) (edited on 2023-03-08 11:01 (UTC) by GPereira)

@angelosn @zkrx @Leafar I've pushed a new version and seems to be working ok, please check and let us know.

@justinkb @xiretza @DCNick3 xvfb is added back, let us know if you still have issues

angelosn commented on 2023-02-17 21:53 (UTC) (edited on 2023-02-17 21:56 (UTC) by angelosn)

Hi, The installation continues and says it finished but in the terminal I see those lines. In my menu I have 2 versions installed. 2.11.0 and 2.12.0

==> Starting package()... cp: cannot stat '/home/USER/.cache/yay/stm32cubeprog/src/build/*': No such file or directory ==> ERROR: A failure occurred in package(). Aborting... -> error making: stm32cubeprog

barskern commented on 2023-02-15 15:07 (UTC)

@zkrx for me it works to manually download the source file from st.com with a browser. I.e. click on the link (https://www.st.com/content/ccc/resource/technical/software/utility/group0/2c/71/de/d9/d5/2f/4f/4c/stm32cubeprg-lin-v2-12-0/files/stm32cubeprg-lin-v2-12-0.zip/jcr:content/translations/en.stm32cubeprg-lin-v2-12-0.zip) manually. It might be that st.com doesn't allow "robots"/curl to download files.