<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SDMA script to read UART Rx Buffer in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SDMA-script-to-read-UART-Rx-Buffer/m-p/250034#M22626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm curently looking for writing and loading my own SDMA Scripts.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you manage to compile your scripts&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to load the script code into the SDMA RAM ,&amp;nbsp; you wrote your own bootload script or you used SDK functions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Alexandre,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 08:54:04 GMT</pubDate>
    <dc:creator>dauphinalexandr</dc:creator>
    <dc:date>2015-04-14T08:54:04Z</dc:date>
    <item>
      <title>SDMA script to read UART Rx Buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SDMA-script-to-read-UART-Rx-Buffer/m-p/250032#M22624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for my master thesis I work with the MX6 Quad SABRE AI CPU Card, and I try to program the ARM Cores bare metal using the Freescale SDK. &lt;/P&gt;&lt;P&gt;Now I would like to program the SDMA Core by my own, writing and loading own SDMA Scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bootload script works fine and I can load my script code into the SDMA RAM. There, it can be triggered internally (from the ARM Core) and externally (from UART4).&lt;/P&gt;&lt;P&gt;The problem is now, that reading the data from the UART 4 FIFO via the peripheral DMA doesn't work. After I configure the UART 4 via the ARM Core, the SDMA should wait for the external trigger (RX FIFO Watermark level = 1Byte). Than the following script is executed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stf&amp;nbsp;&amp;nbsp; r7, 0xC3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # write r7 (UART4 RX FIFO Adress = 0x021F0000) to PSA, frozen 32 bit&lt;/P&gt;&lt;P&gt;ldf&amp;nbsp;&amp;nbsp; r6, 0xC8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # read PD to r6&lt;/P&gt;&lt;P&gt;done 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # end of script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After execution the source fault flag (SF) is set and register 6 shows the error code 0x0820. I've had a look at Chapter Central Security Unit in the reference manual and I saw that the SDMA maby has no access rights.&lt;/P&gt;&lt;P&gt;- Why does this happen and what does the error code mean? -&amp;gt; Where do i get more detailed informations?&lt;/P&gt;&lt;P&gt;- Could it be that the CSU blocks the SDMA -&amp;gt; Where do I get the information how to configure the CSU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me with that problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 08:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SDMA-script-to-read-UART-Rx-Buffer/m-p/250032#M22624</guid>
      <dc:creator>qommes</dc:creator>
      <dc:date>2013-08-12T08:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: SDMA script to read UART Rx Buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SDMA-script-to-read-UART-Rx-Buffer/m-p/250033#M22625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I solved it by my own.&lt;/P&gt;&lt;P&gt;The Central Security Unit does not cause this error. The Problem ist that the AHP 2 IP Bridge also controlls the acces to peripherals.&lt;/P&gt;&lt;P&gt;To solve this, set the Master Privilege Level of the SDMA to 0x77 and the Off-Platform Peripheral Access Control Register to 0x00.&lt;/P&gt;&lt;P&gt;Now my script works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 13:04:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SDMA-script-to-read-UART-Rx-Buffer/m-p/250033#M22625</guid>
      <dc:creator>qommes</dc:creator>
      <dc:date>2013-08-13T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: SDMA script to read UART Rx Buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SDMA-script-to-read-UART-Rx-Buffer/m-p/250034#M22626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm curently looking for writing and loading my own SDMA Scripts.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you manage to compile your scripts&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to load the script code into the SDMA RAM ,&amp;nbsp; you wrote your own bootload script or you used SDK functions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Alexandre,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 08:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SDMA-script-to-read-UART-Rx-Buffer/m-p/250034#M22626</guid>
      <dc:creator>dauphinalexandr</dc:creator>
      <dc:date>2015-04-14T08:54:04Z</dc:date>
    </item>
  </channel>
</rss>

