cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030 - fire DMA on pin's positive edge

ne562
Associate II

Is there a possibility to fire DMA transfer on a positive edge on the GPIO pin (PA3) ?

1 ACCEPTED SOLUTION

Accepted Solutions
gbm
Lead II

As I already wrote above - according to the chip errata it doesn't work. So you should either connect the PA3 to any free pin being a timer input or use EXTI interrupt to achieve the similar functionality with approx. 20..30 clock cycles delay (DMA typically has 5..12 cycle delay).

UPDATE: it should be fixed in rev. Y of the chip, it didn't work in rev. Z.

View solution in original post

3 REPLIES 3
gbm
Lead II

It's possible only if the pin is a timer input - see the errata. It should be possible in G0 via DMAMUX but it's not due to the implementation problem. Other families equipped with DMAMUX support this functionality correctly - L4+, H7.

ne562
Associate II

unfortunately, the pcbs are already produced, can't change pinout

[[ It should be possible in G0 via DMAMUX ]]

using CR0CR.SYNC_ID and RG0CR.SIG_ID ?

gbm
Lead II

As I already wrote above - according to the chip errata it doesn't work. So you should either connect the PA3 to any free pin being a timer input or use EXTI interrupt to achieve the similar functionality with approx. 20..30 clock cycles delay (DMA typically has 5..12 cycle delay).

UPDATE: it should be fixed in rev. Y of the chip, it didn't work in rev. Z.