2024-05-03 01:32 AM
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
Solved! Go to Solution.
2024-05-07 09:37 PM
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.
2024-05-04 12:57 AM
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.
2024-05-04 01:26 AM - edited 2024-05-04 01:29 AM
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 .
2024-05-06 11:41 AM
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
2024-05-07 09:24 AM - edited 2024-05-07 09:25 AM
Seems setting the JAVA_OPTS didn't solve the problem after all. When trying to create another project today the IDE Freeze. When trying to restart the IDE is completely broken and never gets past the splash screen.
2024-05-07 10:01 AM
Just..
>Debian 11.9.0 installation (in virtual machine)
Why this ?
So your PC is on Win - or what ?
2024-05-07 11:06 AM
I do a large number of development projects for different platforms and architectures. I found it convenient to install the build tools into a separate virtual machine for each project. This way I avoid tool and driver conflicts and can archive the VM when the project development is finished and quickly open it again if there is a need for a recompile.
2024-05-07 09:37 PM
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.
2024-05-11 12:11 AM
I got a reply from the ST support : "Unfortunately, the DEB package is "meant for" ubuntu 20.04 or 22.04".
The correct solution is to use the generic installer for Debian.