Skip to main content
vchau.2
Associate III
Jun 18, 2025 6:36 AM UTC
Question

STM32Cube IDE getting slow compilation

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

This topic has been closed for replies.

6 replies

TDK
Jun 18, 2025 12:32 PM UTC

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
Jun 18, 2025 12:42 PM UTC

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
Jun 18, 2025 12:57 PM UTC

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
Jun 18, 2025 12:39 PM UTC

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
Jun 24, 2025 1:26 AM UTC

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
Aug 5, 2025 4:00 AM UTC

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.