MCUXPresso IDE loading global variables too long

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXPresso IDE loading global variables too long

ソリューションへジャンプ
2,191件の閲覧回数
jake111
Contributor I

When I enter debug mode and I want to watch a global variable,I open the "Global Variables" view.

It takes too long time to "Loading global variables from build artifacts",and nothing can be done before it finishes.

Is it necessary that every time I open  "Global Variables" view,it loads all the global variables?

Do you have any solutions?

 

By the way,The debug reports an error If I accidentally slide the slider to an unknown memory address in the Memory view.

0 件の賞賛
返信
1 解決策
2,122件の閲覧回数
RaRo
NXP TechSupport
NXP TechSupport

Hello @jake111,

As you point out, it takes more time to show the global variables when you have lots of them. This is a normal behavior as MCUXpresso IDE User Guide mentions "The usefulness of Live Variables reduces as the number of Globals monitored increases".

Also, it mentions: "Global and Static variables are stored within system RAM memory and can therefore be accessed by the debug chain (read and potentially written) while an application is both paused and running." So, it might be useful to do a code optimization: Tutorial: How to Optimize Code and RAM Size | MCU on Eclipse.

Other suggestions could be closing other projects or views that you may have open and that you are not going to use before debugging (this is because the views could need data from the target which can slow down things), or to open a new workspace.

Is it necessary that every time I open "Global Variables" view, it loads all the global variables?

You could select which variables you want to load checking the boxes of the variables you need and clicking OK. To simplify the selection, you could use type to filter to search for the variables you want to select.

RaulRomero_0-1684434954829.png

RaulRomero_1-1684434954838.png

[MCUXpresso IDE User Guide. Figure 12.33. Add Global Variables and Figure 12.34. Global Variable Selector]

Best regards, Raul.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,150件の閲覧回数
RaRo
NXP TechSupport
NXP TechSupport

Hello @jake111,

Could you please tell us which microcontroller, SDK and MCUXpresso IDE version are you using?

Is this behavior still there if you use another project, example or SDK?

Best regards, Raul.

0 件の賞賛
返信
2,146件の閲覧回数
jake111
Contributor I
MCU:MIMXRT1176DVMAA
SDK:SDK_2_13_1_MIMXRT1176xxxxx.zip
MCUXpresso IDE:11.7.1[build 9221][2023-03-28]
It doesn't seem to be ralated to the version of SDK or IDE.
This behavior exists in every project,especially when the project has a lot of global variables.
0 件の賞賛
返信
2,123件の閲覧回数
RaRo
NXP TechSupport
NXP TechSupport

Hello @jake111,

As you point out, it takes more time to show the global variables when you have lots of them. This is a normal behavior as MCUXpresso IDE User Guide mentions "The usefulness of Live Variables reduces as the number of Globals monitored increases".

Also, it mentions: "Global and Static variables are stored within system RAM memory and can therefore be accessed by the debug chain (read and potentially written) while an application is both paused and running." So, it might be useful to do a code optimization: Tutorial: How to Optimize Code and RAM Size | MCU on Eclipse.

Other suggestions could be closing other projects or views that you may have open and that you are not going to use before debugging (this is because the views could need data from the target which can slow down things), or to open a new workspace.

Is it necessary that every time I open "Global Variables" view, it loads all the global variables?

You could select which variables you want to load checking the boxes of the variables you need and clicking OK. To simplify the selection, you could use type to filter to search for the variables you want to select.

RaulRomero_0-1684434954829.png

RaulRomero_1-1684434954838.png

[MCUXpresso IDE User Guide. Figure 12.33. Add Global Variables and Figure 12.34. Global Variable Selector]

Best regards, Raul.

0 件の賞賛
返信