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:在版本7.2 中对CCS的printf支持

Guru**** 2604115 points
Other Parts Discussed in Thread: CCSTUDIO

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/630332/ccs-printf-support-for-ccs-in-version-7-2

主题中讨论的其他部件:CCStudio

工具/软件:Code Composer Studio

已尝试MSP430 CCStudio编译器的printf支持中的内容,但在fputc中出现重拨错误

#ifdef UART_printf
int fputc (int _c,注册文件*_fp);
int fputs (const char *_ptr,register file *_fp);
#endif

这会产生错误

错误#1.0056万:重新定义符号"fputc":首先在"./main.obj"中定义;在"C:\ti\ccsv7\tools\compiler\ti-CGT-MSP430_MSP430_MSP.3.LTS\lib\rts430_eabi.lib<fputc.obj>"中重新定义16.9

“fputs”出现相同的错误

我是否确实需要printf来解决此问题。 在编译器选项中将其设置为最小。