cancel
Showing results for 
Search instead for 
Did you mean: 

Linux install - how to?

PGump.1
Senior

Hi all,

I'm trying to install STM32CubeProgrammer V2.16 on Linux-Suse-Tumbleweed, but I'm having problems:-

I have downloaded and unpacked en.stm32cubeprg-lin-v2-16-0.zip (generic linux).

user@localhost:~/STMicroelectronics/STM32Cube/STM32CubeProgrammer2_16> sudo ./SetupSTM32CubeProgrammer-2.16.0.linux
[sudo] password for root:
./SetupSTM32CubeProgrammer-2.16.0.linux
/home/user/STMicroelectronics/STM32Cube/STM32CubeProgrammer2_16
chdir /home/user/STMicroelectronics/STM32Cube/STM32CubeProgrammer2_16/.
current dir /home/user/STMicroelectronics/STM32Cube/STM32CubeProgrammer2_16
Exec error: No such file or directory

It stops here. Can anyone help?

I have tried it with and without sudo - same result...

Thanking you
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
9 REPLIES 9
PGump.1
Senior

This hasn't improved with STM32CubeProgrammer2_17...

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.

Hi,

I have on my Linux MX (18) installed Programmer 2.15 , (generic linux) , working fine.

So from your error: > No such file or directory

there is a problem with the path , maybe about the rights ...

Check/set rights for the script (-> executable etc. allowed ),

and afair , try : open a shell/console , cd to the directory with the script and start it with its name ...

(starting it from graphical file browser didnt work.)

btw i unpacked the zip to : /home/xxnamexx/STMicroelectronics

If you feel a post has answered your question, please click "Accept as Solution".
PGump.1
Senior

Thanks for your reply.

It might be a bit more fundamental - it seems that my version of linux doesn't have the 'chdir' command. I don't know why I don't have. I'll look into that and see that fixes it...

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.

Try cd ..

+

AI might be: artificial idi.ot ...

🙂

 

If you feel a post has answered your question, please click "Accept as Solution".
PGump.1
Senior

Thanks for your reply @AScha.3 .

How do I get the STM32CubeProgrammer installer to use cd instead of chdir?

Kind regards
Pedro

 

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.

I just asked google..

 

The cd command changes the current directory of a shell process; the Perl chdir function changes the current directory of a Perl process.

 

Essentially both of them do the same thing, but chdir is a POSIX system call while cd is a normal function used in a program which in this case is the shell.

In practice, chdir is called by cd to make the change in directory since the program does not have kernel privileges to do it by itself.

 

So its maybe a problem with the Perl on your system...

If you feel a post has answered your question, please click "Accept as Solution".
Pavel A.
Evangelist III

Many linuxes have several shells. Bash does not have 'chdir' command. But the smaller older dash does. So just check is your 'sh' command mapped to  dash, busybox or whatever.

$ echo $SHELL
/bin/bash
$ chdir
Command 'chdir' not found, did you mean:
command 'hdir' from deb hfsutils (3.2.6-15build2)
.....
$ dash
$ chdir ~
$ type chdir
chdir is a shell builtin

 

PGump.1
Senior

Thanks for the responses.

I'm glad that you all know the difference between cd, chdir and chdir() etc...

user@localhost:~> echo $SHELL
/bin/bash
user@localhost:~> dash

The program 'dash' can be found in following packages:
  * dash [ path: /usr/bin/dash, repository: download.opensuse.org-oss_2 ]
  * dash [ path: /usr/bin/dash, repository: https-download.opensuse.org-1a5919ff ]
  * dash [ path: /usr/bin/dash, repository: https-download.opensuse.org-cb7fe895 ]
  * dash [ path: /usr/bin/dash, repository: https-download.opensuse.org-ddd5b095 ]

Try installing with:
    sudo zypper install <selected_package>
    
user@localhost:~> chdir
 chdir: command not found
user@localhost:~> type chdir
bash: type: chdir: not found

I do have an older version installed V2.10. I can't recall it giving me issues.

Is there a list of dependencies for the STM32CubeProgrammer Installer?

The only feedback it's giving me is :-

chdir /home/user/STMicroelectronics/STM32Cube/STM32CubeProgrammer2_17/.
current dir /home/user/STMicroelectronics/STM32Cube/STM32CubeProgrammer2_17
Exec error: No such file or directory

The folders are good, the permissions are good. Is it the dot it's putting at the end of the line.

Kind regards
Pedro

 

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
Pavel A.
Evangelist III

Unfortunately CubeIDE is not supported on all Linux variants, and lack of support begins right from installation. 

Supported Linux versions are listed in UM2563, System Requirements. The list is quite short.

PavelA_0-1723115288957.png

 

Instead of dash try 'sh'.