Skip to main content
Svenn Dahlstrom
Associate III
January 14, 2020
Solved

Upgraded STM32CubeMX from 5.4.0 to 5.5.0 and now it fails to generate the project.

  • January 14, 2020
  • 26 replies
  • 9094 views

Upgraded STM32CubeMX from 5.4.0 to 5.5.0 and H7 firmware package to V1.6.0 and migrated.

When generating code it tells me the code is successfully generated but STM32CubeIDEproject generation have a problem.

Building the project fails:

make: *** No rule to make target 'C:/git/ELS/sbc_bootloader/CM7/Src/sys.c', needed by 'Application/User/sys.o'. Stop.

The same thing happens if I start a new project.

I'm using the STM32H745ZITx.

STM32CubeIDEproject generation have a problem, what problem?

Please fix :)

0690X00000BvxCYQAZ.png

This topic has been closed for replies.
Best answer by Cartu38 OpenDev

How did you​ get STM32CubeMX 5.5.0?. From complete fresh install or updating a 5.4.0 one ?.

If update could you have a try relying on your .ioc file AND complete 5.5.0 fresh install? ​

26 replies

Svenn Dahlstrom
Associate III
January 14, 2020

More info.

CubeMX is removing sys.c and sys.h files. Reverting them and I'm able to build the project. But not able to debug the project.

But I have a bad feeling about reverting to olde sys.c/h file. I'm guessing those files also have updates and that is why they are deleted but new files is not copied in.

Svenn Dahlstrom
Associate III
January 14, 2020

Debug is working, my mistake not setting up for debug correctly.

So it seems like the missing sys.c/h file is the only issue.

Please fix :)

Cartu38 OpenDev
Graduate II
January 14, 2020

Any chance to share your .ioc file to get a try at ?

Code generation popup dialog you're getting sounds not so good ... some process is not able to end as expected most probably. May explain some issues then ...

Svenn Dahlstrom
Associate III
January 15, 2020

Here is my .IOC file.

Khouloud ZEMMELI
ST Employee
January 15, 2020

​Hello @Svenn Dahlstrom​ ,

Could you please share your ioc file and give more info about your machine and the java version ?

And it will be nice if you share your .log file.

Thanks,

Khouloud.

Svenn Dahlstrom
Associate III
January 15, 2020

My machine is a Windows 10 1909

java version "1.8.0_231"

Java(TM) SE Runtime Environment (build 1.8.0_231-b11)

Java HotSpot(TM) Client VM (build 25.231-b11, mixed mode)

Sorry, but I can't find any .log file in the project folder.

Or what file should I look for, and where?

Khouloud ZEMMELI
ST Employee
January 15, 2020

​.log under C:\Users\<user name>\.stm32cubemx, and please share your ioc file (generated with 5.4.0 cubemx version)

Cartu38 OpenDev
Cartu38 OpenDevBest answer
Graduate II
January 15, 2020

How did you​ get STM32CubeMX 5.5.0?. From complete fresh install or updating a 5.4.0 one ?.

If update could you have a try relying on your .ioc file AND complete 5.5.0 fresh install? ​

Svenn Dahlstrom
Associate III
January 15, 2020

First I tried updating from CubeMX 5.4.0.

And the error came up when generating code.

Then I downgraded to 5.4.0 with a file I downloaded from the ST site.

This was last week.

Yesterday I upgraded again to 5.5.0 but this time with a file downloaded from ST site, but still the same.

Khouloud ZEMMELI
ST Employee
January 15, 2020

​Could you please  @Svenn Dahlstrom​ change the java version ? try the 1.8.0_211-b12 64bit

Svenn Dahlstrom
Associate III
January 15, 2020

I will try this tomorrow :)

Khouloud ZEMMELI
ST Employee
January 15, 2020

​Okey thanks to inform me of the result obtained.

Khouloud

Khouloud ZEMMELI
ST Employee
January 15, 2020

according to your .log file : ​Detected Java Version = 13.0.1

Svenn Dahlstrom
Associate III
January 15, 2020

Yes, I updated Java SE DK to 13.0.1 from 12.0.1 yesterday before upgrading to CubeMX 5.5.0

This means that last week when I upgraded to CubeMX 5.5.0 I had Java SE DK 12.0.1 and this gave the same result.

Khouloud ZEMMELI
ST Employee
January 16, 2020

​Hello @Svenn Dahlstrom​ ,

Issue will be fixed in the next release,

For the moment ,please delete the binarie file  under third_parties_plugins in the folder of install , and it will work.

Best Regards,

Khouloud.

Svenn Dahlstrom
Associate III
January 16, 2020

Thanks @Khouloud ZEMMELI​, I deleted the folder and code generation is not having problems anymore.

But it still deletes CM7\IScr\sys.c and CM7\Inc\sys.h files :crying_face:.

Will this also be fixed in the next release?

Khouloud ZEMMELI
ST Employee
January 16, 2020

​Welcome @Svenn Dahlstrom​ , MX_SYS_Init(); should not be called , same for sys.c/h, this's a CubeMX regression, which has been fixed in the 5.5.0 CubeMX version.

So there's no bug

Best Regards,

Khouloud

Svenn Dahlstrom
Associate III
January 16, 2020

OK, thanks again @Khouloud ZEMMELI​ for your help :smiling_face_with_smiling_eyes:

Nawres GHARBI
ST Technical Moderator
January 17, 2020

Hello All,

After some investigation this seems to be an issue when migrating from 5.4.0 to the 5.5. through the tool.

A fix is coming soon but to avoid having this issue please un-install your current version the install the one from ST web site.

Sorry for the inconvenience

Regards