cancel
Showing results for 
Search instead for 
Did you mean: 

Problem importing from STM32CubeMX to System Workbench

Clark Sann
Senior
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
10 REPLIES 10

If you having multiple Java versions installed on your system, then this can be happen. You can solve this by change the maximum memory allowed for the eclipse process (which is run in a Java Virtual Machine). Open eclipse.ini (which is in the same directory as eclipse.exe) in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m). Then change the default value 256m (or 1024m) to 512m . You also need to give the exact java installed version (1.6 or 1.7 or other).

Like This:

-Xmx512m
 
-Dosgi.requiredJavaVersion=1.6

OR

-Xmx512m
 
-Dosgi.requiredJavaVersion=1.7

OR

-Xmx512m
 
-Dosgi.requiredJavaVersion=1.8