8 years, 2 months ago.

STM32 question about DMA

I use spi to send may data, but it used too much cpu resources. so I want to use DMA, but I didn't found API about that.

1 Answer

8 years, 2 months ago.

You will need to program it yourself. Either directly to the registers or using the STM32 hal driver files that are included with mbed. I am not aware of a user lib for the STM32 DMA, I did start at it once, but STM32 DMA is not the easiest one to make a library for (since they have different DMAs and different inputs for different peripherals, while Freescale/NXP DMA is just a single DMA where every input can handle every peripheral).

Accepted Answer

谢谢你的答案,但是我能用mbed配置spi然后用STM32 hal driver files 配置相应的DMA吗?

posted by 王 秀杰 26 Mar 2016