Using chain_to to retrigger DMA1 with DMA2 #18193
Unanswered
kc64
asked this question in
RP2040 / Pico
Replies: 1 comment 2 replies
-
I found my own answer. dma1.config(
read=dma1_buffer,
...
dma2.config(
read=id(dma1_buffer),
... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
DMA1 streams waveform data to a PIO state machine which interfaces to a SPI device.
DMA1 reads from a fixed buffer and writes to my spi_sm FIFO.
DMA1 is configured with
chain_to=dma2.channel
.DMA2 is intended to write 1 word to the CH1_AL3_READ_ADDR_TRIGGER so that DMA1 restarts from the beginning of the buffer on every cycle. I don't know how to write the
.config
write parameter to achieve this.Any suggestions?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions