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.

Compiler/EK-TM4C123GXL: error with sprintf() function of <stdio.h>

Part Number: EK-TM4C123GXL
Other Parts Discussed in Thread: TM4C123GH6PM

Tool/software: TI C/C++ Compiler

My process jump to FaultISR() function in tm4c123gh6pm_startup_ccs.c. Before debuging, I builted and not have errors.

My code 

#include <stdio.h>

char * __restrict Temp;

char * __restrict varI;

char varX = 65;
char temp[3];

int main(void)
{
    //
    // Configuring system's clock.
    // System's clock = 50Mhz.
    //
        SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN);

    // initLCD();

       varI = &varX;

       Temp = &temp[0];

       sprintf(Temp, "%02d", varI);

        while(1)

   {
        ;
   }
return 0;

}