cancel
Showing results for 
Search instead for 
Did you mean: 

how to cover previous HAL_UART_Transmit_IT with a newer one?

Olly Kao
Associate III

I'm trying to transmit a newer data while the previous transmit interrupt hasn't finished, I simply just call HAL_UART_Transmit_IT again and the result is the first called interrupt will finish its whole job and the second call do nothing, I know there're Abort function to stop previous transmit, but this is too slow, I need the newer data immediately cover the transmitting data. Any help???

2 REPLIES 2
TDK
Guru

Why is abort/restart too slow? It should do things immediately, minus a some clocks for all the HAL overhead.

You can't change the data mid-byte.

If you feel a post has answered your question, please click "Accept as Solution".

Change your buffering paradigm. The USART interrupts for each byte.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..