cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube IDE getting slow compilation

vchau.2
Associate III

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

5 REPLIES 5
TDK
Super User

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".
htxy
Associate II

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?

vchau.2
Associate III

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

 

 

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".
eetau
Associate

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