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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 3:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 6:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 7:01 AM
thank you, but it does not say anything about combining dma and normal blocking mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 7:18 AM
For the DMA mode, the UART half transfer callback or the transfer complete callback is called.
When 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 7:29 AM
thank you, everything was allright, it ended up being the boot0 jumper that had a bad connection.
