Skip to main content
JCuna.1
Senior
April 28, 2022
Solved

TIM PWM CCR DMA get Transfer error

  • April 28, 2022
  • 3 replies
  • 1400 views

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 

This topic has been closed for replies.
Best answer by JCuna.1

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

(uint32_t)&_RGB_LED_PWM_TIM_HANLDER->CCR1

3 replies

TDK
April 28, 2022

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""."
waclawek.jan
Super User
April 28, 2022

Which STM32?

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

JW

JCuna.1
JCuna.1AuthorBest answer
Senior
April 28, 2022

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

(uint32_t)&_RGB_LED_PWM_TIM_HANLDER->CCR1