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/msp430fr2311: Can't not use printf();

Part Number: MSP430FR2311

Tool/software: Code Composer Studio

I want to use printf(); in msp430fr2311 lauchpad but it can't work successfully.

Is is there any way I can use if i want to see my variable (now i want to use printf)?   If there is any way, please tell me.

 Following is my code and errors is beyond 

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

int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power-on default high-impedance mode

P1DIR = 0x01;
P2DIR = 0x00;

printf("test");

return 0;
}