Skip to main content
Graduate
December 17, 2024
Solved

Float value implementation and debugging

  • December 17, 2024
  • 1 reply
  • 793 views

Is there a proper way to implement a float value? When i try to declare a float variable and debug via the variables tab and or live expression (global variable) I keep getting incorrect values in some instances. 

I have included the float library and enabled -u_printf_float / -u_scanf_foat. 

NoviceStm32_0-1734424900179.png

NoviceStm32_1-1734424937178.png

NoviceStm32_2-1734424981648.png

 

 

 

    This topic has been closed for replies.
    Best answer by Karl Yamashita

    It could be an issue with the Live expression view

    I've seen where the Live Expression did not have correct value, but if you pause the debugger and look at the variable in the Expression tab, the value was correct. 

    1 reply

    Graduate II
    December 17, 2024

    It could be an issue with the Live expression view

    I've seen where the Live Expression did not have correct value, but if you pause the debugger and look at the variable in the Expression tab, the value was correct. 

    Graduate
    December 17, 2024

    You are a life saver!!! That solved my issue.