cancel
Showing results for 
Search instead for 
Did you mean: 

Build Analyzer issue

matt-crc
Senior II

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

 

20 REPLIES 20
Kraal
Lead

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.

Mahmoud Ben Romdhane
ST Employee

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

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

@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.

@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.  

 

same here.

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

@matt-crcThank you for the tip.

Do you mean that you have to refresh the project after every (re)build for the build analyzer to work ? Or just once per session ?

matt-crc
Senior II

@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

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'

michael_vos
Associate

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.