This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28027F: Display uint16_t* as an array of 8 bit chars in the debug view?

Part Number: TMS320F28027F

Tool/software: Code Composer Studio

I have an array of uint16_t values that contains the data of an 8-bit char array to save memory, since c2000 chips do not have an 8-bit data type. So basically to save "hi" I'm using {0x6869} instead of the usual {0x0068, 0x0069}.

Is it possible to make the expressions window in the debug view show something readable instead of "\x6869"? Maybe somehow force a cast to an 8-bit char* type in this expressions view?

  • Dmitri,

    I'm not aware of how to do this in the Expression View, but you can do something similar in the Memory View by changing the data type to "Packed Char".

    Example:

    Let me know if this works for what you can trying to do (and if not, please provide additional information on what you are trying to solve by showing the data in the Expression view).

    In the mean time, I'm asking around to see if there is something similar that can be done in the Expression view, and will report back if I learn anything.

    Thanks,

    Ricky