Float value implementation and debugging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-17 11:51 AM - edited ‎2024-12-17 12:09 PM
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.
Solved! Go to Solution.
- Labels:
-
STM32G4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-17 12:27 PM
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.
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-17 12:27 PM
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.
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-17 12:41 PM
You are a life saver!!! That solved my issue.
