cancel
Showing results for 
Search instead for 
Did you mean: 

New CubeMX install on Ubuntu

LJB
Associate

Hi. Newby question about my STM32CubeMX (6.14.0) installation on Ubuntu. With the initial 'update', why do I get so many...

:
2025-03-31 14:17:40,313 [INFO] WebApp:194 - Connection lost
2025-03-31 14:17:40,865 [INFO] WebApp:191 - Connection restablished

...messages on the console? Is this normal? Its being going on for hours now !!!!
(I have a good fiber connection to the internet)

Thanks for your time
LeonB


Followed step described in the readme as close as possible:

On Linux®:

  • On STM32CubeMX-Lin line, click "Get software" to download the package.
  • Extract (unzip) the downloaded package.
  • Make sure you have administrator rights to access the target installation directory. You can run the installation as root (or sudo) to install STM32CubeMX in shared directories.
  • Do chmod 777 SetupSTM32CubeMX-6.14.0 to change the properties, so that the file is executable.
  • Double-click on the SetupSTM32CubeMX-6.14.0 file, or launch it from the console window.

I did not do the last step but instead started the app with:
$ sudo /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX

4 REPLIES 4
Ozone
Lead III

I am not a Cube user...

> $ sudo /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX

For several reason, I would avoid running normal user space applications as root.
They should never require such privileges.

Installation is a different matter.

> 2025-03-31 14:17:40,313 [INFO] WebApp:194 - Connection lost
> 2025-03-31 14:17:40,865 [INFO] WebApp:191 - Connection restablished

Especially considering the frequent hick-ups and issues on this forum (especially with logging in), this might be a problem on the other side - at ST.
Or poor design that can't deal with well with networking latencies.

Apart from that, I don't trust any application which regularly phones home at runtime, for no apparent reason.
Or an IDE with "web-apps" which could be done equally well or better locally.


And on a side note ...

> Do chmod 777 SetupSTM32CubeMX-6.14.0 to change the properties, so that the file is executable.

From the readme file, I suppose. This is bad style, as it grants blanket right to everybody.
I would do chmod +x <file> instead.

Yes, I had the same concerns, but doing the correct way do not solve this problem. Sigh.

> 2025-03-31 14:17:40,313 [INFO] WebApp:194 - Connection lost
> 2025-03-31 14:17:40,865 [INFO] WebApp:191 - Connection restablished

As you can see, these messages have "Info" level. So no need to really be concerned.

And, I would not start a GUI application from a shell, unless you really want to see those messages, e.g. if the application crashes or fails to start up.

Create a desktop launcher or start menu entry, and run it that way.
Although I think the Cube installer should have done that already.
But this way, you are not bothered with a torrent of info messages.

I do not care about the 'secure' or correct way of doing things nor about the output of the app.

I want to know why it takes so long. Can anybody from ST reply please.