I have a real STM32F103ZE hardware which i program simple test printf redirect to STDOUT UART.
If i put printf("Test"); then it does not output anything until to UART until it reaches 64 bytes and then outputs.
If I put printf("Test\n"); then it instantly transmits to UART.
It seems adding the new line \n character seems to change the printf behavior.
I saw the ARM Compiler documents but it does not seems to be mentioned anywhere.
Can anyone comment on this?
The following code should work:
printf ("Test"); fflush (stdout);