DMA keep sending data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-13 7:34 AM
Hi all,
I want to send 3 bytes with the UART DMA controller
but when this line is executed, the uart sends these 3 bytes endlessly .
Why does the transmitting not stop after 3 bytes ?
HAL_UART_Transmit_DMA(&huart1,(uint8_t *)spi_buf_in,3);
Thank you
Steve
Solved! Go to Solution.
- Labels:
-
DMA
-
UART-USART
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-13 7:58 AM
Perhaps the DMA is somehow in circular mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-13 7:52 AM
Don't know. Is this the only line in the program, or do you configure the DMA and associativity somewhere, or have related call-backs?
Any particular STM32?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-13 7:58 AM
Perhaps the DMA is somehow in circular mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-13 11:10 PM
that was the case ! thank you
