Debugger is showing signed value for unsigned char
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-18 8:05 AM - last edited on ‎2024-09-19 12:03 AM by mƎALLEm
Hello guys,
I have a problem like this. How can I fix this problem
- Labels:
-
STM32Cube MCU Packages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-19 10:20 PM
I tried but it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-19 10:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-20 12:00 AM
Here are some things to try.
- Create a new project with the same variable. Then in the main while loop, just increment one of the array index. Add a HAL delay of maybe 10ms. Then watch the Live Expressions to see if you see if the value go negative.
- Create a new project and initiate all the peripherals. Then copy your source files to that project and try again.
- Is your array update inside an interrupt, outside of an interrupt, or both?
- Show your code that updates the array.
- What version STM32CubeIDE are you using?
- Which STM32 uC or development board are you using?
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-09-20 12:17 AM
Again, could you please attach your project as we could reproduce the behavior?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-20 12:52 AM
Just to check:
can you write the variables not by pointer->array - only 3 bytes, like this:
uint8_t txData0, txData1,txData2;
Then show, what in debug is shown... for txData0 , etc...

- « Previous
- Next »