Senior II
June 17, 2023
Solved
LL_TIM_EnableDMAReq_CC1 triggers DMA correctly, LL_TIM_EnableDMAReq_UPDATE does not.
- June 17, 2023
- 3 replies
- 2829 views
I made an application that uses burst DMA on T2 of an STM32F407VET6 to create morse code pulses as a challenge for Burst DMA..
My strategy is to write to ARR, the reserved register in between and CCR1 to make pulses of various width and duty cycle as 1 burst. This works as long as I trigger my DMA with LL_TIM_EnableDMAReq_CC1, once I change to LL_TIM_EnableDMAReq_UPDATE dma does not longer kick in and registers stay the same.
I wonder why?
(IMHO Update comes every time T2 reaches ARR and goes to 0, so T2 should trigger a burst from the dma to fill TIMx_ARR, the reserved register and CCR1 as well. Attached detailed case file with scope printscreens and source code.)
