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.

Getting printf(); to work in Code Composer Studio v6

Other Parts Discussed in Thread: MSP430F5438A

Hello,

I am trying to get a printf(); statement to send a group of chars to the console. I used #include <stdio.h> and still no output. I cannot figure out how to change the heap or stack as some views suggested. there does not seem to be an option. Here is my code:

#include <msp430.h>
#include <stdio.h>

int main(void) {
	WDTCTL = WDTPW | WDTHOLD;		// Stop watchdog timer
	P1DIR |= 0x01;					// Set P1.0 to output direction

	for(;;) {
		volatile unsigned int i;	// volatile to prevent optimization

		P1OUT ^= 0x01;	// Toggle P1.0 using exclusive-OR
		printf("Hello world\n");

		i = 10000;					// SW Delay
		do i--;

		while(i != 0);
	}
	
	return 0;
}

The Target is the MSP430F5438A Experimenters board. It is hooked up with a FET430UIF debugger and a usb cable to the PC. I have tried sprintf() as well but nothing works. Thank