Skip to main content
matt-crc
Senior III
March 10, 2025
Solved

Build Analyzer issue

  • March 10, 2025
  • 10 replies
  • 3359 views

Hello,

Is there a trick to get the Build Analyzer to produce data every time the code is compiled?   It seems like the only way I can get it to update the window is if I change something in the linker script file and recompile again.   Is there an easier way or a setting that needs to be set?

thanks

Matthew

 

Best answer by matt-crc

@Mahmoud Ben Romdhane @TDK

Oops, I take that back... Mahmoud sent me a private email showing me the trick on how to get it to work each and every time... I've tested it 10 times now, and it seems to work for me.  Not sure why this trick is not public, so I will post the solution here...

after the user builds the project, you must right click on the project name, and select refresh.  Then the update for the building analyzer works.  Give it a try and let me know if it works for you too.  

 

10 replies

Pavel A.
Super User
March 10, 2025

PavelA_0-1741577029014.png

 

matt-crc
matt-crcAuthor
Senior III
March 10, 2025

Hi @Pavel A. 

I just tried your suggestion, and when the "auto" is turned on, the refresh button is disabled:

mattcrc_0-1741577862074.png

turning off "Auto" re-enables that button, but I still have the original problem of the build analyzer not updating.

Either the build analyzer window is blank, or it is using data from an older compile.

Technical Moderator
March 10, 2025

Hello @matt-crc ,

First let me thank you for posting.

I suggest that you refer to UM2609, section 2.5 where this new button is explained and how you can change the behavior.

 

MahmoudBenRomdhane_1-1741592997517.png

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
matt-crc
matt-crcAuthor
Senior III
March 10, 2025

@Mahmoud Ben Romdhane 

I'm running STM32cbutIDE 1.18 as well....  There must be a better way than having to restart the package after each compile....

matt-crc
matt-crcAuthor
Senior III
March 10, 2025

@Mahmoud Ben Romdhane 

 

mattcrc_2-1741595189946.png

 

 

TDK
Super User
March 10, 2025

My experience: The behavior used to work but was broken some time in the past few updates. The "auto" refresh doesn't work, and while restarting stm32cubeide works (once), it's hardly a solution.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Senior III
March 11, 2025

same here.

It used to work around 1.14/1.15 and then it broke down

matt-crc
matt-crcAuthor
Senior III
March 10, 2025

@TDK @Mahmoud Ben Romdhane 

Yeah, its a real pain to have to restart the tool to check where the variables are stored

Senior III
March 10, 2025

It's my experience as well, it was working fine up until CubeIDE 1.14, and has been broken since 1.16 (I did not used 1.15, so I don't know about this release).

I don't know if it's an Eclipse issue, or the ST added layer on top of it.

Technical Moderator
March 11, 2025

Hello @matt-crc ,

Further to your reply,

Build Views Refresh Mode: Auto

First Build: 8:29:35                                                          

MahmoudBenRomdhane_1-1741678249124.png

Second Build: 8:40:34

MahmoudBenRomdhane_2-1741678936525.png

Build Views Refresh Mode: ON request

First Build: 8:44:34

MahmoudBenRomdhane_3-1741679118208.png

Second Build: 8:46:34

MahmoudBenRomdhane_4-1741679285540.png

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
TDK
Super User
March 11, 2025

Here's a video (and screenshot) of it not refreshing when "refresh" is clicked again. Works first time, never again.

TDK_0-1741689363064.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
matt-crc
matt-crcAuthor
Senior III
March 11, 2025

@TDK @Mahmoud Ben Romdhane 

I sent Mahmoud a video yesterday with the same results (even after deleting the debug directory from the project as he suggested).  I guess ST has no intention of fixing this issue that I and other users have reported.

matt-crc
matt-crcAuthor
Senior III
March 11, 2025

@Kraal 

I have to refresh the project whenever the build analyzer stops working (seems to be every time after the first build)... But it's a better solution than restarting the IDE... lol

GMeta.1
Associate III
April 23, 2025

Hi

I have found you have to select the .map file in the Project Explorer window (Either Debug or Release but depends on your current build configuration). Then click on the Refresh icon and you'll find it will update almost immediately. You don't have to open the .map file, just have it selected before you then move the mouse over to click on the Refresh button.

I don't think the 'Auto' option in Preferences has ever worked so always set it to 'On request'

Visitor II
April 27, 2025

I have v1.18.1 with Auto on. What seems to work for me is:

1. Build.

2. Right click on project name. The Build Analyzer window goes blank.

3. Select Refresh.

4. Click back in a code window. Analyzer window updates.

Senior III
April 28, 2025

I can confirm. It seems the trick is to:

  • Right click on project name and Select Refresh
Visitor II
July 29, 2025

This is an incredibly frustrating bug. 

For me, none of the clicking and refreshing of the project works. The only alternative to rebooting the entire IDE I've found is to close the build analyzer before building, then building, then re-opening it from the Window menu and refreshing.