cancel
Showing results for 
Search instead for 
Did you mean: 

When i use HAL_UART_Transmit and HAL_UART_Receive, and then after it use HAL_UART_Receive_DMA, the dma doesn't work. Is there a reason for this? (stm32g473cct3)

TMich.1
Associate III
 
4 REPLIES 4
Foued_KH
ST Employee

Hello @TMich.1​ ,

Please you can refer to this link, it may helps you : FAQ: STM32 HAL UART driver - API and Callbacks

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

thank you, but it does not say anything about combining dma and normal blocking mode.

For the DMA mode, the UART half transfer callback or the transfer complete callback is called.

0693W00000aJPsKQAW.pngWhen DMA is used, the MX_DMA_Init shall always be called before any other HAL_***_Init (where *** is any peripheral with a HW dependency on DMA init code).

Make sure that :

  • GPIO
  • DMA
  • SystemClock_Config
  • the rest

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

thank you, everything was allright, it ended up being the boot0 jumper that had a bad connection.