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.
Hello,
I'm using the evalboard "F2837x controlCARD v1.1" with CCS 6.1.2.00015
I used the demonstration exemple named IDDK_PM_Servo_F2837x.
I want try a printf.
To do this, I follow some tips on Ti:
- Add #include <stdio.h>
-Add in code printf("Hello word");
- In project option \Build\C2000 Compiler\Advanced Options\Library Function Assumptions\ "Level of printf... => set to "Full"
- In project Option/Debug case "Enable CIO function use" is checked
On "CCS Debug" view, I have only a console named "IDDK_PM_Servo_F2837x" not a "CIO" console:
I have forget other thing?
Thank you.
Hi,
I tested with the example IDDK_PM_Servo_F28387x-v2,
Bellow are the modification done to compile and test: (Same modification done when I started with v1 project)
- In project properties \ General, part "Device" Set Variant to "TMS320F28377D" (Else error message on compile step because not know the target)
- In project properties \ General, part "Advanced settings", set "Linker command file" to "F2837x_Headers_nonBIOS_cpu1.cmd" else default project linker generate error on link.
- In project option \Build\C2000 Compiler\Advanced Options\Library Function Assumptions\ "Level of printf... => set to "Full"
- In project Option/Debug case "Enable CIO function use" was already checked => No change
- Add #include <stdio.h> on the top of IDDK_PM_Servo_F2837x.c
-Add in code printf("Hello word"); just before idle loop for(;;) in main function.
- In IDDK_Servo_2837x_RAM_lnk_cpu1.cmd, add: ".cio : > RAMGS0GS1, PAGE = 1"
- Compile and Program (in RAM, on my v1 test, I'm in Flash) (My Test board is linked to the computer via the USB cable named "A:J1"
- Run program, set "EnableFlag" variable to 1 to goes until idle loop.
- Check in Consol Window:
No printf message appears... :-(
- Is I'm in the good Console?
- Must I have a specific Test board SW1 and A:SW specific position? (F2837x controlCARD v1.1)
- Are they other steps I forgot?
Thank for your help.
Hi,
As per your above steps, everything is right for the printf functionality.
Could you please put more number of the printf("...Init Complete"); statements? like below
printf("...Init Complete");
printf("...Init Complete");
printf("...Init Complete");
printf("...Init Complete");
printf("...Init Complete");
printf("...Init Complete");
printf("...Init Complete");
Then check. I have observed that for one printf statement, some times console will not dsiplay.
-Aditya