<?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 Can Flash Write operation effect DMA? in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675713#M7939</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 a new question about DMA function. today when i debug my program ,i found that when i doing EEPROM write operation on the frequency of very fast, my DMA will delay max to 3us. i can not explain this strange&amp;nbsp;phenomenon to my colleague. so i want to know, can&amp;nbsp;Flash Write operation effect DMA and how effect the DMA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i used the&amp;nbsp;EEE_Driver_v1.2.0 to&amp;nbsp;realize the EEPROM function by using flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2017 11:09:08 GMT</pubDate>
    <dc:creator>liujinhang</dc:creator>
    <dc:date>2017-05-11T11:09:08Z</dc:date>
    <item>
      <title>Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675713#M7939</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 a new question about DMA function. today when i debug my program ,i found that when i doing EEPROM write operation on the frequency of very fast, my DMA will delay max to 3us. i can not explain this strange&amp;nbsp;phenomenon to my colleague. so i want to know, can&amp;nbsp;Flash Write operation effect DMA and how effect the DMA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i used the&amp;nbsp;EEE_Driver_v1.2.0 to&amp;nbsp;realize the EEPROM function by using flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 11:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675713#M7939</guid>
      <dc:creator>liujinhang</dc:creator>
      <dc:date>2017-05-11T11:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675714#M7940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, it can.&lt;/P&gt;&lt;P&gt;Unfortunately you didn't specified the device you are using. So its hard to tell the root cause.&lt;/P&gt;&lt;P&gt;Have in mind that there is a XBAR which arbitrate accesses for masters to slaves.&lt;/P&gt;&lt;P&gt;Foe example if you are accessing to flash via core, and in same time DMA want to access flash. Master with lower XBAR priority must wait until slave is released from master of higher priority.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 12:34:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675714#M7940</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-05-11T12:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675715#M7941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;i used 5744P. &amp;nbsp;i also want to know the flash writing operation how effect the DMA. and i want to know how long the max time will course DMA delaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me, thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your said that DMA will wait for other higher&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;priority accessing operation, i very think so. but i feel strange that the DMA will actually be delayed for 3us, this make me&amp;nbsp;misdoubt my DMA function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 01:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675715#M7941</guid>
      <dc:creator>liujinhang</dc:creator>
      <dc:date>2017-05-12T01:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675716#M7942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another important information is that i did not configure the XBAR, so the xbar function runs on its default configuration.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 01:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675716#M7942</guid>
      <dc:creator>liujinhang</dc:creator>
      <dc:date>2017-05-12T01:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675717#M7943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any document to specify which operation would effect the DMA operation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 06:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675717#M7943</guid>
      <dc:creator>liujinhang</dc:creator>
      <dc:date>2017-05-15T06:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675718#M7944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The default priorities are: (where 0 is highest)&lt;/P&gt;&lt;P&gt;M0 -&amp;gt; 0&lt;/P&gt;&lt;P&gt;M1 -&amp;gt; 1&lt;/P&gt;&lt;P&gt;M5 -&amp;gt; 2&lt;/P&gt;&lt;P&gt;M6 -&amp;gt; 3&lt;/P&gt;&lt;P&gt;&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/18503i0E5A8088AA7EBC39/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;So if your core is accessing slave and in the same time DMA want to access it it must wait until higher priority master release accessed slave. There is no time limit.&lt;/P&gt;&lt;P&gt;Usual application configuration where no large data block are transmit over DMA or FlexRAY is:&lt;/P&gt;&lt;P&gt;1. Flexray (highest)&lt;/P&gt;&lt;P&gt;2. DMA&lt;/P&gt;&lt;P&gt;3. Core&lt;/P&gt;&lt;P&gt;But this is really application specific.&lt;/P&gt;&lt;P&gt;If you want to test if your DMA transfer is delayed because of XBAR priority, just change it and give DMA higher priority.&lt;/P&gt;&lt;P&gt;If this does not help there must be another reason for the delay.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 13:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675718#M7944</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-05-15T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675719#M7945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. i will do some test and then tell you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 05:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675719#M7945</guid>
      <dc:creator>liujinhang</dc:creator>
      <dc:date>2017-05-16T05:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can Flash Write operation effect DMA?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675720#M7946</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;thank you very much! i did the test by setting the DMA highest&amp;nbsp;priority to access all slave ports. and the problem&lt;/P&gt;&lt;H2&gt;disappears.&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 06:38:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Can-Flash-Write-operation-effect-DMA/m-p/675720#M7946</guid>
      <dc:creator>liujinhang</dc:creator>
      <dc:date>2017-05-16T06:38:35Z</dc:date>
    </item>
  </channel>
</rss>

