2024-08-22 10:56 PM - last edited on 2024-08-23 01:12 AM by SofLit
stm32g474ve , dma can be triggered using external interrupts, but dma cannot be triggered using software.
In theory, both external interrupts and software interrupts should trigger events. At the same time, I have verified that stm32h750 is OK.
So I want to know what I didn't think about.
2024-08-22 11:09 PM
It is not clearly stated what you have done, observed, and expected.
DMA can surely be triggered by software, see STM32CubeG4/Projects/NUCLEO-G474RE/Examples/DMA/DMA_FLASHToRAM at master · STMicroelectronics/STM32CubeG4 (github.com)
hth
KnarfB
2024-08-29 10:53 PM
uint8_t tx_dma_buff[13] = {"hello world\r\n"};
HAL_UART_Transmit_DMA(&huart1 ,tx_dma_buff , 13 );
EXTI->SWIER1 |= 1<<0; //software trigger
I want this software interrupt to be able to synchronize dma。