<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I am currently using RTEMS to access a DMA core on the Zynq and am noticing some interesting/peculiar behavior:</p>
<p><br>
</p>
<p>When I provide my DMA engine a statically allocated buffer what I notice is that the first few bytes (5) of the buffer, after getting it back from the DMA, remain unchanged however the rest of the buffer after that contains the data (minus the first 5 bytes
 that are missing).</p>
<p><br>
</p>
<p>When I provide my DMA engine a dynamically allocated buffer from either C++ new or Posix malloc() or posix_memalign() then I receive all of the data correctly from byte 0 to the last byte.</p>
<p><br>
</p>
<p>If I provide my DMA engine my statically allocated buffer offset by the amount of bytes it fails to write into then I will see all of my data from the DMA beginning at the offset.
</p>
<p><br>
Has anyone experienced something similar or have any suggestions as to what may be going on and/or thoughts on how to fix this behavior? I would ideally like to be able to do this with some statically allocated buffers.<br>
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal">Avi<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2"></font></div>
</div>
</div>
</body>
</html>