Skip to main content
Olly Kao
Associate II
September 16, 2020
Question

how to cover previous HAL_UART_Transmit_IT with a newer one?

  • September 16, 2020
  • 2 replies
  • 667 views

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???

This topic has been closed for replies.

2 replies

TDK
September 16, 2020

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""."
Tesla DeLorean
Guru
September 16, 2020

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

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