Skip to main content
TEl B
Associate II
Jul 14, 2025 11:52 AM UTC
Solved

DMA STM32G070

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

This topic has been closed for replies.
TEl B
TEl BBest answer
Associate II
Jul 24, 2025 2:00 PM UTC

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.

10 replies

ST Technical Moderator
Jul 14, 2025 12:51 PM UTC

Hello @TEl B 

Did the DMA transfer work without TIM triggering?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
TEl B
TEl BAuthor
Associate II
Jul 14, 2025 12:53 PM UTC

Yes

TEl B
TEl BAuthor
Associate II
Jul 20, 2025 7:54 AM UTC

Problem is not solved.

waclawek.jan
Super User
Jul 22, 2025 8:37 AM UTC

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
Jul 22, 2025 10:20 AM UTC

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

waclawek.jan
Super User
Jul 22, 2025 12:14 PM UTC

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
Jul 24, 2025 2:00 PM UTC

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.