<?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: MPC5744P DMA QUESTION!! in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641235#M6352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thank you, Peter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a bad time, but I knew where to look at the manual!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can tell, I found part of a DMA Cathe inhibited in the SMPU module. and i configurated it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the result is the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* SMPU_0.RGD [2] .WORD3.B.CI = 1;&lt;/SPAN&gt; &lt;SPAN&gt;// Local master ID (DMA = 2)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is this the right setting?*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2017 00:54:27 GMT</pubDate>
    <dc:creator>taejunmoon</dc:creator>
    <dc:date>2017-02-20T00:54:27Z</dc:date>
    <item>
      <title>MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641231#M6348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;I have a question about mpc5744p dma.&lt;BR /&gt;I have implemented pwm-ctu-adc-dma and the source address of the destination address comes in well. However, when I declare the value read by dma to another function such as ctu interrupt or pit interrupt, the value becomes 0. What is the reason?&lt;BR /&gt;&lt;BR /&gt;AIPS has already been set up. Do I need to set up additional? The system clock is composed of 200MHz. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 11:53:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641231#M6348</guid>
      <dc:creator>taejunmoon</dc:creator>
      <dc:date>2017-02-16T11:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641232#M6349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please explain it once again and clearly?&lt;/P&gt;&lt;P&gt;I am not able to understand from your description where is the issue.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641232#M6349</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-02-16T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641233#M6350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, peter!&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;My question is related to mpc5744p dma.&lt;BR /&gt;When reading a variable named adc_1_ch0 with dma, it comes to dma destination address (adcresult [2]) on trace32. However, when the dma variable (adc1) is read from another function (ex, ctu interrupt, main), the value of the variable is read as 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14753iAC4D6A9D053D42A2/image-size/large?v=v2&amp;amp;px=999" title="5744p_dma.PNG" alt="5744p_dma.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;[summary]&lt;BR /&gt;adc = adc_1_ch0_CDATA // normal mode setting&lt;BR /&gt;adcResult [2] = dma_0_TCD [16] destination //&lt;BR /&gt;adc1 = adcresult [2]; // This variable is always read as 0, I do not know why&lt;BR /&gt;&lt;BR /&gt;I'd appreciate it if you could tell me why.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Attach the following file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 04:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641233#M6350</guid>
      <dc:creator>taejunmoon</dc:creator>
      <dc:date>2017-02-17T04:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641234#M6351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This looks like a problem with cache.&lt;/P&gt;&lt;P&gt;Make sure you are not using cache in memory area where DMA is writing/reading.&lt;/P&gt;&lt;P&gt;The data are physically there but your debugger are reading them from cache and not from memory itself.&lt;/P&gt;&lt;P&gt;So make memory area which is used by DMA cache inhibited.&lt;/P&gt;&lt;P&gt;For more details refer to SPMU periphery chapter.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 07:08:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641234#M6351</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-02-17T07:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641235#M6352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thank you, Peter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a bad time, but I knew where to look at the manual!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can tell, I found part of a DMA Cathe inhibited in the SMPU module. and i configurated it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the result is the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* SMPU_0.RGD [2] .WORD3.B.CI = 1;&lt;/SPAN&gt; &lt;SPAN&gt;// Local master ID (DMA = 2)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is this the right setting?*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 00:54:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641235#M6352</guid>
      <dc:creator>taejunmoon</dc:creator>
      <dc:date>2017-02-20T00:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641236#M6353</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 was able to run you program.&lt;/P&gt;&lt;P&gt;Your DMA init must be wrong as program wasn't copying data from ADC to RAM on ADC conversion done event.&lt;/P&gt;&lt;P&gt;I have skip your DMA init and configured DMA in debugger as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13615i44404F783154A462/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below you can see the memory after I have started ADC conversion. ADC result data was copied by DMA to RAM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13653i334CBDCFBA0290EE/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to find the issue in your DMA TCD setting tomorrow.&lt;/P&gt;&lt;P&gt;However your DMAMUX is correct.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 15:33:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641236#M6353</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-02-20T15:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641237#M6354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thank you. Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The MPC5744p and MPC5643l and register configurations are similar, so I configured the mpc5643l exactly the same.&lt;/SPAN&gt; &lt;SPAN&gt;The 5643l is running properly.&lt;/SPAN&gt; &lt;SPAN&gt;The variable adc1 contains the values read as dma.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm comparing the two of them, but I do not know why not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could this be helpful?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 05:25:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641237#M6354</guid>
      <dc:creator>taejunmoon</dc:creator>
      <dc:date>2017-02-21T05:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641238#M6355</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 have created example according to your needs.&lt;/P&gt;&lt;P&gt;Everything is working as expected.&lt;/P&gt;&lt;P&gt;Data from ADC_1 Ch0 are copied by DMA to SRAM.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 09:21:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641238#M6355</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-02-21T09:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641239#M6356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thank you, Peter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked with the example code you gave me, and it was nice to know a lot. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, even though reading the value of adc_CDATA through dma, the value is read as 0 when declared as a variable.&lt;/SPAN&gt; &lt;SPAN&gt;I want to use it by reading it as a variable.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="display: none;"&gt;&lt;/SPAN&gt; what should i do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 01:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641239#M6356</guid>
      <dc:creator>taejunmoon</dc:creator>
      <dc:date>2017-02-23T01:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641240#M6357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You must probably go trough reference manual few more times to understand invalidation of cache and SMPU unit.&lt;/P&gt;&lt;P&gt;I will attach example code for demonstration.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 11:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641240#M6357</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-02-24T11:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641241#M6358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15707i30B0F9B49A7C9628/image-size/large?v=v2&amp;amp;px=999" title="캡처22.PNG" alt="캡처22.PNG" /&gt;&lt;/span&gt;Hi Peter&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the s32 compiler and the example file you gave uses the Greenhills compiler.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Can I give it back to the s32 compiler if I keep getting an error?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 12:16:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641241#M6358</guid>
      <dc:creator>taejunmoon</dc:creator>
      <dc:date>2017-02-28T12:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P DMA QUESTION!!</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641242#M6359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;you can use it in S32, just rewrite the assembly code for your compiler.&lt;/P&gt;&lt;P&gt;I am not working with S32 compiler, but code modify should be quite simple.&lt;/P&gt;&lt;P&gt;Or for the test you can just load my compiled *elf file into micro via debugger.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 12:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-DMA-QUESTION/m-p/641242#M6359</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-02-28T12:30:08Z</dc:date>
    </item>
  </channel>
</rss>

