Problem while displaying a live variable of type float in MCUXPRESSO

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

Problem while displaying a live variable of type float in MCUXPRESSO

903 Views
maratheapurv
Contributor III

Hello,

I am new to the MCUXPRESSO IDE and was exploring the "live variables" features. While doing so I encountered that when viewing a live variable "d" which is equal to addition of a few other variables all of type float, the value of d while the program is running is a random number.

When the program is paused/suspended , the value is displayed in the float format. Why is this happening?

Thank You,

Apurv.

pastedImage_3.png                        pastedImage_4.png

0 Kudos
5 Replies

704 Views
mohsin_butt
Contributor II

Hi,

any update on this issue. We are experiencing the same problem:

IDE: MCUXpresso IDE v11.0.0 [Build 2516] [2019-06-05]

Host: Windows 10 Pro

Debug-Probe: JLink

uController: MKL13Z64

Regards,

0 Kudos

704 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Formatting of floating point numbers in conjunction with "live variables" will be fixed in the upcoming 11.1.0 release.

Greetings,
MCUXpresso IDE Support

0 Kudos

704 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Hi

I have taken a look at this report in version 11.0.0 of MCUXpresso IDE and so far I have not duplicated your results.

Please can you clarify:

The version of the IDE you are using and the host OS?

The Debug probe and firmware you are using? e.g. OpenSDA CMSIS-DAP, JLink etc.

Whether you can demonstrate this with any global float or is the result of additions significant?

The 'random' number is almost certainly the conversion to decimal of the hex value of the variable - i.e. not the float interpretation of the mantissa and exponent.

Yours,

MCUXpresso IDE Support

0 Kudos

704 Views
maratheapurv
Contributor III

Also with the OPENSDA debugger I cannot perform real time operation ie. I

can view the variables in real time but cannot change their variables in

real time. Is this because I am using the open sda debugger? Can the real

time control be performed with a segger jtag debugger?

I am working with the FRDM-KV31F board which uses the KV31F512VLL12 uC.

Thank You for your time,

Apurv.

On Fri, Jul 5, 2019 at 10:55 AM apurv marathe <maratheapurv@gmail.com>

0 Kudos

703 Views
maratheapurv
Contributor III

MCUXpresso IDE v11.0.0 , OS : WINDOWS 10

OpenSDA debugger

The images I had attached along with the query were of a global float

expression.

As you mentioned I too realized that it might be the decimal representation

of the generated hex number. So how do i get to display it in its float

form?

Thank You,

Apurv Marathe.

On Wed, Jul 3, 2019 at 1:44 PM lpcxpresso_support <admin@community.nxp.com>

0 Kudos