Skip to main content
Matt.1
Associate
March 5, 2020
Question

STM32CubeMX 5.6.0 Hangs at "Generating user source code..."

  • March 5, 2020
  • 4 replies
  • 1847 views

I have recently upgraded to STM32CubeMX 5.6.0 and created a new project based around the STM32H753ZITx family.

I can usually get one "Generate Code" operation when the PC has freshly booted up, but if I try and "Generate Code" subsequent times it just hangs at "Generating user source code.." and this will continue until the PC is rebooted.

We have tried both fully populated processor configuration and minimal clock and USB only configuration and in both case keep running into the same problem.

We didnt seems to experience this in version 5.5.0 of STM32CubeMX.

This topic has been closed for replies.

4 replies

March 5, 2020

Hello! Close your IDE (Keil, IAR) before "Generate code"

SidBr
Associate
April 7, 2020

Hi,

Did you ever find out the issue with this?

I've got exactly the same problem with STM32CubeMX 5.6.0.

LS. B.1
Associate II
May 30, 2020

Hi there.

I've got the same problem with CubeMX 5.6.0.

Even with up-to-date 64bit Java, it still freezes on the "Generating user source code..." screen.

Any help? (ps. is very erratic problem, once it ran perfectly and generated code, after a few minutes modifying the code it hanged again).

SidBr
Associate
June 1, 2020

Hi,

There's a bug in this version whereby it has trouble processing special characters (&, # etc) in paths and names.

My problem was my user name of 'R&D'. It didn't like the '&' character.

I created a new user with no special characters and it worked.

In your case you need to look at all your paths, project names etc. It could be anywhere.

It's a known bug that ST are aware about.