<?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: MPC5748G, eDMA, memory to memory transfer in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-eDMA-memory-to-memory-transfer/m-p/554382#M3901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not familiar with the compiler you are using, but I can explain it on my exmaple made in GHS compiler.&lt;/P&gt;&lt;P&gt;Using simple memory transfers with DMA is quite easy.&lt;/P&gt;&lt;P&gt;You can follow my example for DMA configuration described in this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329328"&gt;Example MPC5744P DMA multiple minor transfers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As soon as you manage to configure DMA to transfer data successfully (according to the example) we can continue with Scatter/gather mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 11:00:04 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2016-07-11T11:00:04Z</dc:date>
    <item>
      <title>MPC5748G, eDMA, memory to memory transfer</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-eDMA-memory-to-memory-transfer/m-p/554381#M3900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir or Mandam,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have encountered some problem while configuring MPC5748G eDMA module, attached is my test project. I'd like to realize a single block memory-to-peripheral transfer, loop memory-to-memory transfer and scatter/gather memory-to-memory transfer.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. In main.c, if TESTMODE=eDMA_SingleBlock_Mode, when I step into EDMA_HAL_TriggerChannelStart(pDMA, chnState-&amp;gt;channel) in edma.c,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155359_155359.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121949iBE6CE7A79FAB56E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="155359_155359.png" alt="155359_155359.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36504iC1CEE656B3E9D62C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155390_155390.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121950i02DDE79F87BE8F62/image-size/large?v=v2&amp;amp;px=999" role="button" title="155390_155390.png" alt="155390_155390.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36149iA70F2FD73F5F71DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why is the project suspended, and the following warnings are showed?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155391_155391.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121951i17CE09A621C77EF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="155391_155391.png" alt="155391_155391.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36199i284289087D16C16C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. In main.c, if TESTMODE=eDMA_LoopTransfer_Mode, when I step into the following codes in edma.c,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155392_155392.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121952i7D3A241C7064C8A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="155392_155392.png" alt="155392_155392.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36253i75A0422D034E1735/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;each time EDMA_HAL_TriggerChannelStart(struct DMA_tag *pDMA, edma_channel_indicator_t channel) is executed, TCD[channel].CITER.ELINKNO.B.CITER will decrease by 1. However, after 6 loops TCD[channel].CITER.ELINKNO.B.CITER goes back to 6 rather than 0, and again my project is suspended and the following warnings are showed. Why is that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155393_155393.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121953iE336202484CAE0AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="155393_155393.png" alt="155393_155393.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36299iA22F9B3CB9B95BE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. In main.c, when TESTMODE=eDMA_ScatterGather_Mode, when I step into the following codes in edma.c,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155394_155394.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121954i962F331F49E9B58C/image-size/large?v=v2&amp;amp;px=999" role="button" title="155394_155394.png" alt="155394_155394.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36352i9EA8E2082D06BEA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Again the programme will stop at EDMA_HAL_TriggerChannelStart(&amp;amp;EDMA, chnState-&amp;gt;channel) in edma.c, and shows the following warnings, why is that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155395_155395.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121955iC7C36DAB87D7FDB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="155395_155395.png" alt="155395_155395.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36403i7DCF9D6E3ED29399/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155396_155396.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121956iC724A9C4F07DA2EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="155396_155396.png" alt="155396_155396.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36444i0DD4C0B30311522E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please help me to find out what's the problem and give me some suggestions to remove the mistakes? &lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yours sincerely,&lt;/P&gt;&lt;P&gt;QIAN Shifei&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338396"&gt;mpc5748g_Z4_1.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2016 08:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-eDMA-memory-to-memory-transfer/m-p/554381#M3900</guid>
      <dc:creator>shifeiqian</dc:creator>
      <dc:date>2016-07-10T08:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5748G, eDMA, memory to memory transfer</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5748G-eDMA-memory-to-memory-transfer/m-p/554382#M3901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not familiar with the compiler you are using, but I can explain it on my exmaple made in GHS compiler.&lt;/P&gt;&lt;P&gt;Using simple memory transfers with DMA is quite easy.&lt;/P&gt;&lt;P&gt;You can follow my example for DMA configuration described in this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329328"&gt;Example MPC5744P DMA multiple minor transfers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As soon as you manage to configure DMA to transfer data successfully (according to the example) we can continue with Scatter/gather mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 11:00:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5748G-eDMA-memory-to-memory-transfer/m-p/554382#M3901</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2016-07-11T11:00:04Z</dc:date>
    </item>
  </channel>
</rss>

