Hi,
My unsigned char test = 128.
If i watch this in my debug consol on cube ide i see -127.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-10 1:23 AM
My problem is simple 3 week ago i created an uint_8 value = 128 all work fine i can see 128
2 week ago now i see -127 so i changed my uint8_t to char and everything work i see 128 again
1 week ago i see -127 so i changed again to unsigned char and everything work i see 128 again
but now once again i see -127 when i create an unsigned char = 128. can someone explain to me how that can be possible
Thanks for you'r help .
Alexis.
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-10 2:42 AM
It's not a bug, it's an Eclipse feature.
It shows the correct value when using number format Default, but interpretes it as (signed) integer with number format Decimal.
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-10 2:42 AM
It's not a bug, it's an Eclipse feature.
It shows the correct value when using number format Default, but interpretes it as (signed) integer with number format Decimal.
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-10 4:07 AM
I was a litte bit lost due to the fact that the display changed when i changed from uint8_t to char or unsigned char but yes i m feeling a little silly
Thank you !
