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
Hugues DE CARVALHO
Associate III

Hi,

Could you please share your .ioc file? I am not able to replicate your issue.

Regards,

Hugues

Hi Hugues,
Here it is!
Best regards
Rob
Hello Again,
I added the CubeMX output files so you can see what it did do and what it missed.
Best regards
Rob
Hugues DE CARVALHO
Associate III

Hi,

It seems that your files weren't uploaded properly.

Attached a random .ioc file (I'm just testing if I can upload).

Regards,

Hugues

Hi Hugues,
I was able to download your file OK.
I will add my files to the support ticket. That will get around the email problem (i hope).
Best regards
Rob
Hi Hugues <> I have posted a zip file of my project in the comments of the support ticket. I have asked them to advise you in case you don't have direct access. I will try and open the IOC file you sent me in CubeMX and see what happens. Best regards Rob

Hi,

It's just a random .ioc file I had laying around.

You should be able to upload the .ioc file here.

I don't have direct access to the support case but I've asked someone who does.

Regards,

Hugues

That's good.
It looks to me that CubeMX is crating all of the driver source code, the third party code, but it doesn't produce the code required for machine initialization and the project setup.  I haven't made any changes or
updates to Keil uVison  since the 29/6/2020 when I upgraded to:
I am not sure what version of CubeMX I was using at the time as I update
cube whenever I log on and the updater flags a new version. So I might
have missed a CubeMX version.
IDE-Version:
µVision V5.31.0.0
Copyright (C) 2020 ARM Ltd and ARM Germany GmbH. All rights reserved.
License Information:
Robert Garnett
Toongabbie Light & Power
LIC=Redacted
Tool Version Numbers:
Toolchain:        MDK-ARM Essential  Version: 5.31.0.0
Toolchain Path:    C:\Keil_v5\ARM\ARMCC\Bin
C Compiler:         Armcc.exe        V5.06 update 6 (build 750)
Assembler:          Armasm.exe        V5.06 update 6 (build 750)
Linker/Locator:     ArmLink.exe        V5.06 update 6 (build 750)
Library Manager:    ArmAr.exe        V5.06 update 6 (build 750)
Hex Converter:      FromElf.exe        V5.06 update 6 (build 750)
CPU DLL:               SARMCM3.DLL          V5.31.0.0
Dialog DLL:         TCM.DLL              V1.46.0.0
Target DLL:             UL2CM3.DLL           V1.163.4.0
Dialog DLL:         TCM.DLL              V1.46.0.0
Best regards
Rob

Hi,

Find attached your .ioc file.

I was able to replicate your issue.

I fixed it by erasing eveything but your .ioc and regenerating the project with CubeMX. Let me know if that works for you.

If it doesn't, please upload your CubeMX logs. These can be found under C:\Users\***\.stm32cubemx\STM32CubeMX.log

Regards,

Hugues