Skip to main content
Visitor II
August 23, 2024
Question

STM32G4 DMA triggers

  • August 23, 2024
  • 2 replies
  • 740 views

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.

 

    This topic has been closed for replies.

    2 replies

    Super User
    August 23, 2024

    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

    PangziAuthor
    Visitor II
    August 30, 2024

    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。