cancel
Showing results for 
Search instead for 
Did you mean: 

MX 5.4.0 Bug: cubemx stuck at copying library files while Generating code

Viraj shah
Associate II

can anyone help me with this problem cubemx is stuck at copying library file while i try to generate code for keil mdk version 5.28 cannot close the window and have to terminate the program using task manager i am using windows 10 system0690X00000ArJc0QAF.png

33 REPLIES 33
JYan.1570
Associate II

Hi @Khouloud Zemmeli

I have the same problem too!

 It stuck on "copying library files" for hours! What's more, the whole program is stuck either. Neither clicking the close bottom nor ending the "stm32cubemx" progress in the task manager does any help to closing it. The only way to end the Cube is ending the JAVA program.

Since this problem approaches, I have tried every method I can do including reinstall CubeMX , jre , Keil, and HAL libraries, the luck is still not for me.

Here is my log:

2019-11-23 02:18:40,712 [INFO] FileExtend:210 - Unzip File : stm32cube_fw_f1_v170.zip
2019-11-23 02:18:40,713 [INFO] FileExtend:225 - Standard Zip Deflate
2019-11-23 02:18:54,927 [INFO] LoadServerPackagesThread:155 - End of LoadServerPackages Thread
2019-11-23 02:18:54,960 [INFO] CheckServerUpdateThread:92 - End of CheckServer Thread
2019-11-23 02:18:54,967 [INFO] UtilMem:74 - End SaveConfig() Used Memory: 147672976 Bytes (228999168)
2019-11-23 02:18:55,003 [INFO] UtilMem:74 - End SaveConfig() Used Memory: 152210232 Bytes (228999168)
2019-11-23 02:18:55,241 [INFO] ProjectBuilder:1292 - IP not ready for code generation: NVIC
2019-11-23 02:18:55,241 [INFO] ProjectBuilder:1292 - IP not ready for code generation: USART1
2019-11-23 02:19:00,293 [INFO] ProjectBuilder:319 - [PM] Start Project Generation Thread
2019-11-23 02:19:00,327 [INFO] BlockDiagram:1871 - set Specific Code input for plugin: NVIC
2019-11-23 02:19:00,327 [INFO] BlockDiagram:1871 - set Specific Code input for plugin: FREERTOS
2019-11-23 02:19:00,328 [INFO] BlockDiagram:1871 - set Specific Code input for plugin: USART
2019-11-23 02:19:00,328 [INFO] BlockDiagram:1871 - set Specific Code input for plugin: TIM1_8F1
2019-11-23 02:19:00,328 [INFO] BlockDiagram:1871 - set Specific Code input for plugin: SYS
2019-11-23 02:19:00,329 [INFO] BlockDiagram:1871 - set Specific Code input for plugin: GPIO
2019-11-23 02:19:00,329 [INFO] BlockDiagram:1871 - set Specific Code input for plugin: RCC
2019-11-23 02:19:00,356 [INFO] CodeGenerator:598 - code generatio: config db path: C:/Users/Jason/.stm32cubemx/databases/DB.5.0.21/db/
2019-11-23 02:19:00,889 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\license.tmp_save
2019-11-23 02:19:01,074 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\license.tmp
2019-11-23 02:19:01,165 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\gpio.c_save
2019-11-23 02:19:01,293 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\gpio.c
2019-11-23 02:19:01,312 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\gpio.h_save
2019-11-23 02:19:01,378 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\gpio.h
2019-11-23 02:19:01,573 [INFO] Middleware:1071 - No code input for Bsp Dependency
2019-11-23 02:19:01,578 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_inc.tmp_save
2019-11-23 02:19:01,621 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_inc.tmp
2019-11-23 02:19:01,627 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_vars.tmp_save
2019-11-23 02:19:01,674 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_vars.tmp
2019-11-23 02:19:01,702 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_pfp.tmp_save
2019-11-23 02:19:01,746 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_pfp.tmp
2019-11-23 02:19:01,751 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_HalInit.tmp_save
2019-11-23 02:19:01,803 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_HalInit.tmp
2019-11-23 02:19:01,809 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_start.tmp_save
2019-11-23 02:19:01,890 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_start.tmp
2019-11-23 02:19:01,899 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_threads.tmp_save
2019-11-23 02:19:01,948 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_threads.tmp
2019-11-23 02:19:01,954 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_user_threads.tmp_save
2019-11-23 02:19:01,998 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\rtos_user_threads.tmp
2019-11-23 02:19:02,004 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\FreeRTOSConfig.h_save
2019-11-23 02:19:02,084 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\FreeRTOSConfig.h
2019-11-23 02:19:02,107 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\freertos.c_save
2019-11-23 02:19:02,182 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\freertos.c
2019-11-23 02:19:02,191 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\sys.c_save
2019-11-23 02:19:02,275 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\sys.c
2019-11-23 02:19:02,280 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\sys.h_save
2019-11-23 02:19:02,325 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\sys.h
2019-11-23 02:19:02,331 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\stm32f1xx_hal_timebase_tim.c_save
2019-11-23 02:19:02,403 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\stm32f1xx_hal_timebase_tim.c
2019-11-23 02:19:02,414 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\tim.c_save
2019-11-23 02:19:02,502 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\tim.c
2019-11-23 02:19:02,508 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\tim.h_save
2019-11-23 02:19:02,560 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\tim.h
2019-11-23 02:19:02,570 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\usart.c_save
2019-11-23 02:19:02,661 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\usart.c
2019-11-23 02:19:02,667 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\usart.h_save
2019-11-23 02:19:02,724 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\usart.h
2019-11-23 02:19:02,735 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\stm32f1xx_it.c_save
2019-11-23 02:19:02,829 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\stm32f1xx_it.c
2019-11-23 02:19:02,837 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\stm32f1xx_it.h_save
2019-11-23 02:19:02,907 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\stm32f1xx_it.h
2019-11-23 02:19:02,919 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\stm32f1xx_hal_msp.c_save
2019-11-23 02:19:03,012 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\stm32f1xx_hal_msp.c
2019-11-23 02:19:03,020 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\MXTmpFiles\system.tmp_save
2019-11-23 02:19:03,065 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\MXTmpFiles\system.tmp
2019-11-23 02:19:03,070 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\stm32f1xx_hal_timebase_tim.c_save
2019-11-23 02:19:03,120 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\stm32f1xx_hal_timebase_tim.c
2019-11-23 02:19:03,130 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\stm32f1xx_hal_conf.h_save
2019-11-23 02:19:03,205 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\stm32f1xx_hal_conf.h
2019-11-23 02:19:03,228 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Inc\main.h_save
2019-11-23 02:19:03,340 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Inc\main.h
2019-11-23 02:19:03,348 [INFO] CodeEngine:193 - oldGeneratedFile, D:\Documents\A_Study\stm32\os\Src\main.c_save
2019-11-23 02:19:03,434 [INFO] CodeEngine:211 - Generated code: D:\Documents\A_Study\stm32\os\Src\main.c
2019-11-23 02:19:04,388 [INFO] ProjectBuilder:1645 - Time for Copy HAL[0] : 369mS.
2019-11-23 02:19:04,396 [INFO] ProjectBuilder:2206 - Project Generator version: 3.5.2
2019-11-23 02:19:04,874 [INFO] ConfigFileManager:953 - The Die is : DIE414

@Khouloud ZEMMELI Hi,​ I have the same problem! Would you please take a look at my answer ? And I have pasted the log on it.

​please share your ioc file.

Thanks

Hi!@Khouloud ZEMMELI​ , here's my ioc file attached.

But I don't think that the problem is about the ioc file. Because it works both on my Ubuntu Virtual Machine at Hyper-V and Windows Subsystem of Linux.

Okey , ​I will share the problem with the dev even though I did not reproduce it.

Best Regards,

Khouloud.

PSant.1
Associate

0690X00000BvTEFQA3.jpgI have almost the same problem, using version 5.4.0

BJunY.1315
Associate

Do not put & in the file path.

That's it!

I found this problem last night.

Anyway, thank you very much!

​Hi @Viraj shah​ could you please share the path where did you generate your project : project location..

have you the same probleme as the case of @JYan.1570​ ?  (& in the path)

Thanks,

Khouloud

CChuk.1
Associate II

Hi @Khouloud ZEMMELI​ ! I'm having the same problem. I'm using Win 10 (64bit) and Java_Runtime_Environment_(64bit)_v8_Update_45. I can't undersatnd why cubemx is stucking while copying files for code generation. Can you please help me understand how to solve it ?