sprintf causes runtime error
Hi,
I am using sprintf to format data before sending it over a UART.
STM Cube IDE 1.16.1
STM32F103
The code works in one project but not in another. I have ticked "Use float with printf in MCU/MPU Settings"
int size = sprintf(&Buffer,"{\"src_addr\":\"%s\",\"PDOP\":%5.2lf,\"HDOP\":%5.2lf,\"VDOP\":%.2lf,\"Volts\":%.2f}\n",
"2", pdop, hdop, vdop,Volts);for some reason the code end up in syscall.c
void _exit (int status)
{
_kill(status, -1);
while (1) {} /* Make sure we hang here */
}
