STM32Cube HAL_UART_Transmit_DMA strange behaviour
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-01-27 12:17 PM
Posted on January 27, 2015 at 21:17
I have built a system using STM32CubeMX 4.5 and STM32Cube v1.1.0 for a F072 CPU.
I just started implementing the UART parts. I want to run using DMA, but I can't get it to work. A call likeHAL_UART_Transmit_DMA( &huart3, string, size )
always outputssize
characters ofstring[0]
. In other words, the correct number of characters are transmitted, but they are all repeats of the first character in the string. If I use the blocking version of the call (without_DMA
but with a timeout) all is fine and the output is correct. ...any pointers???
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-01-27 1:14 PM
Posted on January 27, 2015 at 22:14
Did you configure the DMA controller to autoincrement the memory pointer?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-12-22 2:47 AM
Posted on December 22, 2015 at 11:47
Hi,
I too facing same issue, did you solved the issue?Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-12-22 9:56 AM
Posted on December 22, 2015 at 18:56
Hi murugesan.kudiarasu,
Which version of STM32CubeMx and STM32 firmware package are you using?Did you enable the DMA IRQ handler (HAL_DMA_IRQHandler() )?-Shahrzad-