cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX hangs on ''Clock Configuration'' tab hanging the whole system

Ildar Mulyukov
Associate II
Posted on February 17, 2017 at 04:44

Hi! I'm using Linux x86_64 with OpenJDK 64-Bit Server VM (build 25.71-b15, mixed mode). The versions affected: 4.19.0, 4.18.0

When I start STM32CubeMX and create a project, everything is fine. But if I click the 'Clock Configuration' tab, the whole X11 session freezes.

Please drop me any idea how to get more info: traces, debug, anything?

#cubemx
29 REPLIES 29
Posted on March 01, 2017 at 15:21

I have tried another experiment.

I have downloaded and install, on a virtual machine, alt-kworkstation-8.1 distribution.

the info center shows ALT-8.1, and java -version returns openjdk 1.8.0_71.

I have download and install CubeMX, and the good news is that it works fine.

The installation went well. I have created a project, and play with all tabs, save and generate a code.

It looks ok in my side.

Then I check /mnt directory, and it is empty.

Usually, on a linux distrib, the /mnt directory is to mount a network drive.

could you type mount command ?

To be sure, can you remove any network cable, or wifi connection, and test the presence of that directory ?

Have you tried to install on a local directory, like in your $HOME ?

Kind regards

Sirma

Posted on March 01, 2017 at 15:53

Usually, on a linux distrib, the /mnt directory is to mount a network drive.

Not exactly.

This is the default mounting location for any non-removable media, not just net-mounted filesystems.

For example, I use to have dual-boot systems, where the Windows partition(s) end up there when mounted.

Posted on March 01, 2017 at 17:45

My bad, you are absolutely right /mnt is usualy the path used to mount any non-removable media.

mount will shows which device is mounted here.

Posted on March 28, 2017 at 10:47

Hello Ildar,

Do you have any news ?

Kind regards

Sirma

Posted on March 28, 2017 at 11:03

Hi, Sirma!

Do you have any news for me? I don't.

I've sent you the log and it didn't help (I hoped, but

:(

). Before that I wrote:

As for the VisualVM, I don't think it can help, as the whole UI with X.org just hangs. I still can access text consoles, but not the GUI.

Can developers advise something to trace what makes GUI hang?

Thanks and regards, Ildar

Posted on April 14, 2017 at 15:48

Hello Ildar,

From Linux user perspective, I would advise to look at dmesg, ot memory consuption in the working console.

Another things is to kill the java vm and related applications, by kill -9 <pid>, on the working console, and see if the graphic console is coming back to life.

Kind regards

Sirma

Posted on April 18, 2017 at 08:42

Sirma,

kernel level is fine. Killing java from the text console indeed brings things back again. That's why I exactly wrote that it is the Java application what hangs the GUI.

I'm not familiar with Java tracing techniques so asking developers etc.

Still no good ideas for this?

Sirma Siang
ST Employee
Posted on July 06, 2017 at 11:38

Hello Ildar,

It is quite difficult to understand what could go wrong in your config.

I do not beleave that the java VM could be the cause of your graphic hang.

And every config I can test, works well in my side.

I would like to dig into the presence of the win-apps directory in your system.

I feel you are running cube like a windows application using wine, or... ?

CubeMX can run as a Linux native application.

Have you tried to 

download the installation zip and run 'java -jar <path/SetupSTM32CubeMX-xxx.exe', then select a local path (the exe here is just a file container) ?

Kind regards

Sirma

Posted on February 26, 2018 at 13:04

I had a similar issue on windows (CubeMX 4.24.0), where a project didnt open anymore. Just for fun I edited the .ioc file manually and deleted all lines starting with 'RCC.'. Then I could open the project again.

Here some context information of my 'corrupt' .ioc file.

PCC.MCU=STM32L051K(6-8)Ux

PCC.PartNumber=STM32L051K8Ux

PCC.Seq0=0

PCC.Series=STM32L0

PCC.Temperature=25

PCC.Vdd=null

PinOutPanel.RotationAngle=0

RCC.AHBFreq_Value=8000000

RCC.APB1Freq_Value=8000000

RCC.APB1TimFreq_Value=8000000

RCC.APB2Freq_Value=2097000

RCC.APB2TimFreq_Value=2097000

RCC.CECFreq_Value=32786.88524590164

RCC.FCLKCortexFreq_Value=8000000

RCC.FamilyName=M

RCC.HCLKFreq_Value=8000000

RCC.HSI16_VALUE=16000000

RCC.HSICECFreq_Value=32786.88524590164

RCC.HSI_VALUE=16000000

RCC.I2C1Freq_Value=2097000

RCC.I2SFreq_Value=8000000

RCC.IPParameters=AHBFreq_Value,APB1Freq_Value,APB1TimFreq_Value,APB2Freq_Value,APB2TimFreq_Value,CECFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSI16_VALUE,HSICECFreq_Value,HSI_VALUE,I2C1Freq_Value,I2SFreq_Value,LPTIMFreq_Value,LSE_VALUE,LSI_VALUE,MCOFreq_Value,MSI_VALUE,PLLCLKFreq_Value,PLLMCOFreq_Value,PLLMUL,PWRFreq_Value,RTCFreq_Value,SYSCLKFreq_VALUE,TIMFreq_Value,TimSysFreq_Value,USART1Freq_Value,USART2Freq_Value,VCOOutput2Freq_Value,VCOOutputFreq_Value,WatchDogFreq_Value

RCC.LPTIMFreq_Value=2097000

RCC.LSE_VALUE=32768

RCC.LSI_VALUE=37000

RCC.MCOFreq_Value=8000000

RCC.MSI_VALUE=2097000

RCC.PLLCLKFreq_Value=32000000

RCC.PLLMCOFreq_Value=16000000

RCC.PLLMUL=RCC_PLL_MUL8

RCC.PWRFreq_Value=2097000

RCC.RTCFreq_Value=37000

RCC.SYSCLKFreq_VALUE=8000000

RCC.TIMFreq_Value=2097000

RCC.TimSysFreq_Value=8000000

RCC.USART1Freq_Value=8000000

RCC.USART2Freq_Value=2097000

RCC.VCOOutput2Freq_Value=4000000

RCC.VCOOutputFreq_Value=48000000

RCC.WatchDogFreq_Value=37000
Posted on February 26, 2018 at 13:16

 ,

 ,

I don't know if this would preserve the error but you could try save the project before changing to 'Clock Configuration' and paste the complete content of the file for the experts here.

see also my problem

 ,