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/TM4C1294NCPDT: CCS hangs when printf command is used to output strings to a terminal

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software: Code Composer Studio

Hi 

I am new to TM4C1294. I am learing how to print output to a terminal such as extraputty using the UART0 on the microcontroller. When I use printf statement, it hangs and  when I pause It halts at FaultISR routine.

static void
FaultISR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}

How can i use the printf statement to a terminal?. can we use printf this way?

I had copied the example from one of from  Daniel Valvano.

UART is intialized and is able to communicate to the extraputty terminal.

Thanks for your help

  • Usually this means that you tried to read or write to a peripheral that was not enabled. Have you downloaded the TivaWare drivers? Try the example in: C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\hello
    Use the "File" "Import" feature of code composer to copy this example project into your workspace.
  • Thank you for the reply. The peripherial (UART) was initialized properly as I can see the COM port via extraputty. I modified one example UARTprintf similar to printf. This one works. 

    It seems the stdout in printf is the issue. stdout has to be directed to the UART port. This is what I believe.

    Also I check out the example you have listed in your email.