stm32h7 uart IDLE
Hi,
MCU - STM32h743
I have a use case where I need to receive a large chunk of data on UART, and the RX data length is unknown. I have read ST articles about how to do this using the IDLE feature with circular DMA (HAL_UARTEx_ReceiveToIdle_DMA). However, I have a few doubts about this.
I read that you can enable interrupts for DMA TC, HT, and IDLE events to handle this. For example, if I have a DMA buffer of 3 KB and I receive 1 KB of data on UART, and if I understand correctly, this should trigger an IDLE interrupt when communication stops after receiving 1 KB. But will this interrupt also confirm that the data has already been copied to the DMA buffer? How can I be sure that the data has already been copied when I have the IDLE interrupt so that I can copy the data from the DMA buffer ?
