My process not run and jump to FaultISR() function of tm4c123gh6pm_startup_ccs.c file. Before debugging, I built and not have errors. So anyone can help me how to use sprintf() function.
My code below
#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;
}