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;
}