[quote user="Alan Gutierrez"]So the issue appears to be that I cannot store an unsigned char value on my mcu with a value greater than 127 (which should be the upper limit for the signed char, which I have tested numerous times now, it stores numbers exactly like signed char), signed char works perfectly though, any thoughts?[/quote]This appears to be a limitation in the Number Formats supported in the Variables view in CCS 6.2.0, which affects how the variables are displayed by the CCS debugger. Taking your example code, the default Number Format for char variables is to display the ASCII character, or a dot if the value isn't a printable ASCII character: The Variables View allows the Number Format to be changed from Default to Hex, Decimal, Octal or Binary: When Decimal is used as the Number Format there is no way to explicitly specify it to display either a singed or unsigned representation, and CCS 6.2.0 appears to treat the Decimal Number Format as implicitly signed. For unsigned char variables one work-around is to select a Hex Number Format on the variables view: Another work-around is to use the Expressions view and enter expressions which explicitly cast the char variables to unsigned int or signed int as required:
↧