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.

TMS320C6678: 我使用add_device和freopen将printf重定向到串口,但是如何将printf重新恢复到console输出呢?

Part Number: TMS320C6678

RT

我在某些应用场景下,在线仿真时,初始化时将printf映射到了调试串口,但是程序在线运行过程中我希望能够printf恢复打印到CCS console中,请问该如何解决?

我查阅CCS 的help content其中找到using Run-time-support functions and building libraries-> The C I/O function:

1.描述说有default 输出设别是HOST,但是应该如何操作呢?

2.映射到串口的操作也是我参照该章节实现的;