Skip to main content
MVENN.1
Associate III
November 21, 2020
Solved

How to launch STM32Cubeprogrammer in ubuntu can you please tell me.

  • November 21, 2020
  • 23 replies
  • 11126 views

i am not able to flash the image in stm32mp157c-dk2

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @MVENN.1​ ,

Only the last version 2.6 is supported on Ubuntu 20.04.

And since this version the JRE is bundle inside STM32CubeProgrammer and no longer need extra JRE package.

Olivier

23 replies

KnarfB
Super User
November 21, 2020

There is a detailed description in the wiki. Works fine for me. The latest version 2.6. should also have some improvements.

PatrickF
Technical Moderator
November 23, 2020
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
MVENN.1
MVENN.1Author
Associate III
November 23, 2020

Thanks

I can able to flash the image in SD card through Windows only but only two images screenshots getting.

MVENN.1
MVENN.1Author
Associate III
November 23, 2020

when i am launch through the linux its getting errors this please once check.

Error: Unable to access jarfile /STM32CubeProgrammerLauncher

how to i open STM32Cubeprogramming in ubuntu.

MVENN.1
MVENN.1Author
Associate III
November 23, 2020

moveon@moveon-VirtualBox:/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin$ sudo ./STM32CubeProgrammer

Error: Could not find or load main class com.st.app.Main

moveon@moveon-VirtualBox:/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin$ 

This message i am getting

Olivier GALLIEN
Technical Moderator
November 23, 2020

Hi @MVENN.1​ ,

Which version of Ubuntu are you using ?

You should have a icon on the desktop.

You may have to right click / select "Allow Launching".

Then double click on this should launch CubeProg.

Could you also try to run the CLI for a check ?

Thanks

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MVENN.1
MVENN.1Author
Associate III
November 24, 2020

HI Olivier GALLIEN (ST Employee)

I am using Ubuntu 20.04 version.

on the desktop icon is there but it doesn't open when i am click to "Allow Launching"

it shows like

0693W000005CNwMQAW.jpg0693W000005CNwCQAW.jpgThanks

ArmandG
ST Employee
November 24, 2020

Hi @MVENN.1​ ,

First of all, did you do all these prerequisites:

PC $> sudo apt-get install openjdk-8-jre-headless

PC $> sudo update-alternatives --config java

Select the java-8-openjdk configuration.

PC $> sudo apt purge openjfx

PC $> sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2

PC $> sudo apt-mark hold openjfx libopenjfx-jni libopenjfx-java

Then, did you well choose "$HOME/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-2.5.0" as path when installing the launcher ? And is it working when running "$HOME/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-2.5.0/./STM32CubeProgrammer" ?

Also, does the CLI is working ? (what do you get when running "$HOME/STM32MPU_workspace/STM32MPU-Tools/STM32CubeProgrammer-2.5.0/./STM32_Programmer_CLI")

Armand

Olivier GALLIEN
Olivier GALLIENBest answer
Technical Moderator
November 24, 2020

Hi @MVENN.1​ ,

Only the last version 2.6 is supported on Ubuntu 20.04.

And since this version the JRE is bundle inside STM32CubeProgrammer and no longer need extra JRE package.

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MVENN.1
MVENN.1Author
Associate III
November 24, 2020

Hi Olivier GALLIEN (ST Employee )

Thank you for reply.

I am just installer STM32Cubeprogrammer 2.5.0 version in Ubuntu 20.04

can you please give steps to install the 2.6 version.

Thanks

Olivier GALLIEN
Technical Moderator
November 24, 2020

Hi @MVENN.1​ ,

Download STM32CubePrg-Lin package here : https://www.st.com/en/development-tools/stm32cubeprog.html

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MVENN.1
MVENN.1Author
Associate III
November 24, 2020

Hi Olivier GALLIEN (ST Employee)

Thanks its working fine.

when I launch and connect the device it shows like

I installed USB port also.

MVENN.1
MVENN.1Author
Associate III
November 24, 2020

Hi Olivier GALLIEN (ST Employee)

I can able to install and connecting is ok but when i connect the device it showing like this please once check it.

0693W000005CT41QAG.jpgThank

MVENN.1
MVENN.1Author
Associate III
November 24, 2020

please check i getting this warning

MVENN.1
MVENN.1Author
Associate III
November 24, 2020

0693W000005CTHAQA4.jpg