Skip to main content
FJons.1
Associate II
May 3, 2024
Solved

Cube IDE 1.15.1 Freeze when creating example project

  • May 3, 2024
  • 8 replies
  • 3681 views

Hi, I am trying to create an example project for my NUCLEO-F401RE board by following the following steps:

1. Completely clean Debian 11.9.0 installation (in virtual machine)

2. Download and install STM32CubeIDE 1.15.1 (STM32CubeIDE-DEB)

3. Launch the IDE and create a C-project for the board. All path and pin settings default.

4. During the project setup process a "Licensing Agreement" window pops up and the IDE freeze (see attached screenshot).

Do you have any suggestion what is going wrong?

thanks
/F

This topic has been closed for replies.
Best answer by FJons.1

Hi, I tried your suggestion and used the generic Linux installer instead of the dedicated Debian, and this works much better!

I created a completely clean VM and installed Debian 11.9.0 (Debian 12 is not shipped with the Python version required by STM32CubeIDE). After installing some missing .so files

    sudo apt-get install libncurses5

I am able to compile and debug project without problem.

8 replies

FJons.1
FJons.1Author
Associate II
May 4, 2024

I suspect something is not correct in the installation script. When launching stm32cubeide using "sudo" I manage to create project and run without problem.

cd /opt/st/stm32cubeide_1.15.1
sudo /opt/st/stm32cubeide_1.15.1/stm32cubeide_wayland %F

But using this method I run into other problems. For example is the web-browser required to view some documents not be launched as root.

AScha.3
Super User
May 4, 2024

Hi,

i have IDE 1.13.1 running on my old Mx18 Linux ...

but i used not deb , but the "generic" version ( Mx is debian based, but deb version not working..).

And on update/new install i had to modify the rights on the top directory (/opt/st -> + all subs ) to allow full user access.

Maybe you should try this .

If you feel a post has answered your question, please click on " Best Answer ".
FJons.1
FJons.1Author
Associate II
May 6, 2024

Hi, thank you very much for the suggestion!

After some more digging I found the problem was related to the java settings.

I used the suggestion on this page: https://stackoverflow.com/questions/23960451/java-system-preferences-under-different-users-in-linux

After creating the .java folders and setting the required permissions I am able to start the IDE using the following command:

 

export JAVA_OPTS="-Djava.util.prefs.systemRoot=/home/user/.java -Djava.util.prefs.userRoot=/home/user/.java/.userPrefs"
/opt/st/stm32cubeide_1.15.1/stm32cubeide_wayland

 

 

I still get some warning messages in the log, but the IDE seems to work anyway also when not root.

Error messages:

 

WARNING: Could not lock System prefs. Unix error code 32525.
May 06, 2024 8:21:11 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
May 06, 2024 8:21:41 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode