cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX MDK-ARM project generation failure

Just Matt
Associate III

Windows 10 64bit - STM32CubeMX 6.0.1 - STM32H7B3LIHxQ MCU

Attempting to generate a fresh project and get the below error. Any thoughts on how to resolve the issue? project file attached. Thanks!

0693W000004IbAjQAK.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Good, I found your issue !

STM32CubeMX is pointing to JAVA 13 :(

below and extract of the log:

2020-10-05 09:18:38,387 [INFO] MicroXplorer:564 - Detected Java Version = 13.0.1

As described in the STM32CubeMX User Manuel UM1718.pdf, CubeMX is not validated with JAVA 13.

Can you clean your environment by installing only JAVA8 and updating your Java path is configured?

Regards,

Aymen.

View solution in original post

9 REPLIES 9
Aymen CHAKROUN
ST Employee

Hi @Just Matt​ ,

Can you please provide us the JAVA version used in your Windows 64-bit.

You can open CMD console and do the command:

java -version

Regards,

Aymen.

Hi Aymen,

java version "1.8.0_261"

Java(TM) SE Runtime Environment (build 1.8.0_261-b12)

Java HotSpot(TM) Client VM (build 25.261-b12, mixed mode, sharing)

Thanks!

Matt

Hi @Just Matt​ ,

Strange, you are using JAVA 32-bit and you should get a popup when you install and execute STM32CubeMX.

Can you tell us how you are executing STM32CubeMX? by double click the .exe or by running the java -jar command line?

Finally, can you please remove all your JAVA installation and re install only JAVA 64-bit to see if the problem still exist ?

Regards,

Aymen.

Hi @Aymen CHAKROUN​ 

I removed all java and installed 64 bit

java version "1.8.0_261"

Java(TM) SE Runtime Environment (build 1.8.0_261-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

I am running the .exe file (shortcut). I have tried running as admin as well, with no change.

Thanks!

Matt

Hello @Just Matt​ ,

I need the STM32CubeMX log file.

Can you please send us the STM32CubeMX.log under "C:\Users\<username>\.stm32cubemx".

For info, I succeed to load your Test.ioc with Keil.

Regards,

Aymen.

@Aymen CHAKROUN​ 

Sure thing. Attached

Thank you,

Matt

Good, I found your issue !

STM32CubeMX is pointing to JAVA 13 :(

below and extract of the log:

2020-10-05 09:18:38,387 [INFO] MicroXplorer:564 - Detected Java Version = 13.0.1

As described in the STM32CubeMX User Manuel UM1718.pdf, CubeMX is not validated with JAVA 13.

Can you clean your environment by installing only JAVA8 and updating your Java path is configured?

Regards,

Aymen.

Hi,

I removed the JDK v13.0.1, restarted, deleted all non necessary files in that directory and project generation is now successful!

Thank you for your help!

Matt

Good News !

Don't hesitate to make my answer as 'Best Answer' to help other community members if facing the same issue.

Thank you in advance.

Aymen.