Skip to main content
Associate II
December 17, 2024
Solved

Float value implementation and debugging

  • December 17, 2024
  • 1 reply
  • 1533 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

 

 

 

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

Karl Yamashita
Karl YamashitaBest answer
Lead III
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. 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
Associate II
December 17, 2024

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