Skip to main content
Lkid
Associate
June 27, 2022
Question

I can't generate code from stm32cubemx

  • June 27, 2022
  • 2 replies
  • 1420 views

0693W00000NsliKQAR.pngThe first time I generate code, it works.But by the second time I clicked the GENERATE CODE, the progress bar is not moving anymore after 'generating user source code'.I have tried to remove the file '.mxproject' , but it didn't work. 

The Application STM32CubeMX's version is 6.5.0 in macOS Monterey 12.4 ;

My Java SE version is 18.0.1.1;

They are the newest I could find in the Internet.

Please give me some advise to solve the problem.

This topic has been closed for replies.

2 replies

ST Technical Moderator
June 27, 2022

Hello @晗哲 林​ ,

Please check the path of your project folder if it contains a specific character "#" or "&", it may the cause of this issue.

Did you generated the project with STM32CubeMX tool or with STM32CubeIDE ?

If the problem persists, please share the STM32CubeMX.log file you find under your user directory in the .stm32cubemx folder.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Lkid
LkidAuthor
Associate
June 28, 2022

Hello @Imen DAHMEN​ 

I'm sure there are not any specific character in the path of my project, and I generated the project by STM32CubeMX.

Here's my STM32CubeMX.log, there are a lot of warnings. I hope it will be helpful.

Thanks for your reply.

Lkid