# Serial DMA

**URL:** <https://forums.digi.com/t/serial-dma/11116>\
**Category:** Rabbit\
**Created:** [July 11, 2009, 4:48pm UTC](https://forums.digi.com/t/serial-dma/11116 "2009-07-11T16:48:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiserltz](https://avatars.discourse-cdn.com/v4/letter/w/e36b37/32.png) [@wiserltz](https://forums.digi.com/u/wiserltz)\
**Post date:** [July 11, 2009, 4:48pm UTC](https://forums.digi.com/t/serial-dma/11116/1 "2009-07-11T16:48:50Z")

</div>

Hi

Has anyboday has success with the SerDma.c.?

I try it but nosucess. It is strange:  
:mad:  
If I compile it to flash, everything is OK;

If compile to ram, the result seems unstable, sometimes all the data is mess up; Sometimes everything is fine. It can even generate the famous “timeout error” with serXdmaOn(myport, DMA\_CHANNEL\_ANY, DMA\_CHANNEL\_ANY).

From the library I can not find any relation between DMA and run in RAM!!

Regards

---

<div class="post-metadata">

**Author:** ![wiserltz](https://avatars.discourse-cdn.com/v4/letter/w/e36b37/32.png) [@wiserltz](https://forums.digi.com/u/wiserltz)\
**Post date:** [July 28, 2009, 8:21am UTC](https://forums.digi.com/t/serial-dma/11116/2 "2009-07-28T08:21:21Z")

</div>

I divide the serial data into smal package, say maybe 100 bytes, and divide it into 10 small packlet, each time I send one packlet, and wait some time and send the next. I can only the first byte one each packlet. Other data are lost. So I think DMA will run with a much high speed, and it fetch the next data at fix speed, but the serial port is slow. so…
