Skip to main content
Clark Sann
Associate III
May 7, 2018
Solved

Problem importing from STM32CubeMX to System Workbench

  • May 7, 2018
  • 2 replies
  • 3026 views
Posted on May 07, 2018 at 04:00

I have been importing CubeMX projects into System Workbench (SW4STM32). It's been working great, a real time saver. I first open System Workbench and select a workspace. Then using CubeMX I configure the project and generate the code. Then when the code generation is done and the dialog window opens, I press the Open Project button. In the past this has nicely imported my CubeMX code into SW.

It no longer works. Now after I press the Open Project button, I get a new dialog box with the following error message:

Unrecognized option: -d64

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

What has gone wrong?

Clark

#stm32cubemx-eclipse-sw4stm32
This topic has been closed for replies.
Best answer by Nawres GHARBI
Posted on May 16, 2018 at 17:10

Effectively it is a wrong Java version, the 1.80_x version is needed. 

You can download it from this link 

https://java.com/en/download/help/mac_install.xml

 

2 replies

Clark Sann
Associate III
May 7, 2018
Posted on May 07, 2018 at 16:10

Here is some additional information about this problem:

1. I am using OSX 10.12.6

2. Before this problem began, my CubeMX repo was in my home folder and the CubeMX project was stored somewhere in my Documents folder.

3. Before it stopped working I moved the repo location to a folder within my Documents folder. I also moved the CubeMX project folder to another location. I did this because the Documents folder is automatically placed into the cloud and is available on all my machines.

4. After that, I noticed this problem. I do not recall if it occurred immediately after the relocation or occurred later.

5. I cannot recall making any other changes before the problem occurred.

6. On one of my other machines, setup identically to the first machine, the problem does not occur. On that machine, the project import into SW4STM32 worked before

and after

I moved the repo and project folders.

7. I am using the latest version of CubeMX, SW4STM32, and Eclipse.

8. I deleted the CubeMX app and reinstalled it on the defective machine. That did not help.

I hope this helps you diagnose this problem. Good luck!

Nawres GHARBI
Technical Moderator
May 14, 2018
Posted on May 14, 2018 at 10:24

Hi

acsann

‌,

after many test I could not reproduce your issue, could you please attach the CubeMX and SW4STM32 logs please

Clark Sann
Associate III
May 14, 2018
Posted on May 14, 2018 at 20:04

Hello

Here is the STM32CubeMX.log I found in a ~/.stm32cubemx folder. I made two attempts to import a project into SW4STM

On the first attempt, I created a new STM32CubeMX project named Test1. When I attempted to import it into SW4STM32 I got this error message:

On the second attempt, I opened an existing STM32CubeMX project named GPIO_1. When I attempted to import it into SW4STM32 I got the same error message.

Neither of the two tests created an Eclipse project so I have no project logs.

I did find an eclipse log file in Window / Show View / Other / General / Error Log. The errors in that log occurred prior to running my tests. I have run the tests again and have verified that no new logs are created when I attempt to import CubeMX projects.

I hope this information helps you. Do you think I should uninstall the SW4STM32 plugin and reinstall it into Eclipse? If so, can you tell me how to do this?

Thanks for your help!

Clark

________________

Attachments :

STM32CubeMX.log.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxdW&d=%2Fa%2F0X0000000b0N%2FZINoTn0QHTJgYLerRToGLRTY9i6OXJcVJ4bn8BMWDs8&asPdf=false

Screen Shot 2018-05-14 at 12.57.18 PM.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxTs&d=%2Fa%2F0X0000000b0J%2FCQ7LmadnpSHggMko.U3X8hvHa.ICLg7w6U5CAoSQ2yg&asPdf=false

Screen Shot 2018-05-14 at 1.02.05 PM.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxXB&d=%2Fa%2F0X0000000b0L%2FeCAnF6vACC3Fa11GwKOI0N8uRXHKwS7AY6tZkj0HHi4&asPdf=false
Nawres GHARBI
Nawres GHARBIBest answer
Technical Moderator
May 16, 2018
Posted on May 16, 2018 at 17:10

Effectively it is a wrong Java version, the 1.80_x version is needed. 

You can download it from this link 

https://java.com/en/download/help/mac_install.xml

 
Clark Sann
Associate III
May 16, 2018
Posted on May 16, 2018 at 17:27

Java won’t let me install v8 because I have v10 installed. I’ll google on how to uninstall v10 later. Do you have any immediate ideas?