I try to move my project from Keil to GCC but I get some different behavior. To show the difference I use examples/ble_peripheral/ble_app_uart
The part of the code below writes "Starting" wait 500ms "." wait 500ms "." etc...
...
#include "nrf_delay.h"
...
...
...
printf("\n");
printf("Starting ");
for (int dot = 0; dot <5; dot ++)
{
nrf_delay_ms(500);
printf(".");
}
printf("\n");
printf("UART Start!\n");
...
With Keil it works as expected but with GCC it shows nothing until "\n" append and then print everything at a time.
Could you help me to fix this problem, I need to have correct UART behavior with GCC also? Is it a bug somewhere ?
Thanks for helping.