[DMA] Under which conditions will the NDTR register be reloaded when enabling the stream?
Hi,
This is what I found in the reference manual:
Once the transfer is completed, this [NDT] register can either stay at zero (when the stream is in normal mode) or be reloaded automatically with the previously programmed value in the following cases:
– when the stream is configured in circular mode.
– when the stream is enabled again by setting EN bit to '1'.
What I understand is, that in circular mode after each transfer the NDT register gets reloaded (which makes obviously sense).
But what happens in the following situations (for non-circular streams):
- Stream automatically disabled after last transfer and enabled again
- Stream automatically disabled, then configuring other values, then enabled again
- Stream manually disabled and then enabled again without configuring other config values
- Stream manually disabled and then enabled again with configuring other config values
- Stream automatically disabled, then manually disabled, then enabled again
- Stream crashed and enabled again
I hope this question isn't that stupid =)
Answers are really appreciated.