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.

[参考译文] LAUNCHXL-CC1310:控制台 IO 输出仅显示5行、但在打印到主机显示屏时不显示任何内容。

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1416137/launchxl-cc1310-console-io-output-only-displays-5-lines-then-nothing-when-printing-to-host-display

器件型号:LAUNCHXL-CC1310

工具与软件:

我创建了这个非常基本的程序、用来测试是否可以将调试信息打印到 CCS 控制台。  

CIO 中的输出显示:

[Cortex_M3_0]您好、世界0!
世界,你好!
世界,你好!
世界,你好!
世界,你好!

当我清除控制台时、我不再看到任何输出。 当我重新启动时(在清除控制台之前或之后),我也不会得到任何更多的输出。  

我想知道 CIO 在 CCS 中配置是否错误、而是仅接收/处理前5行。  

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void *mainThread(void *arg0)
{
Board_init();
Display_Params params;
Display_Params_init(&params);
Display_Handle display;
display = Display_open(Display_Type_HOST, &params);
int i=0;
while(1) {
Display_printf(display, i, 0, "Hello world %u!", i);
i++;
}
return NULL;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX