Delay before starting UART transmissions?

Hello!

 

I am using 6 uarts to send data back and forth in one thread.

I can send data on Debug with debug mode:

I can sen data on Debug with normal restart.

I can send data on Release with debug mode.

I loose data at the beginning when sending data on Release with normal restart.

 

So what I did to overcome this problem was to add a delay of 50 ms:

which solved the problem.

I know that the release mode uses an optimization flag in order to speed up certain places in the code.

However, I could not really find any document related to timing.

Are there any documents available ?

 

regards,

Volkan Coskun