Skip to main content
TEl B
Associate II
July 14, 2025
Solved

DMA STM32G070

  • July 14, 2025
  • 3 replies
  • 673 views

I can't get TIM1 to trigger DMA in my code (main.c)
Am I missing something? 

Best answer by TEl B

Thank you very much for your remark, you got me thinking.

I'm going to drive the WS2812B lamps with multiple parallel alternate outputs. One alternate output was already working.

What surprises me is that ST didn't make any effort to support my question.

3 replies

Technical Moderator
July 14, 2025

Hello @TEl B 

Did the DMA transfer work without TIM triggering?

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
TEl B
TEl BAuthor
Associate II
July 14, 2025

Yes

TEl B
TEl BAuthor
Associate II
July 20, 2025

Problem is not solved.

waclawek.jan
Super User
July 22, 2025

In 'G0, GPIO are connected to the cpu-private IOPORT bus, not accessible from the rest of the chip, i.e. DMA cannot access GPIO in 'G0.

JW

TEl B
TEl BAuthor
Associate II
July 22, 2025

Thank you very much.
Writing to BSRR or BRR register is also impossible?

waclawek.jan
Super User
July 22, 2025

No that path is not possible.

That diagram is simplified in the fact, that the matrix consists of masters and slaves. Only master can initiate a transfer, providing address and direction of transfer and actively produce/consume data; and only slave can passively "consume" or "produce" the data of that transfer according to the address and direction provided by master. In other words, while the double-ended arrows do indicate the bi-directional flow of data, they don't correctly indicate the unidirectinal flow of address and control.

waclawekjan_0-1753186622436.png

JW

TEl B
TEl BAuthorBest answer
Associate II
July 24, 2025

Thank you very much for your remark, you got me thinking.

I'm going to drive the WS2812B lamps with multiple parallel alternate outputs. One alternate output was already working.

What surprises me is that ST didn't make any effort to support my question.