cancel
Showing results for 
Search instead for 
Did you mean: 

I can't generate code from stm32cubemx

Lkid
Associate

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.

2 REPLIES 2
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Lkid
Associate

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