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.

Problem using puts("Hello World\n") on TIVA launchpad CCSv5.4

Hello,

I have added the following line

puts("Hello World\n"); to the existing tricolor LED demo program ,just before it enters the while loop for flashing of LEDs. But it is not working. The program doesnot output "Hello World" in the CCS console, but the while executes fine. I undertand that stdout is normally directed to the console via the debugger buffer. When I replace puts with printf, control is transferred to the Fault_isr and the whole program stops working.

What am I doing wrong? The code is appended below:

puts("hello world\n");

while(1)

{

// Turn on the LED

GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3, ui8LED);

// Delay for a bit

SysCtlDelay(2000000);

// Cycle through Red, Green and Blue LEDs

if (ui8LED == 8) {ui8LED = 2;} else {ui8LED = ui8LED*2;}

}

Regards