Stm32h745zi UART DMA issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-18 1:48 AM
Hi,
I am using stm32h745zi controller in my custom board. I want to use uart in DMA mode.
When i send data through uart i got an interrupt only for first time. How can i get Interrupt everytime. and how to use uart DMA in both cores(Both tx and Rx).
- Labels:
-
DMA
-
STM32H7 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-18 4:27 AM
Watch what memory is being used, and whether the DMA is issuing a fault.
Perhaps use a debugger understand what​ state the UART and DMA are in, and what your code is doing.
See no code here.
Usually you'd pick one core to manage this, you should probably master using one before complicating things with ownership issues.
With DMA on M7 understand cache coherency issues.
The MCU is partitioned in a way that suggests using the M4 core for IO operation.​
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
‎2022-03-18 5:30 AM
Thanks for the reply,
Can u share the Uart DMA code with continous interrupt.
when i send data using HAL_UART_Transmit_DMA() i am getting interrupt for the first time but not for everytime .
you can see my code in below attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-18 6:28 AM
Should be several examples to choose from. Here is one:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-18 8:43 AM
You can't cast a character to a pointer like that.
Up vote any posts that you find helpful, it shows what's working..
