2024-03-03 07: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.
2024-03-03 08: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.
2024-03-03 08: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.
2024-03-03 11:04 PM - edited 2024-03-04 01: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.
2024-08-05 12:00 PM
...and 5 months later, the bug is still there!