The USART DMA Driver in ASF4/Start generates an interrupt at the end of the buffer:
When receiving data over USART DMA, the data buffer supplied by the user is used. The RX done callback will only be generated at the end of the buffer and not for each byte.
The chip provides support for variable-length frames with an interrupt on receiver timeout:
184.108.40.206 Receiver Timeout
The Receiver Timeout provides support in handling variable-length frames. This feature detects an idle condition
on the RXD line. When a timeout is detected, the bit TIMEOUT in the US_CSR rises and can generate an
interrupt, thus indicating to the driver an end of frame.
How can I work with variable length frames and DMA, with the ASF4 drivers?