<?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: Spurious DMA interrupts related to SPI-Rx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956543#M14409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/davidtosenovjan"&gt;davidtosenovjan&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #646464; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;Please look into my query and respond. it will be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #646464; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #646464; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;Satya Sudhir&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2019 16:55:02 GMT</pubDate>
    <dc:creator>ssure</dc:creator>
    <dc:date>2019-08-06T16:55:02Z</dc:date>
    <item>
      <title>Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956541#M14407</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;We are using MPC5746C controller and implemented SPI in full duplex mode.&lt;/P&gt;&lt;P&gt;2 DMA channels are configured for both SPI-Tx &amp;amp; SPI-Rx.&lt;/P&gt;&lt;P&gt;Also, interrupts are enabled which will be triggered upon the completion of both SPI-Tx DMA &amp;amp; SPI-Rx DMA.&lt;/P&gt;&lt;P&gt;In Interrupt routine, Destination address is updated for both the DMA channels (ping-pong buffer implementation).&lt;/P&gt;&lt;P&gt;With the above mentioned implementation, we are observing spurious SPI-Rx DMA interrupts.&lt;/P&gt;&lt;P&gt;Major Loop count is '1' &amp;amp; minor loop count is '64'.&lt;/P&gt;&lt;P&gt;Could you pl let us know the causes for this spurious interrupts ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 13:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956541#M14407</guid>
      <dc:creator>ssure</dc:creator>
      <dc:date>2019-08-06T13:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956542#M14408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding to the above info,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we disabled DMA channel for SPI-Tx, we didn't observe spurious interrupts issue with DMA for SPI-Rx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 13:32:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956542#M14408</guid>
      <dc:creator>ssure</dc:creator>
      <dc:date>2019-08-06T13:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956543#M14409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/davidtosenovjan"&gt;davidtosenovjan&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #646464; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;Please look into my query and respond. it will be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #646464; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #646464; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;Satya Sudhir&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 16:55:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956543#M14409</guid>
      <dc:creator>ssure</dc:creator>
      <dc:date>2019-08-06T16:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956544#M14410</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;it sounds like some kind of coherency issue. Is DREQ bit set in your descriptors? When you reconfigure the descriptors in interrupt handler, are the DMA channels disabled at this moment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 04:48:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956544#M14410</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-08-08T04:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956545#M14411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lukaszadrapa"&gt;lukaszadrapa&lt;/A&gt;, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/sumeetkumarsahu12@gmail.com"&gt;sumeetkumarsahu12@gmail.com&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;DREQ bit is set in our code and hence, DMA requests are disabled upon the completion of major loop transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know the way of altering the priority b/w CPU (Z4 core) and DMA masters as we are suspecting the problem would be due to contention &amp;amp; hence, wanted to try by configuring XBAR (AXBS_0) registers to give highest priority to DMA which may resolve spurious interrupts issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please point us to the right set of registers for changing the priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956545#M14411</guid>
      <dc:creator>ssure</dc:creator>
      <dc:date>2019-08-08T15:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956546#M14412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a first step, I would try to enabled priority elevation for corresponding DMA descriptors, so the core performance is not affected by global priority settings. Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Enable priority elevation for DMA (master port 6) for slave ports 3 - 6 (PBRIDGE_A, PBRIDGE_B, PRAM_0, PRAM_1) */&lt;BR /&gt;for(i=3; i&amp;lt;=6; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;AXBS_0.PORT[i].CRS.B.HPE6 = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then for corresponding DMA descriptors:&lt;/P&gt;&lt;P&gt;/* Enable eDMA master high-priority elevation (HPE) mode. No eDMA engine stalls. */&lt;BR /&gt;DMA.TCD[CHANNEL].CSR.B.BWC = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 07:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956546#M14412</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-08-09T07:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956547#M14413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; appreciate your timely response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already went through AXBS_0 registers for configuring the priority of DMA but it is for below slave ports only&lt;/P&gt;&lt;P&gt;PBRIDGE_A,&lt;/P&gt;&lt;P&gt;PBRIDGE_B,&lt;/P&gt;&lt;P&gt;PRAM_0,&lt;/P&gt;&lt;P&gt;PRAM_1,&lt;/P&gt;&lt;P&gt;PFLASH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our case, Source address for DMA associated with SPI-Tx is a buffer which resides in &lt;STRONG&gt;SRAM&lt;/STRONG&gt; (not related to any of the above mentioned slave ports).&lt;/P&gt;&lt;P&gt;So, I am not clear about the slave port as it is not mentioned in the block diagram of Cross bar switch in MPC5746C CRM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 09:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956547#M14413</guid>
      <dc:creator>ssure</dc:creator>
      <dc:date>2019-08-09T09:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious DMA interrupts related to SPI-Rx</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956548#M14414</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;this snapshot from the reference manual should explain it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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/86722i11E4F100D9D3B529/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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 04:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Spurious-DMA-interrupts-related-to-SPI-Rx/m-p/956548#M14414</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-08-12T04:50:20Z</dc:date>
    </item>
  </channel>
</rss>

