<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Examples of SDMA-assembler for Freescale i.MX51</title>
	<atom:link href="http://billauer.se/blog/2011/11/imx-sdma-assembler-example/feed/" rel="self" type="application/rss+xml" />
	<link>https://billauer.se/blog/2011/11/imx-sdma-assembler-example/</link>
	<description>Anything I found worthy to write down.</description>
	<lastBuildDate>Thu, 26 Mar 2026 13:15:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Michael</title>
		<link>https://billauer.se/blog/2011/11/imx-sdma-assembler-example/comment-page-1/#comment-845</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 14 Feb 2013 16:34:31 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=2333#comment-845</guid>
		<description>Hi
I would suggest some simplification to &#039;mx51_sdma_set.pm&#039; - if you change your &#039;get_number()&#039; to be like this

sub get_number {
  my ($arg) = @_;
  return eval($arg);
}

(perl) operations in numbers may be used:
stf r3, 0x12 &#124; 23

and if you have in your asm-file (say &#039;my-code.asm&#039;) &#039;#include &quot;defs.h&quot;&#039; (a file with defines like:

#define CPY 0x10
...

and pass it through cpp:

cat my-code.asm &#124; cpp &#124; sdma_asm.pl

you will be able to use in your code this kind of expressions:

stf r1, MD &#124; SZ0 &#124; FL

provided (of course) &#039;MD&#039; &#039;SZ0&#039; (and so on) are defined in &#039;defs.h&#039;

Voila</description>
		<content:encoded><![CDATA[<p>Hi<br />
I would suggest some simplification to &#8216;mx51_sdma_set.pm&#8217; &#8211; if you change your &#8216;get_number()&#8217; to be like this</p>
<p>sub get_number {<br />
  my ($arg) = @_;<br />
  return eval($arg);<br />
}</p>
<p>(perl) operations in numbers may be used:<br />
stf r3, 0x12 | 23</p>
<p>and if you have in your asm-file (say &#8216;my-code.asm&#8217;) &#8216;#include &#8220;defs.h&#8221;&#8216; (a file with defines like:</p>
<p>#define CPY 0x10<br />
&#8230;</p>
<p>and pass it through cpp:</p>
<p>cat my-code.asm | cpp | sdma_asm.pl</p>
<p>you will be able to use in your code this kind of expressions:</p>
<p>stf r1, MD | SZ0 | FL</p>
<p>provided (of course) &#8216;MD&#8217; &#8216;SZ0&#8242; (and so on) are defined in &#8216;defs.h&#8217;</p>
<p>Voila</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JEAN-CHRISTOPHE DUBOIS</title>
		<link>https://billauer.se/blog/2011/11/imx-sdma-assembler-example/comment-page-1/#comment-739</link>
		<dc:creator>JEAN-CHRISTOPHE DUBOIS</dc:creator>
		<pubDate>Fri, 09 Mar 2012 19:26:39 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=2333#comment-739</guid>
		<description>OK, thanks, I will try to sort out things.</description>
		<content:encoded><![CDATA[<p>OK, thanks, I will try to sort out things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eli</title>
		<link>https://billauer.se/blog/2011/11/imx-sdma-assembler-example/comment-page-1/#comment-738</link>
		<dc:creator>eli</dc:creator>
		<pubDate>Thu, 08 Mar 2012 21:39:19 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=2333#comment-738</guid>
		<description>I&#039;m afraid I can&#039;t help any further on this. I haven&#039;t done anything more with the SDMA, and I don&#039;t think I will do so again. And neither have I investigated these issues further.</description>
		<content:encoded><![CDATA[<p>I&#8217;m afraid I can&#8217;t help any further on this. I haven&#8217;t done anything more with the SDMA, and I don&#8217;t think I will do so again. And neither have I investigated these issues further.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Christophe DUBOIS</title>
		<link>https://billauer.se/blog/2011/11/imx-sdma-assembler-example/comment-page-1/#comment-737</link>
		<dc:creator>Jean-Christophe DUBOIS</dc:creator>
		<pubDate>Thu, 08 Mar 2012 21:33:10 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=2333#comment-737</guid>
		<description>Eli,

Thanks for this series of quite helpful articles on the SDMA.

I am wondering if you have more details on the &quot;Gotchas&quot; you put on this page, in particular the 32 bytes boundary crossing on the EIM bus.

I think I have the same kind of trouble on an i.MX25 processor. So far it seems I need the EIM address to be 32 bytes aligned to get the SDMA working correctly.

I was wondering if you got more insight on the problem and how to work with/arround it (as mandating 32 bytes alignement is not always practical in particular when &quot;speaking&quot; to a device).

Thanks

JC</description>
		<content:encoded><![CDATA[<p>Eli,</p>
<p>Thanks for this series of quite helpful articles on the SDMA.</p>
<p>I am wondering if you have more details on the &#8220;Gotchas&#8221; you put on this page, in particular the 32 bytes boundary crossing on the EIM bus.</p>
<p>I think I have the same kind of trouble on an i.MX25 processor. So far it seems I need the EIM address to be 32 bytes aligned to get the SDMA working correctly.</p>
<p>I was wondering if you got more insight on the problem and how to work with/arround it (as mandating 32 bytes alignement is not always practical in particular when &#8220;speaking&#8221; to a device).</p>
<p>Thanks</p>
<p>JC</p>
]]></content:encoded>
	</item>
</channel>
</rss>
