Global Variables Plot and Trace

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

Global Variables Plot and Trace

2,443 次查看
astrobuf
Contributor I

Running MCUX 11.5.1 -- In the Global Variables plot view, float data is truncated to integer before being plotted, which is not so useful. Is this a bug? or is there a setting I have missed?

Peter

MCUX plot bug.png

0 项奖励
回复
3 回复数

2,378 次查看
Melania
NXP Employee
NXP Employee

Hi Peter,

It this the whole (scaled) graph? It looks to me like the graph goes a little above the 10 marking, so it don't think it truncates the values to integer. Can you please also share the values that appear in the Trace tab (next to the Plot)?

0 项奖励
回复

2,413 次查看
astrobuf
Contributor I

Hi Erich, thanks for the reply.

I replicated your result for my system, and did some more tests.The result is that the behaviour is inconsistent. It will usually work as expected, but occasionally the plot randomly decides to quantize the value to an integer. It seems to happen randomly for any debug session, and I can't seem to kick it out of the condition without restarting the debug session. I am using MCU-Link, but as you mentioned that probably doesn't matter -- it does always show the correct float value in the global vars window.

Peter

0 项奖励
回复

2,424 次查看
ErichStyger
Specialist I

Not sure why it does not work for you, but it does for me:

IDE 11.5.0:

ErichStyger_1-1653034564005.png

 

IDE 11.5.1:

ErichStyger_0-1653034549916.png

I did use a J-Link, but this should not matter imho.

 

 

0 项奖励
回复