STM32CubeMX MDK-ARM project generation failure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-04 2:06 PM
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!
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 8:23 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-04 11:56 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 5:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 5:39 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 7:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 7:41 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 7:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 8:23 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 9:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 11:49 PM
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.
