Hi @cfilipescu ,
The CubeMP1 HAL does not contain HAL_UARTEx_ReceiveToIdle functions, but you could easily reuse them from CubeH7 which share almost same UART/USART HW.
See also this H7 post which also link to an interesting page: https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx#idle-line-or-receiver-timeout-events
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'