UART interrupts: First character and Timeout at the same time doesn't work
Posted: Tue Jan 03, 2023 6:58 pm
I can get an interrupt on every character by setting the rxfifo_full_thresh value to 1.
If I leave the rxfifo_full_thresh value high (100), I can also get a rx_timeout_thresh = 1 to interrupt (as soon as the rx character stream stops).
I can't get both to occur with any configuration. It seems like as soon as I get the rxfifo_full interrupt, it disables the timeout interrupt feature. Interrupt mask is definitely still set after my rxfifo_full interrupt happens.
I really need to send my reply packet as soon as I get the first character (context in the protocol is important).
The timeout function is very useful to indicate the end of the packet so I can process it before another one is started.
Any hints on how I can get both interrupts to work?
Thanks!
If I leave the rxfifo_full_thresh value high (100), I can also get a rx_timeout_thresh = 1 to interrupt (as soon as the rx character stream stops).
I can't get both to occur with any configuration. It seems like as soon as I get the rxfifo_full interrupt, it disables the timeout interrupt feature. Interrupt mask is definitely still set after my rxfifo_full interrupt happens.
I really need to send my reply packet as soon as I get the first character (context in the protocol is important).
The timeout function is very useful to indicate the end of the packet so I can process it before another one is started.
Any hints on how I can get both interrupts to work?
Thanks!