Using IDLE Line Detection + DMA on STM32L42x
In my opinion one of the simplest ways to receive an unknown amount of data has been this post which details how to use IDLE line detection to trigger the DMA to call the HAL_UART_RxCpltCallback function. This then reads the data received via UART fr...