Skip to main content
vchau.2
Associate III
June 18, 2025
Question

STM32Cube IDE getting slow compilation

  • June 18, 2025
  • 4 replies
  • 545 views

Case Description:

 

Dear All,

My STM32Cube IDE taking lost of time to compile to code previously it was taking 20sec only but now it taking 10 min and compile 20% code, please suggest what the issue,

CPU - I7

RAM - 16 

CPU Utilization - <30%

RAM utilization - 10GB

4 replies

TDK
Super User
June 18, 2025

What has changed with your computer and/or project?

Ensure all cores are used for compilation.

20 seconds -> 10 minutes is dramatic. Something changed.

 

If you create a new project and compile it, does it compile quickly?

"If you feel a post has answered your question, please click ""Accept as Solution""."
vchau.2
vchau.2Author
Associate III
June 18, 2025

How can ensure all cores are compiling the code,

I created new project by cubeMx and its working fine,

i installed latest cube ide also but also getting same thing

compiler isnot giving any error but working very slow and stuck on 23%

vchau2_0-1750250479856.png

 

 

TDK
Super User
June 18, 2025

The "-j 8" on the right means use 8 cores.

 

If you create a new project and compile it, does it compile quickly?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate III
June 18, 2025

What is previously? What timespan are we talking about?

Because as @TDK pointed out, something needs to have changed fundamentally

 

How many projects do you have currently in your workspace? Did you add recently many plug-ins?

Visitor II
June 24, 2025

I encountered this problem some days ago, the compile process would nearly stop at 19%. For my case my final solution was to adjust the parallel build jobs from 12(default) to 4, and the compilation seems back to normal. Hope this would also work for you.

屏幕截图 2025-06-24 092523.png

 

Visitor II
August 5, 2025

Hello guys, I guess I've finally found out why it's getting so slow suddenly, please try to uninstall **Microsoft PC Manager**, everything is back to normal.