The DMA will no longer work if the data transferred by DMA is larger than the set length.
I use UART IDLE + DMA to implement "UART receive indefinite length data".

When the one-time receiving length of UART is greater than the set length of DMA, DMA will no longer work.
I want to discard the data and continue to receive data.
How can I deal with the situation?