Content originally posted in LPCWare by Rithus on Sat Apr 12 08:04:48 MST 2014
Hi all, i am using lpc1769 and whenever i run the program i will have a hard fault handler when i have a sprintf function in a header file is there any solution to this?
void callprint(int x)
{
char *msg;
sprintf(msg,"%d%d\n",x,x);
Uart_Send((uint8_t *)msg , strlen(msg));
}