2022-03-18 01: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).
2022-03-18 04: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.
2022-03-18 05: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.
2022-03-18 06:28 AM
Should be several examples to choose from. Here is one:
2022-03-18 08:43 AM
You can't cast a character to a pointer like that.