cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 6.8.1 Generate Code is freezing

PKova.1
Associate II

I created STM32CubeMX project (.ioc) on my old Windows 10 computer, GENERATE CODE worked without any issues, and after a certain time I copy .ioc file on my new Windows 11 computer (fresh install of STM32CubeMX). When I press GENERATE CODE, IDE is freezing in the stage: Copying libraries files... and the only way how I can close IDE is over Task Manager by End process.

In the log file, this is the last records:

2023-05-16 11:08:53,297 [INFO] ProjectBuilder:2996 - Time for Copy HAL[0] : 127mS.

2023-05-16 11:08:53,308 [INFO] ProjectBuilder:4304 - Project Generator version: 3.19.2

2023-05-16 11:08:53,406 [INFO] ConfigFileManager:1483 - The Die is : DIE462

2023-05-16 11:08:53,410 [INFO] ApiDbMcu:507 - Load IP Config File for TOUCHSENSING

2023-05-16 11:08:53,621 [ERROR] GenerateProjectThread:93 - javax.xml.transform.TransformerException: java.io.FileNotFoundException: C:\ (The system cannot find the path specified)

I have currently two projects and both behave the same.

Patrik

1 ACCEPTED SOLUTION

Accepted Solutions
PKova.1
Associate II

I find out the reason, why this happens. My path was C:\#Work\Project\CubeMx and the symbol # on the beginning #Work directory created the issue. When I change the project location to C:\Work\Project\CubeMx everything is working fine.

BR

Patrik

View solution in original post

3 REPLIES 3
Ghofrane GSOURI
ST Employee

Hello @PKova.1​ 

First let me thank you for posting.

Concerning the issue mentioned above try to double-check the file or directory path: Verify that the path you provided is correct and that the file or directory you are trying to access actually exists.


_legacyfs_online_stmicro_images_0693W00000bkBGPQA2.png 

I will be waiting for your feedback.

BR,

Ghofrane

PKova.1
Associate II

Yes, everything is correct. The directory path exists, I know it because the directory Core is updated correctly by Code generation process.

Patrik

PKova.1
Associate II

I find out the reason, why this happens. My path was C:\#Work\Project\CubeMx and the symbol # on the beginning #Work directory created the issue. When I change the project location to C:\Work\Project\CubeMx everything is working fine.

BR

Patrik