Author Topic: STM 32F4xx - limitations on a DMA controller configuring another DMA controller  (Read 206 times)

0 Members and 1 Guest are viewing this topic.

Online peter-hTopic starter

  • Super Contributor
  • ***
  • Posts: 5370
  • Country: gb
  • Doing electronics since the 1960s...
There are some bus limitations, mentioned here in a recent thread. But in general, is this supposed to work?

I have a feeling one could do quite clever stuff with that.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline wek

  • Frequent Contributor
  • **
  • Posts: 580
  • Country: sk
> There are some bus limitations

Yes, and you can use only DMA2 to DMA into DMA.

> But in general, is this supposed to work?

Yes, why not.

> I have a feeling one could do quite clever stuff with that.

Hardly so.

Among other things to start a transfer you need to write at least to two discontinuous registers (clear the TC flag and set the enable bit), and for anything even marginally useful also to the memory pointer register, and maybe also the count (NDTR) register. That is, you'd need 2-4 other DMA streams to serve this one. Probably doable, but doesn't sound to be useful.

Newer STM32 ('H5 for example) have a much more sophisticated DMA.

JW
 
The following users thanked this post: peter-h


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf