MCUXPresso IDE loading global variables too long

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCUXPresso IDE loading global variables too long

跳至解决方案
2,211 次查看
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,142 次查看
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,170 次查看
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,166 次查看
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,143 次查看
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 项奖励
回复