cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 6.0.0 bug report: library creation and copying have problem, when re-generating code for project created with former version of CubeMX (5.6.0)

JYan.1570
Associate II

I re-installed the newest CubeMX 6.0.0 recently. But when I open my old projects which created with CubeMX 5.6.0 or earlier to open some TIM channels, it reported an error message:

The Code is sccessfully generated under {my path} , but Library creation and copy have a problem.

0693W000003BszlQAC.png

At first I thought that it wouldn't make any differences though it reported error, but after I flashed it the mcu didn't run as normal as before even I HAVE NOT CHANGE any code except what the CubeMX did.

Then I looked up the log file in ~\.stm32cubemx\STM32CubeMX.log and I found that tons of files can't be copied and part of the error report is listed in the following:

2020-08-01 20:13:55,001 [ERROR] ProjectBuilder:4890 - Problem during Copy of File core_sc000.h
2020-08-01 20:13:55,001 [ERROR] ProjectBuilder:4890 - Problem during Copy of File core_sc300.h
2020-08-01 20:13:55,002 [ERROR] ProjectBuilder:4890 - Problem during Copy of File mpu_armv7.h
2020-08-01 20:13:55,003 [ERROR] ProjectBuilder:4890 - Problem during Copy of File mpu_armv8.h
2020-08-01 20:13:55,004 [ERROR] ProjectBuilder:4890 - Problem during Copy of File tz_context.h
2020-08-01 20:13:55,005 [ERROR] ProjectBuilder:4890 - Problem during Copy of File stm32f4xx_hal_can_legacy.h
2020-08-01 20:13:55,006 [ERROR] ProjectBuilder:4890 - Problem during Copy of File stm32_hal_legacy.h
2020-08-01 20:13:55,006 [INFO] ProjectBuilder:2168 - Time for Copy HAL[0] : 323mS.
2020-08-01 20:13:55,006 [ERROR] ProjectBuilder:711 - Error in Project Generation

I am sure that there are no problems in the naming or the path of the project because it works in the old version CubeMX, and I have re-install the package library couple times, which is of no use.

1 REPLY 1
Syouj.1
Associate

​1�?Do not have Chinese characters in the file save path

2�?Copy the STMCX file into a new folder and regenerate the code