Skip to main content
PKova.1
Associate II
May 16, 2023
Solved

STM32CubeMX 6.8.1 Generate Code is freezing

  • May 16, 2023
  • 3 replies
  • 1604 views

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

This topic has been closed for replies.
Best answer by PKova.1

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

3 replies

Ghofrane GSOURI
Technical Moderator
May 16, 2023

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
PKova.1
PKova.1Author
Associate II
May 16, 2023

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
PKova.1AuthorBest answer
Associate II
May 16, 2023

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