printf - stm32f4 sprintf don't accepts parameters -
i have problem sprintf function in stm32f4 discovery board. use win 10 32bit , ac6 version 1.14.1.201707031232 code in new project , in standard libraries.
#include "stdio.h" #include "stm32f4xx.h" #include "stm32f4_discovery.h" char s[200]; int i; int main(void) { systeminit(); = 0; sprintf(s, "text :"); sprintf(s, "text :%d", i); sprintf(s, "text :"); for(;;); } in debug , normal execution (in bigger project same instructions) program stops infinite in second sprintf. if sprintf function has no parameters executes normally. try increase heap , stack in linker script no solution. missing in syscalls.c module?
thank in advance.
Comments
Post a Comment