cancel
Showing results for 
Search instead for 
Did you mean: 

TIM PWM CCR DMA get Transfer error

JCuna.1
Senior

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.

0693W00000LzNw9QAF.png0693W00000LzNwEQAV.png 

1 ACCEPTED SOLUTION

Accepted Solutions
JCuna.1
Senior

I could solve. I have not referencing correctly the pointer of ccr1

(uint32_t)&_RGB_LED_PWM_TIM_HANLDER->CCR1

View solution in original post

3 REPLIES 3
TDK
Guru

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

If you feel a post has answered your question, please click "Accept as Solution".

Which STM32?

Read out and check/post content of TIM and relevant DMA registers.

JW

JCuna.1
Senior

I could solve. I have not referencing correctly the pointer of ccr1

(uint32_t)&_RGB_LED_PWM_TIM_HANLDER->CCR1