cancel
Showing results for 
Search instead for 
Did you mean: 

Debugger is showing signed value for unsigned char

Guven47
Associate III

Hello guys,

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

Debug_Error.PNG

24 REPLIES 24
Andrew Neil
Evangelist III
Pavel A.
Evangelist III

Yellow color marks values that changed since last read by the debugger, for example after doing a step or hitting a breakpoint.

 

SofLit
ST Employee

Do you mean you get a negative value for an unsigned variable?

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.

Yes,I got negative value from unsigned varible. How can I fix ?

The debugger interprets uint8 data as int8

The debugger interprets uint8 data as int8

Could you please attach a project reproducing 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.

When you created the project, did you change anything in the properties? What version STM32CubeIDE ?

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

The configurations are all the same and works properly in Keil.