Skip to main content
Viraj shah
Associate
October 27, 2019
Question

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

  • October 27, 2019
  • 33 replies
  • 20417 views

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

This topic has been closed for replies.

33 replies

October 27, 2019

Did you try to reinstall MX?

Viraj shah
Associate
October 28, 2019

Yes i tried that also previously i was using 5.3 version(the same error persisted there, hence i updated mx to 5.4) deleted that installed 5.4 mx and since it was not working i reinstalled 5.4 but still no luck

LukusD
Visitor II
November 1, 2019

I'm having the same problem here (STMCubeMX V5.28), program freezes at "Copying library files". Trying to fix this for last 4 hours. I have also tried uninstalling and reinstalling to no avail. I thought it was a problem with Java RTE, so I uninstalled the older version and reinstalled the latest 64 bit. Also no luck. Anyone able to comment or understands what is causing this? Would greatly appreciate any feedback...

Khouloud ZEMMELI
ST Employee
November 1, 2019

​Hello @Viraj shah​ , could you please share your ioc file ?

Thanks,

Khouloud.

Viraj shah
Associate
November 1, 2019

Hi @Khouloud ZEMMELI​  please check the attached .ioc file

Khouloud ZEMMELI
ST Employee
November 1, 2019

​It works fine for me :

0690X00000ArZ3kQAF.png

JYan.1570
Associate
November 22, 2019

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
ST Employee
November 25, 2019

​please share your ioc file.

Thanks

JYan.1570
Associate
November 25, 2019

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.

PSant.1
Visitor II
December 29, 2019

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

BJunY.1315
Visitor II
February 7, 2020

Do not put & in the file path.

JYan.1570
Associate
February 7, 2020

That's it!

I found this problem last night.

Anyway, thank you very much!

CChuk.1
Associate
March 21, 2020

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 ?

CChuk.1
Associate
March 22, 2020

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

Mary Solomo
Associate II
April 3, 2020

I'm having the same problem after I downloaded the new version of F24 Repository (V1.25).

Mary Solomo
Associate II
April 3, 2020

Found the issue.

It happened when I copied the project into a new PC where I haven't downloaded (installed) the Middleware I'm using (CMSIS). After installing the Middleware properly, I was able to generate the code.

This is different from the "&" directory name issue mentioned above but the hang up issue is the same.