Need help setting up DMA on STM32F1 & F4
Hi, I am trying to set up an input capture with DMA on a F1 and a F4 chip.
The documentation is confusing, and most tutorials don't work for my specific scenario. For a start, when setting up DMA using cubeMX, I can't configure source, destination and data length.
Reading the Documentation I should use HAL_DMA_START(); and put those values in there, but when called, it just tells me that the DMA controller is busy. I can't find any resources about what that means, what do I need to change?
And getting the hdma is tedious as well. I got it working using
htim1.hdma[TIM_DMA_ID_CC1]But there got to be a better way.