I want to implement a demo which uses UART with a dma channel to receive data of variable length, but I can't find a proper method to achieve this. I have referred to the sepcification, and I think using RX timeout interrupt to inform MCU to get data may be a method, but I can't find a stable way to trigger this interrupt, because it's hard to ensure the rx fifo have remaining data in every transmission. So, if anybody have a good method, please give me a hint.
Thanks.