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中如何使用printf输出?

Other Parts Discussed in Thread: CC3200

TI的专家和各位大牛,你们好!

我用的是CC3200的LaunchPad,才开始学,但是现在连简单的输出也无法显示出来。

#include<stdio.h>
/*
* main.c
*/
void main() {
printf("hehe%d", 100);
while(1)
{}
}

这是main.c代码,很简单。

.cmd文件修改了:

SECTIONS
{
.intvecs: > RAM_BASE
.init_array : > SRAM_CODE
.vtable : > SRAM_CODE
.text : > SRAM_CODE
.const : > SRAM_CODE
.cinit : > SRAM_CODE
.pinit : > SRAM_CODE
.data : > SRAM_DATA
.bss : > SRAM_DATA
.sysmem : > SRAM_DATA
.stack : > SRAM_DATA(HIGH)
.cio : > SRAM_DATA
}

添加了.cio。不知道对不对?

另外在project的properties中修改了heap和stack的值,都为0x600,。

debug中勾选了enable CIO...

level of printf/... 也选择了full

试着更改了编译器,我的CCS是v6的,用了5.2.5和更高版本的编译器。

编译都没问题,但是每次debug都没法显示CIO console,只有和工程同名的和两个CDT console.

另外Target Configuration用的是教程里的CC3200.ccxml.

实在不知道为什么会显示不出来CIO的console,希望大牛们能帮帮我!