2022-04-28 11:22 AM
I am trying to use dma with timer 2 in order to change the dutty cycle of a pwm output in each cycle. However, I get a dma transfer error.
Solved! Go to Solution.
2022-04-28 02:14 PM
I could solve. I have not referencing correctly the pointer of ccr1
(uint32_t)&_RGB_LED_PWM_TIM_HANLDER->CCR1
2022-04-28 11:51 AM
Mystery chip?
Is DMA initialized before ADC?
Is buffer memory accessible to DMA?
Maybe this:
https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices
2022-04-28 12:22 PM
Which STM32?
Read out and check/post content of TIM and relevant DMA registers.
JW
2022-04-28 02:14 PM
I could solve. I have not referencing correctly the pointer of ccr1
(uint32_t)&_RGB_LED_PWM_TIM_HANLDER->CCR1