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.

CCS6: what .cio section mean?

After building a project, in the map there will be a section called .cio. This is for CIO buffer, so is it still necessary to set heap buffer big enough to make printf work?

I have try following "http://processors.wiki.ti.com/index.php/Printf_support_for_MSP430_CCSTUDIO_compiler", but still I can't see the result in CCS console.

I can make printf work by "setvbuf"

static uint8 cio_buf[128 /*BUFSIZ*/]; //BUFSIZ is 256 defined in <stdio.h>, which is too large for my program and will cause linking failure due to not enough RAM.

if(setvbuf(stdout, cio_buf, _IOLBF, sizeof(cio_buf)))
{
assert(0);
}

Code Composer Studio: Version: 6.0.0.00190

I am using G2744, which has 1k RAM.

**Attention** This is a public forum