cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 CUBEMX not starting

kova
Associate II

Hi developers.

I have the same issue as many others, which has been posted already 4-5 times and marked as "solved" in some of them, but it is not at all the case.

The CubeMX on launsching shows the first screen (splash) and then disappears.

It worked a couple of times after intallation, then again after de-installation/reboot/re-installation/reboot.

Watching the Task-Manager it shows a process called "OpenJDK Platform binary" which starts at high CPU and ends up to 0% but with around 200MB RAM reserved. And this can take place many times, collecting a bunch of idle/useless processes. I run it with Windows 10, latest version of JAVA and CUBE at this moment, but with a previous version on both I used to have the same issue.

While unistalling, I try to find every single file I can, so that I delete each trace manually, but every time I re-install it, it still "knows" which was my last opened projects and which uC I use. 

Maybe ST can see it a bit seriously the topic. I suppose I am not the only one trying not to switch to another microcontroller, but if I cannot develop with ST, then I have to move on with my next projects differently.

Thanks for your precious time! 

1 ACCEPTED SOLUTION

Accepted Solutions
kova
Associate II

Hello developers.

As I decided to move on to my next project with a different uC and plattform, some other issues appeared during compilation. After been consulted by my new AI-friend (being always polite, one day it will rule mankind) by sending it the failure-log, it pointed me out that my user folder (and windows profile name) was written in non-latin letters (more specifically in greek) (yes, I am one of them). The compilation issue with the new plattform was corrected along with the CubeMX initialization! Now it opens every time. I will check it a couple days more and mark the ticket as solved.

@MKanc.1I don't know if this is what you meant with your answer, but thanks for replying.

 

Long story short:

- the issue of non initializing CubeMX 95% of the time on my windows computer was the non-latin letters for my user-folder: I created a new user account with (only 2) latin letters and problem solved.
I even didn't need to re-install CubeMX, probably because it was allowed to be used by all users on my other non-latin user-account). .

View solution in original post

8 REPLIES 8

Yes, failing silently is unacceptable. It really needs to provide a breakdown of exactly what's wrong or missing. And probably providing a comprehensive diagnostic, repair and remove option or function.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Souhaib MAZHOUD
ST Employee

Hello @kova 

Are you currently using the latest version of CubeMX 6.13.0?

Thank you,

KR, Souhaib

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.

kova
Associate II

Hello Souhaib, thanks for asking.

My current system:
-CubeMX 6.13.0
-Windows 10, Enterprise
-(java 8u431)

Previously I had on the same laptop
-CubeMX 5.1.0
-(java 8u211)

Just for the story:
I hadn't used Cube since over a year. I started again 1 month ago and this thing happens. I searched the issue online and thought maybe time for an upgrade (which I am not a fan to do so, obvious reasons) and brought it to the latest state. Problem occured again and reinstalled it, worked, stopped working, uninstalled, installed, worked two times and here I am.

Question (don't know if relevant):
how can I delete all traces of Cube when I uninstall? I tried to find evry single folder but every time I reinstall, Cube "knows" my preferences (a good spy). Does it have to do with the registry or with my profile on ST?

Debugging regards

kova
Associate II

Every day I try to start CubeMX 4-5 times and same story: splash screen shows up and disappears..

Except yesterday! I just unexpectally opened.
I don't know how relevant it is, but it did after closing the MozillaFirefox.

Today I tried to replicate this:

open Mozilla->close Mozilla->Cube first attempt failed -> Cube second attempt succeeded

Maybe a coincidence (?)

MKanc.1
Associate III

Java dislikes unsuitable locale settings. Try changing language and running it with a different locale

kova
Associate II

Hello developers.

As I decided to move on to my next project with a different uC and plattform, some other issues appeared during compilation. After been consulted by my new AI-friend (being always polite, one day it will rule mankind) by sending it the failure-log, it pointed me out that my user folder (and windows profile name) was written in non-latin letters (more specifically in greek) (yes, I am one of them). The compilation issue with the new plattform was corrected along with the CubeMX initialization! Now it opens every time. I will check it a couple days more and mark the ticket as solved.

@MKanc.1I don't know if this is what you meant with your answer, but thanks for replying.

 

Long story short:

- the issue of non initializing CubeMX 95% of the time on my windows computer was the non-latin letters for my user-folder: I created a new user account with (only 2) latin letters and problem solved.
I even didn't need to re-install CubeMX, probably because it was allowed to be used by all users on my other non-latin user-account). .

Yes this is locale settings overall STM32 interfaces fail to understand. I had problems with motor control software as well and switched windows language into english.

Solution is simply changing LC_ environment settings with custom values under linux, but i don't know what to modify for windows so switching entirely to english solves problem.


@MKanc.1 wrote:

Yes this is locale settings overall STM32 interfaces fail to understand.


It's not just ST - it's pretty much universal:

https://www.avrfreaks.net/s/topic/a5C3l000000UY8vEAG/t145039?comment=P-1182240

https://www.avrfreaks.net/s/topic/a5C3l000000UXElEAO/t141557?comment=P-1144660

etc, etc, ...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.