2022-11-30 08:54 AM
DMA transfer is not working, despite everyhing being setup correctly at first glance. Does anyone know what else could be wrong?
DMA1->CCR5: is enabled (EN), MSIZE is 32bit, PSIZE is 32bit, mem. inc enabled, per. inc disabled, circ mode enabled, DIRection is per -> mem,
DMA1->CNDTR5: 1 (transfer one unit)
DMA1->CPAR5: set to the TIM5->CNT address
DMA1->CMAR5: set to uint32_t variable in ram
DMAMUX->C4CR: DMAREQ_ID is 60 (TIM2_UP as per RM, table 91),
DMA1->CCR5
DMA1->CNDTR5
DMA1->CPAR5
DMA1->CMAR5
DMAMUX->C4CR
TIM2
Solved! Go to Solution.
2022-12-02 02:34 AM
It was an oversight on my part - forgot to enable DMA requests. Now everything is functioning properly.
__HAL_TIM_ENABLE_DMA(&htim2, TIM_DMA_UPDATE or TIM_DMA_CC3);
2022-12-02 02:34 AM
It was an oversight on my part - forgot to enable DMA requests. Now everything is functioning properly.
__HAL_TIM_ENABLE_DMA(&htim2, TIM_DMA_UPDATE or TIM_DMA_CC3);