cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G4 DMA triggers

Pangzi
Associate

stm32g474ve , dma can be triggered using external interrupts, but dma cannot be triggered using software. 

Pangzi_0-1724392408483.png

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.

 

2 REPLIES 2
KnarfB
Principal III

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

Pangzi
Associate

Pangzi_0-1724997005091.png

 

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。