Other Parts Discussed in Thread: TMDSDOCK28035
Hello, I am using TMDSDOCK28035 board, I am very new to CCS. How do I use printf() to view values of a particular variable. Does the "Watch" window perform the same action?
Appreciate any help.
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.
Other Parts Discussed in Thread: TMDSDOCK28035
Hello, I am using TMDSDOCK28035 board, I am very new to CCS. How do I use printf() to view values of a particular variable. Does the "Watch" window perform the same action?
Appreciate any help.
Sandhya rani Jetti said:Hello, I am using TMDSDOCK28035 board, I am very new to CCS. How do I use printf() to view values of a particular variable. Does the "Watch" window perform the same action?
Appreciate any help.
Hello,
You can use the watch window and don't need to use a C I/O function. To learn some basics of debugging code I suggest the piccolo workshop or the CCS fundamentals workshop. It will get you started.
http://processors.wiki.ti.com/index.php/C2000_Piccolo_One-Day_Workshop_Home_Page
http://processors.wiki.ti.com/index.php/C2000_Piccolo_Multi-Day_Workshop
http://processors.wiki.ti.com/index.php/Category:CCS_Training#Fundamentals_Workshops
Cheers
Lori
Thanks Lori.
Another question, I am trying to read a GPIO input value. I am using a pull down resistor circuit with a push button switch. But the input reads 1 no matter what the button position is. I am using this syntax.
value = GpioDataRegs.GPADAT.bit.GPIO30;
I am expecting to read it 0 initially, and 1 when i push the button down. I did not include a debounce loop yet.
Any help is appreciated.
Sandhya rani Jetti said:Thanks Lori.
Another question, I am trying to read a GPIO input value. I am using a pull down resistor circuit with a push button switch. But the input reads 1 no matter what the button position is. I am using this syntax.
value = GpioDataRegs.GPADAT.bit.GPIO30;
I am expecting to read it 0 initially, and 1 when i push the button down. I did not include a debounce loop yet.
Any help is appreciated.
Hi Sandhya,
I would suggest disabling the internal pull-up on the pin to see if this makes a difference. i.e. GpioCtrlRegs.GPAPUD.bit.GPIO30 = 1;
-Lori
I disconnected my additional circuit and just reading the GPIO30 value, I disable the internal pull resistor as you mentioned, it still reads 1.
Sandhya rani Jetti said:I disconnected my additional circuit and just reading the GPIO30 value, I disable the internal pull resistor as you mentioned, it still reads 1.
Things I would do to try and debug:
Lori