cancel
Showing results for 
Search instead for 
Did you mean: 

Problem installing STM32CubeProgrammer on a debian

tanz
Visitor

Debian version:

  debian@sys:~/STM32Prog$ cat /etc/os-release
  PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
  NAME="Debian GNU/Linux"
  VERSION_ID="11"
  VERSION="11 (bullseye)"
  VERSION_CODENAME=bullseye
  ID=debian

Version of  STM32CubeProgrammer -  v.2.18.0

Java version:

  debian@sys-lab1:~/STM32Prog$ java -version
  openjdk version "11.0.25" 2024-10-15
  OpenJDK Runtime Environment (build 11.0.25+9-post-Debian-1deb11u1)
  OpenJDK Server VM (build 11.0.25+9-post-Debian-1deb11u1, mixed mode

 

Problems:

1. Can't run installation per instruction of doc UM2237
    ./sudo SetupSTM32CubeProgrammer-2.18.0.linux

    Invoked the above command resulted in a bunch of 'not found' errors
    eg.    /SetupSTM32CubeProgrammer-2.18.0.linux: 1:ELF: not found

2. Can install a bit further with Java way
    sudo java -jar SetupSTM32CubeProgrammer-2.18.0.exe

    Invoked the above, the process appeared trying to install but presented errors of missing following components:
 

====================
Installation started
Framework: 5.2.2-b7986 (IzPack)
Platform: debian_linux,version=4.14.130MV-socfpga-r2,arch=unknown,symbolicName=null,javaVersion=11.0.25
[ Starting to unpack ]
[ Processing package: Core Files (1/3) ]
[ Processing package: STM32CubeProgrammer (2/3) ]
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Execution Failed


chmod: cannot access '/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/util/../bin/STM32CubeProgrammerLauncher': No such file or directory
chmod: cannot access '/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/util/../bin/STM32CubeProgrammer': No such file or directory
chmod: cannot access '/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/util/../bin/STM32_Programmer_CLI': No such file or directory
chmod: cannot access '/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/util/../bin/STM32_Programmer.sh': No such file or directory

 

Questions:

1. What is the correct installation cmd to install STM32CubeProgrammer on a linux based machine?
    In my case, SetupSTM32CubeProgrammer-2.18.0.exe OR SetupSTM32CubeProgrammer-2.18.0.linux?

2. The errors encountered with missing critical files below, why?  Can they be downloaded directly from a repository somewhere ?
     ../bin/STM32CubeProgrammerLauncher': No such file or directory
      ../bin/STM32CubeProgrammer': No such file or directory
      ./bin/STM32_Programmer_CLI': No such file or directory


Thank you, 
.

 

 

0 REPLIES 0