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.
单片机是TMS570LS3137。目的是利用printf将调试信息输出到SCI串口。
fputs已经重定义。引用头文件stdio.h。CCS工程中,“Enable CIO function use”已勾选。“heap size”已设为0x800。
现在的现象是:字符串能够正常输出,但printf后面携带的参数仍然打印在CCS console窗口中。如"printf("Hello World %d!\r\n",i);",SCI串口中能正常输出“Hello World !”,但"%d"对应变量i的数值在CCS console窗口输出。如果去除fputs重定义,则数据可以在console窗口完整输出。
同样的程序,在KEIL工程中,printf的数据能够完整输出到SCI串口,因此认为可以排除fputs重定义程序问题。
请问,CCS是否还需要其它配置,才能使printf的数据完全从SCI串口输出?