sprintf stops execution
Thank you mazensaad
the code in ide is as below
- include
- include "stm32f4xx.h"
- include "stm32f4_discovery.h"
char s 200;
int i;
int main(void)
{
i=0;
sprintf(s,"Text :");
sprintf(s,"Text :%d",i);
sprintf(s,"Text :");
for(;;);
}
but when i press the post button i the char s loses his brackets,
anyway this section was a part of a bigger project and the printout was in a LCD display.
So when i put the sprintf function the program stops only when the sprintf has parameters.
I make a new project only with this code and i have the same results.
Going step by step with the debugger the execution stop in the second sprintf.
Do i must change the _write routine in syscalls.c ? But this is not a printf to make a redirection.
Thank you for your time and best regards
Akis