Skip to main content
Katzenberger.Michael
Associate III
January 10, 2020
Question

STM32CubeMx not working anymore after update from 5.4.0 to 5.5.0

  • January 10, 2020
  • 7 replies
  • 1996 views

Hi !

After updating I'm not able to load any project or generating a new one.

Each time a project is loaded the program crashes with

...
2020-01-10 23:34:35,765 [INFO] BlockDiagram:1818 - stop enableDisableButtons
java.lang.NullPointerException
...
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 'boolean com.st.microxplorer.mcu.IP.isDMASupported()'
...

Please see attached text file for full log.

This topic has been closed for replies.

7 replies

dbgarasiya
Senior
January 11, 2020

problem is because of jave

please update java first then try

Katzenberger.Michael
Associate III
January 11, 2020

Thanks for your feedback.

But neither a update of java11 nor installing java13 solves the problem. I've attached the full log of both java versions.

> java --version
openjdk 13 2019-09-17
OpenJDK Runtime Environment (build 13+33)
OpenJDK 64-Bit Server VM (build 13+33, mixed mode, sharing)
> java --version
openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
> lsb_release --all
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19.3 Tricia
Release:	19.3
Codename:	tricia

Katzenberger.Michael
Associate III
January 11, 2020

I was not able to upload both files ?????

So here is the log for java 13

dbgarasiya
Senior
January 11, 2020
Katzenberger.Michael
Associate III
January 11, 2020

you mean this comment, right ?

STM32CubeIDE toolchain:

• It is functional only with a Java 8 64-bit Java Virtual Machine.

I've used this java version in the past (and STM32CubeMX version 5.4.0 was running fine with that):

> java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)

Although the revision number (?) is 232 I've downloaded the latest available package form java.com which has a revision number of 231

> java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

Unfortunately no improvement ...

And the jdk version is not downloadable without an Oracle account.

So currently all installed versions didn't work:

> sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).
 
 Selection Path Priority Status
------------------------------------------------------------
 0 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 auto mode
 1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
 2 /usr/lib/jvm/jdk-11/bin/java 0 manual mode
 3 /usr/lib/jvm/jdk-13/bin/java 0 manual mode
* 4 /usr/lib/jvm/jre1.8.0_231/bin/java 0 manual mode
 
Press <enter> to keep the current choice[*], or type selection number: 

Katzenberger.Michael
Associate III
January 13, 2020

Finally a fresh install of STM32CubeMx solved the problem !

Christian1
Visitor II
February 4, 2020

Hi Michael

What java version are you finally using?

Katzenberger.Michael
Associate III
February 4, 2020

Hi Christian,

obviously the "only Java 8" statement is not true ;)

I'm running jdk-13

> java -version
openjdk version "13" 2019-09-17
OpenJDK Runtime Environment (build 13+33)
OpenJDK 64-Bit Server VM (build 13+33, mixed mode, sharing)

Christian1
Visitor II
February 4, 2020

Thanks for you answer

I have java 8 now and after a clean install of CubeMX 5.5.0, it actually works fine now

$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

(I had java 11 before and CubeMX 5.4.0 was working fine with it)