Skip to main content
Associate III
October 6, 2023
Solved

Target selection: STM32 target or STM32Cube example selection is required

  • October 6, 2023
  • 13 replies
  • 18395 views

Running on Ubuntu

STM32CubeIDE

Version: 1.13.2

Build: 18220_20230914_1601 (UTC).

Fresh installation but just getting blank page saying "Target selection: STM32 target or STM32Cube example selection is required".

I've:

1. Checked for target selector device database updates

2. Checked for Embedded Software Packages Updates

3. Managed Embedded Software Packages and installed latest package for STMG0

Rebooted etc, but still getting this message and can't get past.

PS: STM32CubeIDE runs fine on Windows 11 connected to target board (Nucleo-64 G071RB)

Best answer by Dabbo

I have found solution. I am not expert, but it appears to be a x11/Wayland problem.

Solved by creating the below file which I called EDS_STM32CubeIDE_1.13.2.desktop and putting it in /usr/share/applications (and using CHMOD +x to make it executable). The key part being "Exec=env GDK BACKEND=x11"

[Desktop Entry]
Name=EDS_STM32CubeIDE
Exec=env GDK_BACKEND=x11 /opt/st/stm32cubeide_1.13.2/stm32cubeide
Type=Application
Icon=/usr/share/applications/teapot.xpm
Categories=Development;

13 replies

Semer CHERNI
ST Employee
October 9, 2023

Hello @Dabbo 

First let me thank you for posting.
Could you provide the exact version of Ubuntu you are using.
Also, could you provide the .log and the ide.log file found under workspace_name/.metadata.

KR,

Semer.

DabboAuthor
Associate III
October 12, 2023

Hi there! I have solved the problem, but fyi I'm using Ubuntu 22.04.3 LTS.

Files are attached. Thanks, Ed

 

Visitor II
October 30, 2023

Even I already described the same problem in https://community.st.com/t5/stm32cubeide-mcus/warning-stm32-target-or-stm32cube-example-section-required/m-p/575613 your solution does not works for me. I tried your Exec= env GDE_BACKEND/KDE_BACKENd=x11 .... .I still get the same error

DabboAuthorBest answer
Associate III
October 12, 2023

I have found solution. I am not expert, but it appears to be a x11/Wayland problem.

Solved by creating the below file which I called EDS_STM32CubeIDE_1.13.2.desktop and putting it in /usr/share/applications (and using CHMOD +x to make it executable). The key part being "Exec=env GDK BACKEND=x11"

[Desktop Entry]
Name=EDS_STM32CubeIDE
Exec=env GDK_BACKEND=x11 /opt/st/stm32cubeide_1.13.2/stm32cubeide
Type=Application
Icon=/usr/share/applications/teapot.xpm
Categories=Development;

Visitor II
November 2, 2023

Is there any solution of my case?

Visitor II
November 3, 2023

I tried to make a fresh install of the recent cubeide and wiped the old file from the disk including the stm related files/folder in my home. Istll have no success!!!!!!!!!!!!!!!!!!!!!

Visitor II
November 4, 2023

Opening cubeide it said: "Cannot determine ..."URI of a earlier opened source file relative to /. It seems that the my cubeide project folder is not prependet.

Visitor II
November 9, 2023

Is there a solution for this. I created an other account on my PC and logged in intio it. This is still no Succes!!!!! I am depressed!!!!!!!!!!!!!!!!!!!!!!!!!!!

Visitor II
November 9, 2023

I installing the latest cubeide on my Laptop gave following result.

I get a select MCU select window although there is still a error noted on the top of the window,

Visitor II
November 29, 2023

I am badi1. The update released today did not solved my Problem

Visitor II
December 10, 2023

As I said before, I do not get to your chosing window.

Visitor II
December 10, 2023

..

Senior
December 12, 2023

Hello @Dabbo @badi1 

unfortunately Wayland is well known to have a lot of issues, and is certainly not a replacement for X11 as of now.

A quick search on Google will make you understand that Wayland is broken and will put down a lot of softwares running in Linux.

@Semer CHERNIthis point is not mentioned at all in the Release Note / User Manual. It should be worth doing it in next release.

Associate II
October 25, 2025

It's 2025 and it's still not working.

"Wayland being well known to have a lot of issues" is not an excuse; I've been using Wayland for more than 5 years, and 95% of the software runs under Wayland really well.

Visitor II
December 20, 2023

This is indeed a Wayland problem. It is solved by starting the IDE by executing the file called stm32cudeide_wayland instead of stm32cubeide that resides in the same folder. This is done by either right clicking the file -> Run as a Program, or by typing ./stm32cubeide_wayland in the terminal.

This works for me on Debian 12 with GNOME 43.9 Wayland.

Explorer
April 17, 2024

This fixed my issue on Ubuntu 22.04.4 LTS running:

STM32CubeIDE
Version: 1.15.0
Build: 20695_20240315_1429 (UTC)
OS: Linux, v.6.5.0-27-generic, x86_64 / gtk 3.24.33
Java vendor: Eclipse Adoptium
Java runtime version: 17.0.8.1+1
Java version: 17.0.8.1

Visitor II
December 30, 2023

I ran into a problem today where the program got stuck on the splash screen and would not start. This was solved my deleting the .metadata folder in my workspace. This is a hidden folder, as indicated by the dot, and you can see it in GUI file manager by Settings -> Show hidden files (Ctrl + H). In terminal you would type ls -a to list all folders including hidden ones, and rm -rf .metadata to delete it.