DMA is widely used in normal drivers like UART, SPI, and I2c. I wish there can be a pure DMA example provided for STM32.
I am trying to implement a customized DMA channel, like M2P, memory to PWM exactly in my case. However I found DMA driver is missed in the HAL doc.
If I tried to call `dmaStreamAllocI` in main.c, the linker would complain about `undefined reference to `dmaStreamAllocI`.
DMAv1 demo for STM32
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: DMAv1 demo for STM32
Hi,
The DMA driver is only built if some other driver needs it. If you need to use it alone then define STM32_DMA_REQUIRED in your mcuconf.h or in Makefile.
It is not in the HAL documentation because it is an STM32-specific helper driver, its API is not meant to be portable across platforms.
Giovanni
The DMA driver is only built if some other driver needs it. If you need to use it alone then define STM32_DMA_REQUIRED in your mcuconf.h or in Makefile.
It is not in the HAL documentation because it is an STM32-specific helper driver, its API is not meant to be portable across platforms.
Giovanni
Return to “Development and Feedback”
Who is online
Users browsing this forum: No registered users and 59 guests