Why uint8_t uint16_t shows negative when value more than 127 or 32767.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-03 7:11 AM
Hi Everyone
I confuse about uint8_t or uint16_t on stm32cubeide. When going to debug mode the Live Expressions (tab bar) when I change format to decimal value it shows negative value if the value more than 127 for uint8_t and 32767 for uint16_t. It should be store value 0 to 255 or 0 to 65535 without sign. Is it correct?
Hex format
Dec format
Best regard
watchaphong
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-03 8:49 AM
The Live Expressions tab is buggy at best. Be happy that it's working at all.
It is interpreting the value as an integer instead of an unsigned integer. This is strictly an IDE display bug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-03 8:49 AM
The Live Expressions tab is buggy at best. Be happy that it's working at all.
It is interpreting the value as an integer instead of an unsigned integer. This is strictly an IDE display bug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-03 11:04 PM - edited ‎2024-03-04 1:25 AM
Hello @watchaphong and welcome to the ST Community :smiling_face_with_smiling_eyes:.
Thank you so much for reporting this. I've been able to reproduce the issue and I will report it to the concerned team for correction.
An internal Ticket 175153 is created for the tracking of this bug.
(PS: Ticket 175153 is an internal tracking number, not accessible by customers and usable for internal tracking).
Thank you again for reporting.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-05 12:00 PM
...and 5 months later, the bug is still there!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 12:30 AM - edited ‎2025-02-06 3:50 AM
We are in 2025 and we still have the issue... Crazy @STTwo-32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-11 4:44 AM
Now completely stopped working the full tab
