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.

Set format as Hexadecimal in CCSv4



While debugging, CCSv4 by default displays the values in Decimal format. How can this be modified to choose Hexadecimal format because that would be the better way to look variables?

  • Anuj,

    If you refer to the variables displayed in the Watch window, simply right-click on it and select Format (check the attached screen).

    Hope this helps,

    Rafael

     

     

     

  • Thanks, I have found that myself too.

    I want to know how to avoid doing that each and everytime, and for all your variables. In CCS3, one has the option of selecting hexadecimal as the default setting. I was not able to find the same in CCS4.

  • Anuj,

    Likewise, I couldn't find a way to set this as the default watch window format. Not sure if this may be an Eclipse or CCS "feature", but at least it keeps the desired format of the watch variables between debug sessions, which helps a little.

    I'll get back if I find anything different, ok?

    Regards,

    Rafael

     

  • There is a place to set the default display format for variables under Window->Preferences->C/C++->Debug->"Default Variable Format". However this appears to not be working correctly as changing this to Hex does not seem to have any effect. It looks like it might be a bug, I'll submit it to the CCS team.

  • Yeah, I have tried all the possible options, including this one, but failed to find the right setting.

    Moreover, it doesnot keep the desired format of the watch variables between debug sessions, which Rafael has pointed out. May be something more needs to be done to use this feature which I am not aware of.

  • Aarti said:

    There is a place to set the default display format for variables under Window->Preferences->C/C++->Debug->"Default Variable Format". However this appears to not be working correctly as changing this to Hex does not seem to have any effect. It looks like it might be a bug, I'll submit it to the CCS team.

    That option was for the original variables (local/watch) view with Eclipse. However we made changes to those views in CCSv4 and did not associate those options with the new views. I agree that this is something that should be addressed.

  • I have filed IR# SDSCM00033143 to track this.

  • Is there any word on the progress of SDSCM00033143?

    I am finding this to be more than a minor inconvenience in CCS.  The default seems to be not decimal, but "natural".  I frequently use the "unsigned char" type (or "uint8_t") to represent bytes or for small counters or flags.  Nnfortunately, "natural" displays these as characters, which is even less helpful than decimal in these cases.

    So even though this issue is marked as answered (and technically, it is) a new question remains:  When will this be fixed?

    Mike