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: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
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