cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot create Keil uVision 5.27 Project with CubeMX 6.0.1

Garnett.Robert
Senior III

Hi

After updating to CubeMx 6.0.1 and my STM32H7 Pack to 1.8.0 I cannot create project code for Keil uVision 5.27.

After pushing the create code button it brings up the progress bar, seems to be doing stuff and then brings up a dialog:

---------------------------------------------------------------------------------------------------------------------------------------

"The code is successfully generated under G:/LoranReceiver_002 but MDK-ARM V5.27 project generation have problem."

---------------------------------------------------------------------------------------------------------------------------------------

When I open uVision I get an error:

--------------------------------------------------------------

"Error: Device not found -

Device: '??device??'

Vendor 'STMicroelectronics'

Please update your device selection."

--------------------------------------------------------------

The uVision file tree is empty of files and when you open the uVision config dialog no device is selected.

I tried the same project with Atollic and it worked fine.

I have not made any changes to uVision 5 since I used it successfully with older versions of CubeMX.

All my MCU packages are up to date in uVision.

I tried ti with an STM32H743ZIT and an STM32F411RE and had the same problem with each.

I have NEVER had any problems with the CubeMX uVision 5.xx before today.

An no I'm not going to change to TrueStudio, it's hard way of doing a simple job and I don't want to waste my time grappling with Eclipse.

Can anybody assist?

Best regards

Rob

29 REPLIES 29
Hi,
I have tried that a couple of times, but I did it again.
I found the log file and have attached it to this email.
Best regards
Rob

Hi,

Umm weird, it works on my pc. Please make sur you only kept the .ioc file.

You haven't attached your logs. See picture attached to attach your logs.

Regards,

Hugues

HPfaf.1
Associate II

Hello,

I have had the same problem.

The solution was to reinstall the java environment.

Regards

Horst

Hi, Hugues
How are you going with my problem?
Best regards
Rob

Hello Rob,

I have had the same problem.

The solution was to reinstall the java environment.

Regards

Horst

Hi Horst,

Thanks for that, but could you elaborate. I have a 64 bit computer an Windows system.

  • Which java should I install?
  • Could you help me with a web link to the correct version?
  • Do I need to uninstall the old java?
  • If so which one?
  • Do I need to uninstall CubeMX and then reinstall it?

I have a few different java versions on my machine as I use Anywhere Softwares B4J which uses two different versions of java depending on whether you are creating a UI or headless app.

Best regards

Rob

askari.nima
Associate II

I have this problem. I installed all version of java. but it does not work yet

Hello Rob,

I have Windows10-64Bit on my computer.

Here are the steps that I did:

  1. uninstalling CubeMX
  2. uninstalling all Java-Versions
  3. installing CubeMX Version 6.0.1
  4. installing Java Version 1.8.0 under the path C:\Program Files\Java\jre1.8.0_201 (this was done by the IT department)

Thats all.

The installation process of CubeMX under step 3 is asking for the installation of Java. When you accept this, then the newest Java version is installed under the path C:\Program Files (x86)\Java\..... This did not work on my computer!!! I suppose CubeMX does have a problem with Java in the path "Program Files (x86)".

Kind regards

Horst

Hi Hugues
I sent you the logs on 7/10/2020
I have attached the IOC and log files to this email.
Best regards
Rob

Hi Horst,

Thanks for that I will give it a try.

Best regards

Rob