Global Variables Plot and Trace

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Global Variables Plot and Trace

1,125 Views
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 Kudos
3 Replies

1,060 Views
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 Kudos

1,095 Views
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 Kudos

1,106 Views
ErichStyger
Senior Contributor V

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 Kudos