I am able to get printf(…) working to the CCS console by doing the following:
Proj properties -> Debug -> Enabled CIO function use
Proj properties -> Build -> Linker - Basic Options (set heap stack size to 500)
Given the interaction of stdout, CCS w/debugger and the FET works for printf(…), I am encouraged that reading from stdin is also possible.
My environment MCU: MSP430F5171 IDE: Code Composer Studio 5.5.0.00077
The code fragment is as follows:
static char response[32] ; ...
fgets(response, 32, stdin) ;
// Code above immediately falls through to here and does not block for my input from the console
The compiler/linker have no warnings/errors. The code fragments I am using work in standard C/C++ environments with Eclipse IDE.
I am new to firmware but have been able to get some custom board bring up working, deal with I2C, use interrupts, timers, etc… so I have marginal experience but enough to use the basic tools and MCU. Any help is great appreciated.