How to enable the HAL_UARTEx_RxEventCallback function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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:
- enable DMA, but disable DMA interrupt;
- enable USART1, and enable UART_IT_IDLE;
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.
- Labels:
-
STM32F3 Series
-
UART-USART
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-27 1: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().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-27 1: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().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-27 1:27 AM
.
