<?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>MPC5xxxのトピックRe: MPC5644A - eDMA Trial</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1232057#M17375</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I thought that those minor requests will trigger by themselves until major complete.&amp;nbsp;That was the hardware request. I missed this point.&amp;nbsp;Thank you so much&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 12:22:45 GMT</pubDate>
    <dc:creator>ShadowShooTR</dc:creator>
    <dc:date>2021-02-17T12:22:45Z</dc:date>
    <item>
      <title>MPC5644A - eDMA Trial</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1231968#M17372</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I just want to transfer data from source to destination like ;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Source : &lt;U&gt;uint8 g_uchSource[12]&amp;nbsp; --&amp;gt; the address is 0x40001e80&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;Source variables are : 0x00 , 0x11 , 0x22 , 0x33, 0x44 , 0x55, 0x66 , 0x77, 0x88, 0x99, 0xAA , 0xBB&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Destination : &lt;U&gt;uint16 g_untGhostHold[6].&amp;nbsp; --&amp;gt; the address is 0x40001e8c&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The DMA TCD is arranged as :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EDMA.TCD[CH2].SADDR = (vuint32)&amp;amp;g_uchSource; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].DADDR = (vuint32)&amp;amp;g_untGhostHold; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].CITER = (vuint16)3; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].BITER = (vuint16)3; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].SSIZE = 0;&amp;nbsp; //8 bit source size&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].DSIZE = 1;&amp;nbsp; //16 bit destination size&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].NBYTES = 4; //4 bytes will be transferred for each major iteration&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].SLAST = (vuint32)(-1*12);&amp;nbsp; //return&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].CITERE_LINK = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].BITERE_LINK = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].BWC = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].DLAST_SGA = (vuint32)(-2*6); //return&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].SMOD = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].DMOD = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].SOFF = 1; //Source minor address iteration will be 1 byte&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].DOFF = 2;&amp;nbsp;//Destination 2 byte&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].MAJORE_LINK = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].MAJORLINKCH = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].E_SG = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].D_REQ = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].INT_HALF = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].INT_MAJ = 0; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].ACTIVE = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].DONE = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;EDMA.TCD[CH2].START = 0;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then I set the TCD.START bit in the software.&lt;/P&gt;&lt;P&gt;I expected that it would work like this :&lt;/P&gt;&lt;P&gt;1. Major (CITER = 3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;nbsp; 1.Minor -&amp;gt; read(&lt;EM&gt;&lt;U&gt;0x40001e80&lt;/U&gt;&lt;/EM&gt;) , read(&lt;EM&gt;&lt;U&gt;0x40001e81&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; write(&lt;EM&gt;&lt;U&gt;0x40001e8c&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;nbsp; 2.Minor -&amp;gt; read(&lt;EM&gt;&lt;U&gt;0x40001e82&lt;/U&gt;&lt;/EM&gt;) , read (&lt;EM&gt;&lt;U&gt;0x40001e83&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; write(&lt;EM&gt;&lt;U&gt;0x40001e8e&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;2. Major (CITER = 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;nbsp; 1.Minor -&amp;gt; read(&lt;EM&gt;&lt;U&gt;0x40001e84&lt;/U&gt;&lt;/EM&gt;) , read(&lt;EM&gt;&lt;U&gt;0x40001e85&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write(&lt;EM&gt;&lt;U&gt;0x40001e90&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- 2. Minor -&amp;gt; read(&lt;EM&gt;&lt;U&gt;0x40001e86&lt;/U&gt;&lt;/EM&gt;) , read(&lt;EM&gt;&lt;U&gt;0x40001e87&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write(&lt;EM&gt;&lt;U&gt;0x40001e92&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;3. Major (CITER = 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- 1. Minor -&amp;gt; read(&lt;EM&gt;&lt;U&gt;0x40001e88&lt;/U&gt;&lt;/EM&gt;), read(&lt;EM&gt;&lt;U&gt;0x40001e89&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; write(&lt;EM&gt;&lt;U&gt;0x40001e94&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- 2. Minor -&amp;gt; read(&lt;EM&gt;&lt;U&gt;0x40001e8A&lt;/U&gt;&lt;/EM&gt;), read(&lt;EM&gt;&lt;U&gt;0x40001e8B&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; write(&lt;EM&gt;&lt;U&gt;0x40001e96&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;Then Majors are complete, TCD.DONE will be set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it didn't work as I expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In experiment :&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the first major iteration ,DMA stops. CITER decreased just once and 4 byte transfer occured as shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_1-1613551446211.png" style="width: 267px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137321iB483DDC995FE6311/image-dimensions/267x245?v=v2" width="267" height="245" role="button" title="ShadowShooTR_1-1613551446211.png" alt="ShadowShooTR_1-1613551446211.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_4-1613551773479.png" style="width: 306px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137324iEC8FD816A2EA9AA3/image-dimensions/306x158?v=v2" width="306" height="158" role="button" title="ShadowShooTR_4-1613551773479.png" alt="ShadowShooTR_4-1613551773479.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_5-1613552639714.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137325iDE55D823620A5170/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShadowShooTR_5-1613552639714.png" alt="ShadowShooTR_5-1613552639714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I set the TCD_START bit manually.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_6-1613552760858.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137326iD7B6DBD62867CC46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShadowShooTR_6-1613552760858.png" alt="ShadowShooTR_6-1613552760858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then other 4 byte transferred correctly.&amp;nbsp; CITER decreased again.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_7-1613552841522.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137327i0DD2CF1E50D5D164/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShadowShooTR_7-1613552841522.png" alt="ShadowShooTR_7-1613552841522.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_8-1613552866392.png" style="width: 311px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137328i6B21DDD3AFA3900F/image-dimensions/311x190?v=v2" width="311" height="190" role="button" title="ShadowShooTR_8-1613552866392.png" alt="ShadowShooTR_8-1613552866392.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I set TCD_Start bit manually , The TCD_DONE bit is set at this time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_9-1613553003544.png" style="width: 318px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137330i897BB64035349F08/image-dimensions/318x94?v=v2" width="318" height="94" role="button" title="ShadowShooTR_9-1613553003544.png" alt="ShadowShooTR_9-1613553003544.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_10-1613553054154.png" style="width: 272px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137331iFCE9D0B169A79DFA/image-dimensions/272x185?v=v2" width="272" height="185" role="button" title="ShadowShooTR_10-1613553054154.png" alt="ShadowShooTR_10-1613553054154.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_11-1613553273925.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137332i809466074A648C53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShadowShooTR_11-1613553273925.png" alt="ShadowShooTR_11-1613553273925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All transfers were done correctly by setting&amp;nbsp; TCD_START bit manually for every major iteration break, &lt;U&gt;but the question is that why doesn't DMA continue to work by itself after the first major iteration done until TCD_DONE occurs&amp;nbsp; ?&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched referance manual (Page 589), it's given a similar example but it is hardware request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a sentence like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShadowShooTR_12-1613553491843.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137333i38E7A04BE0F8A32D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ShadowShooTR_12-1613553491843.png" alt="ShadowShooTR_12-1613553491843.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Probably , eDMA goes idle in my case right ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do this transfer with single request just setting CITER = 1 and NBYTE = 12. It works.&lt;/P&gt;&lt;P&gt;I tried different channel but no change.&lt;/P&gt;&lt;P&gt;Do I have to do this transfer with hardware request ? But it's not any specific signal or module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;SS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 09:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1231968#M17372</guid>
      <dc:creator>ShadowShooTR</dc:creator>
      <dc:date>2021-02-17T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5644A - eDMA Trial</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1232029#M17373</link>
      <description>&lt;P&gt;Hi, it is correct behavior. Every time CITER is decreased, new DMA request is needed. DMA request means either HW request from other module or assertion of START bit by SW.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1613560074347.png" style="width: 719px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137345i16DDEDADA6E05971/image-dimensions/719x363?v=v2" width="719" height="363" role="button" title="davidtosenovjan_0-1613560074347.png" alt="davidtosenovjan_0-1613560074347.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 11:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1232029#M17373</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-02-17T11:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5644A - eDMA Trial</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1232057#M17375</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I thought that those minor requests will trigger by themselves until major complete.&amp;nbsp;That was the hardware request. I missed this point.&amp;nbsp;Thank you so much&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1232057#M17375</guid>
      <dc:creator>ShadowShooTR</dc:creator>
      <dc:date>2021-02-17T12:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5644A - eDMA Trial</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1329486#M18991</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 11:04:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eDMA-Trial/m-p/1329486#M18991</guid>
      <dc:creator>berat24</dc:creator>
      <dc:date>2021-08-26T11:04:48Z</dc:date>
    </item>
  </channel>
</rss>

