How to use DMA config and dma enable option with STM32

MD Monzur Murshed
MD Monzur Murshed Altair Community Member
edited October 2024 in Community Q&A

How can I use DMA config and DMA enable option with STM32 . coude you Plsease any one share  detail dcumentation  and with multiple  real  example of implementation of  DMA config and DMA enable option with STM32.

Answers

  • sreejithmnair
    sreejithmnair
    Altair Employee
    edited October 2024

    Hi Monzur,

    Attached one STM32F334R8 DMA Interrupt example. 

    Like any other Interrupt service routine, You write your logic(read/write) inside a compound block and enable the the compound block with DMA channel interrupt. Memory access call back will be executed as soon as the interrupt triggers.

    In the attached example.

    - Initialize the ADC1 and enabled it 

    - Triggered the ADC using PWM1

    - ADC result captured inside DMA Interrupt call back.

    - Updated the monitor buffer with result.

    I will share you more example with detailed step soon.

    Regards

    Sreejith 

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.