I faced a stack overflow problem in my STM32F4xx project. It came out that printf is the cause. FreeRTOS support suggests to use printf-stdarg.c instead. I have removed all stdio.h includes in my project. It complains of "incompatible implicit declaration of built-in function 'printf'" but compiles OK meaning the linker has used the built-in library.
My question is how to how to prevent linker (gcc) from using built-in printf/sprintf function.
int printf(const char *format, ...). - byxor