HAL_UART_Transmit BUG???
When using HAL_UART_Transmit you normally give a timeout.
If Transmission time exceeds Timeout the function exits with HAL_TIMEOUT.
There're two issues with this approach:
1) Timeout should be retriggerable i.e. if I transmit 20 bytes @ 9600Baud an put a timeout of 10 I expect a timeout not just after 10ms because my transmission takes longer but only if between two successive bytes there's a delay longer than timeout
2) All Interrupt bits are cleared. Why? Even RX for example. TX may fail (it shouldn' t )but why I should reinitialize the UART from the beginning.
Thanx