Package Details: stm32cubeide 1.10.1-1

Git Clone URL: (read-only, click to copy)
Package Base: stm32cubeide
Description: Integrated Development Environment for STM32
Upstream URL:
Keywords: arm cortex cortex-m cube cubeide stm32
Licenses: Commercial
Submitter: kumen
Maintainer: kumen
Last Packager: kumen
Votes: 23
Popularity: 0.90
First Submitted: 2019-05-02 15:05 (UTC)
Last Updated: 2022-08-16 16:49 (UTC)

Dependencies (9)

Required by (0)

Sources (3)

Pinned Comments

kumen commented on 2020-08-17 11:22 (UTC)

You must download it manually here: and put it to your home Downloads directory.

Latest Comments

1 2 3 4 5 6 7 Next › Last »

Sabu commented on 2022-09-17 22:25 (UTC)

@xiretza: As shown above in the list of dependencies, you should have xdg-user-dirs installed.

xiretza commented on 2022-09-17 08:14 (UTC) (edited on 2022-09-17 08:18 (UTC) by xiretza)

Fails with:

PKGBUILD: line 19: xdg-user-dir: command not found

Please either remove this whole _DOWNLOADS_DIR logic (PKGBUILDs really aren't supposed to touch anything outside of $srcdir), or at least guard the xdg-user-dir invocation so it doesn't cause errors before makedepends are installed.

oe1tkt commented on 2022-05-27 17:06 (UTC) (edited on 2022-05-27 17:07 (UTC) by oe1tkt)

With v1.9.0, you must

1.) download the software file manually from selecting Generic Linux Installer and install it into the same folder where you find the PKGBUILD. Unfortunately the filename has changed, so additionally you have to edit the PKGBUILD file,

2.) change the line in PKGBUILD to:

3.) makepkg -si

tuankiet65 commented on 2022-03-24 12:20 (UTC)

I don't have a J-Link so I can't say anything about that, sorry.

kumen commented on 2022-03-09 15:58 (UTC) (edited on 2022-03-09 15:58 (UTC) by kumen)

I was thinking about replacing integrated J-link for jlink-software-and-documentation. What do you think about that?
It was working fine in version v1.8.0 of IDE.

kumen commented on 2022-03-09 15:54 (UTC)

@tuankiet65 you are right, I don't know why arm-none-eabi-gdb from IDE need specific version of ncurses. Replacing it by arm-none-eabi-gdb from system was dirty quick fix, because I needed to debug some MCU :) Unfortunately "/" in path to GDB binary was somehow forgotten. I will fix this later today.

tuankiet65 commented on 2022-03-09 06:45 (UTC)

Also, the "Replace GDB by system" is a bit overzealous - it also removes the arm-none-eabi-gdb-add-index and arm-none-eabi-gdb-add-index-py scripts. Since those are just bash scripts, I don't think they should be replaced by the system equivalent (not to mention Arch's arm-none-eabi-gdb doesn't provide the arm-none-eabi-gdb-add-index-py script)

tuankiet65 commented on 2022-03-09 05:43 (UTC) (edited on 2022-03-09 05:43 (UTC) by tuankiet65)

The part to symlink STM32CubeIDE's gdb to system gdb should use absolute part for system gdb:

ln -s /usr/bin/arm-none-eabi-gdb "${pkgdir}/opt/stm32cubeide/plugins/"*/tools/bin
ln -s /usr/bin/arm-none-eabi-gdb-add-index "${pkgdir}/opt/stm32cubeide/plugins/"*/tools/bin

davorvr commented on 2021-11-26 18:38 (UTC)

Here's an edited PKGBUILD for v1.8.0 that worked for me. I did have to manually download the 99-jlink.rules.patch file and place it in the build directory when using makepkg.

# Maintainer: kumen
# Contributor: nightuser <>

pkgdesc="Integrated Development Environment for STM32"
makedepends=('xdg-user-dirs' 'imagemagick')
depends=('java-runtime' 'jlink-software-and-documentation' 'stlink' 'ncurses5-compat-libs' 'glibc' 'libusb' 'webkit2gtk')

if [ ! -f ${PWD}/${_pkg_file_name} ]; then
    if [ -f $_DOWNLOADS_DIR/${_pkg_file_name} ]; then
        ln -sfn $_DOWNLOADS_DIR/${_pkg_file_name} ${PWD}
        msg2 ""
        msg2 "Package not found!"
        msg2 "The package can be downloaded here: ${url}"
        msg2 "Please remember to put a downloaded package ${_pkg_file_name} into the build directory ${PWD} or $_DOWNLOADS_DIR"
        msg2 ""


    mkdir -p build
    sh "${srcdir}/"st-stm32cubeide_${_pkgver_ext} --quiet --noexec --nox11 --target "${srcdir}/build"

    mkdir -p "${srcdir}/build/stlink-server"
    sh "${srcdir}/build/"st-stlink-server.* --quiet --noexec --nox11 --target "${srcdir}/build/stlink-server"

    mkdir -p "${srcdir}/build/stlink-udev"
    sh "${srcdir}/build/"st-stlink-udev-rules-* --quiet --noexec --nox11 --target "${srcdir}/build/stlink-udev"

    mkdir -p "${srcdir}/build/jlink-udev"
    sh "${srcdir}/build/"segger-jlink-udev-rules-* --quiet --noexec --nox11 --target "${srcdir}/build/jlink-udev"

package() {
    cd "$srcdir"

    msg2 'Installing STM32CubeIDE'
    install -d -m755 "${pkgdir}/opt/${pkgname}"
    tar zxf "./build/st-stm32cubeide_${_pkgver_ext}_amd64.tar.gz" -C "${pkgdir}/opt/${pkgname}"

    msg2 'Installing stlink server'
    install -d -m755 "${pkgdir}/usr/bin/"
    cp "${srcdir}/build/stlink-server/stlink-server" "${pkgdir}/usr/bin/"
    chmod 0755 "${pkgdir}/usr/bin/stlink-server"
    chown root:root "${pkgdir}/usr/bin/stlink-server"

    msg2 'Instalation of STlink udev rules skipped'
    #msg2 'Installing STlink udev rules'
    #install -d -m755 "${pkgdir}/usr/lib/udev/rules.d/"
    #install -D -o root -g root -m 644 -t "${pkgdir}/usr/lib/udev/rules.d/" "$srcdir/build/stlink-udev/fileset/"*.rules

    msg2 'Instalation of JLink udev rules skipped'
    #msg2 'Installing JLink udev rules'
    #install -d -m755 "${pkgdir}/usr/lib/udev/rules.d/"
    #install -D -o root -g root -m 644 -t "${pkgdir}/usr/lib/udev/rules.d/" "$srcdir/build/jlink-udev/"*.rules
    #patch -i "${srcdir}/99-jlink.rules.patch" "${pkgdir}/usr/lib/udev/rules.d/99-jlink.rules"

    msg2 'Instalation of binary file'
    install -Dm755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" <<END
/opt/stm32cubeide/stm32cubeide "\$@"

    msg2 'Installing desktop shortcut and icon'
    convert "${pkgdir}/opt/stm32cubeide/icon.xpm" "${srcdir}/${pkgname}.png"
    install -Dm 644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
    install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <<END
[Desktop Entry]
Comment=STM32CubeIDE 1.7.0
Exec=env GDK_BACKEND=x11 stm32cubeide %F

    msg2 'Instalation of license file'
    install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}/"
    install -D -o root -g root -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" "${srcdir}/dm00218346.pdf"

# makepkg --printsrcinfo > .SRCINFO

# vim: set ts=8 sw=8 tw=0 noet:

yjun commented on 2021-08-29 06:08 (UTC) (edited on 2021-08-29 06:09 (UTC) by yjun)

I find the direct link to download 1.7.0 archieve :

and the lastest direct download link could get from, which is like this

<div id="dlLink" data-download-path="/content/ccc/resource/technical/software/sw_development_suite/group0/d5/f6/71/a8/3f/91/40/97/stm32cubeide_lnx/files/"></div>

maybe it is ok to use this URL as source in PKGBUILD instead of local://xx ?