2023-02-26 11:59 PM
Hi, I am using cubeMx generate the STM32F302VE project, which for receiving the usart1 date by DMA circual mode.
My config as below:
Now, the project can enter the "USART1_IRQHandler()", but can't run to "__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);", because "huart->ReceptionType != HAL_UART_RECEPTION_TOIDLE". Details can refer the attachment and the following picture.
Solved! Go to Solution.
2023-02-27 01:27 AM
Hi, I already know what's the reason of this question.
I shoud call HAL_UARTEx_ReceiveToIdle_DMA() which is declaration in "stm32f3xx_hal_uart_ex.h" replace the HAL_UART_Receive_DMA().
2023-02-27 01:27 AM
Hi, I already know what's the reason of this question.
I shoud call HAL_UARTEx_ReceiveToIdle_DMA() which is declaration in "stm32f3xx_hal_uart_ex.h" replace the HAL_UART_Receive_DMA().
2023-02-27 01:27 AM
.