Problem with "HAL_UARTEx_ReceiveToIdle_DMA"
Hi,
I am using the HAL function "HAL_UARTEx_ReceiveToIdle_DMA" as follows:
void HAL_UARTEx_ReceiveToIdle_DMA(UART_HandleTypeDef *huart, uint16_t Size) {
//my actions
HAL_UARTEx_ReceiveToIdle_DMA(peripheral, buffer, COMMAND_MAXIMUM_LENGTH);
__HAL_DMA_DISABLE_IT(peripheral_dma, DMA_IT_HT);
}
It always works fine after I power up the MCU. I was continuously sending UART frames from my computer to the MCU for 2 days and it worked fine. The idle interruption was always detected.
But when I stop sending frames and then start sending them again (by disconnecting and reconnecting the TX wire), the IDLE interruption is no longer detected… until I turn off and power up the MCU again.
Why?
