cancel
Showing results for 
Search instead for 
Did you mean: 

Keil poject generation fails on windows 10 build 19041.388 with STM32CubeMx 5.6.0

psanyi
Associate II

It seems that windows 10 version 2004 (build 19041.388) affects somehow the keil project file generation. It fails with the error:

"The code is succesfully generated but MDK-ARM v5 project generation have a problem".

Question is: Where is the problem ?

I tried to generate in different locations e.g. C:\ , C:\Users\myuser\ but it did not worked for me

Last try was on Windows version 1809 (build 17763.1294) and it worked perfecly

Java version (non working)

C:\Users\psany>java -version

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)

Java version (working)

openjdk version "1.8.0_252"

OpenJDK Runtime Environment (Zulu 8.46.0.20-SA-win64) (build 1.8.0_252-b14)

OpenJDK 64-Bit Server VM (Zulu 8.46.0.20-SA-win64) (build 25.252-b14, mixed mode)

Regards

Sandor

3 REPLIES 3
psanyi
Associate II

Finally I found the problem myself.

The problem is caused by java runtime from Oracle (SE)

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)

FIX: Downloaded the OpenJDK from here:

https://adoptopenjdk.net/

Now the java version is:

openjdk version "11.0.8" 2020-07-14

OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)

OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)

It works fine.

I'm having the same issue.

How did you determine what was the problem?

Is there a log file of the code gen process somewhere?

Found logs. Java version was wrong. All working.