• TI Thinks Resolved

[FAQ] CCS/MSP-EXP430FR5994: Using puts

Intellectual 290 points

Replies: 4

Views: 142

Part Number: MSP-EXP430FR5994

Tool/software: Code Composer Studio

Hello,

I'm new to the MSP430. Using the MSP43fr5994 launchpad,

Using Code Composer Studio  9.1.0.00010

Code is based on 'BlinkLED...' example.

Code is compiling and running well (LED is toggled) but I'm not seeing any output of the puts in the CCS 'Console' tab.

What is missing?

#include <driverlib.h>
#include <stdio.h>

int main(void) {

    volatile uint32_t i;

    // Stop watchdog timer
    WDT_A_hold(WDT_A_BASE);

    // Set P1.0 to output direction
    GPIO_setAsOutputPin(
        GPIO_PORT_P1,
        GPIO_PIN0
        );

    // Disable the GPIO power-on default high-impedance mode
    // to activate previously configured port settings
    PMM_unlockLPM5();

    puts("Started");

    while(1)
    {
        // Toggle P1.0 output
        GPIO_toggleOutputOnPin(
            GPIO_PORT_P1,
			GPIO_PIN0
			);
        puts("1");

        // Delay
        for(i=100000; i>0; i--);
    }
}

Thanks.