cancel
Showing results for 
Search instead for 
Did you mean: 

Debugger is showing signed value for unsigned char

Guven47
Associate II

Hello guys,

I have a problem like this. How can I fix this problem

Debug_Error.PNG

24 REPLIES 24

I tried but it didn't work.

Debug_Error.PNG

Here are some things to try.

  1. 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.
  2. 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?

 

 

 

I Can't Believe It's Not Butter. If you find my answers useful, click the accept button so that way others can see the solution.

Again, could you please attach your project as we could reproduce the behavior?

 

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.

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... 

If you feel a post has answered your question, please click "Accept as Solution".