Redirecting printf() does not work
Hi guys,
I know it’s an old thread, but one of the few that comes up on top of Google’s hitlist.
I just want to make it a bit more clear, how to get it working:
Simply move the CubeM-generated syscalls.c to your src-Folder, put the PUTCHAR_PROTOTYPE define in your main.h (in a USER CODE section) and then your PUTCHAR_PROTOTYPE function will be called correctly.
If you have no syscall.c, just implement the _write function.
Hope this makes it more clear.