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 watchdog doubt



Hi

i am using ccs and was experimented with the digital power kit with 8 channel buck.I noticed that i could not edit the watch expression variable here.How can you successfully edit the watch window and insert variables.The program that i tried debugging was to have open loop control of 8 channel buck.But when i powered the board and run ccs debug,i had certain random values,as i expected the values for input to be displayed as 9v as per the board and so for the duty ratio too.I'm posting the screenshot of watch window here.

If i want to have Gui_vin to be displayed as 9v and so and so for other things what should be done?Is there any problem with the code?

I would appreciate if you provide with some help.

Thank you

Arun

  • Arun,

    Are you working with CCS 5.3? Do you see the value to Gui_Vin getting set correctly when you run or step through the portions of code that modify it?

    The TI compiler does not initialize global and static variables that are not explicitly initialized by the user, so if you are seeing these values immediately ater the code is loaded, before it starts to run, then that may be the reason for the unexpected values. Please try stepping through your code, especially the parts that set/modify these variables and see if they are showing the expected values.