Skip to main content
BCoch
Senior
February 4, 2019
Solved

Is it possible to setup chained DMA to/from a peripheral?

  • February 4, 2019
  • 5 replies
  • 813 views

For example, to have the first few bytes of a single SPI transaction come from / go to a particular location, with subsequent bytes coming from / going to another location.

This topic has been closed for replies.
Best answer by waclawek.jan

No.

You could set up several DMAs triggered suitably by timers, though.

JW

5 replies

waclawek.jan
waclawek.janBest answer
Super User
February 4, 2019

No.

You could set up several DMAs triggered suitably by timers, though.

JW

BCoch
BCochAuthor
Senior
February 4, 2019

Thanks for the prompt answer!

Piranha
Principal III
February 5, 2019

There is one exception, thought - ETH has it's own DMA with descriptors, which can have attached buffers of different size and chained in any order.

waclawek.jan
Super User
February 5, 2019

Yes, but ETH's scatter-gather DMA can't be used as general-purpose DMA, as its "peripheral-end" is hardwired to ETH's internals...

JW

Piranha
Principal III
February 5, 2019

Of course. I only added it as an additional information just in case someone interested in Ethernet is reading this. :)