<?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>S32K中的主题 Re: LPSPI DMA</title>
    <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080929#M7647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;You're correct, I was confusing SPI TRANSFER COMPLET with DMA transfer DONE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2020 22:43:27 GMT</pubDate>
    <dc:creator>hajianik</dc:creator>
    <dc:date>2020-05-22T22:43:27Z</dc:date>
    <item>
      <title>LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080925#M7643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My target is S32K148,&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;doing DMA on&amp;nbsp;LPSPI,&lt;/P&gt;&lt;P&gt;There's something that I can't justify :&lt;/P&gt;&lt;P&gt;DONE bit in the TDR DMA channels for RX/TX don't get set simultaneously whereas I think they should .&lt;/P&gt;&lt;P&gt;When the transfer is complete that means all the data on MOSI,and MISO has been transferred .&lt;/P&gt;&lt;P&gt;I'm under the impression when the major loop has completed its count the transfer is complete.&lt;/P&gt;&lt;P&gt;But my observation is that they are out of phase , when one is set the other is cleared and visa versa.&lt;/P&gt;&lt;P&gt;I assigned same priority of 0 to both channel.&lt;/P&gt;&lt;P&gt;Is this a normal behavior ? or there's something going on.&lt;/P&gt;&lt;P&gt;Please educate me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 22:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080925#M7643</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2020-05-12T22:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080926#M7644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi Koorosh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If we take a look at the LPSPI module alone, the DMA transfers cannot be triggered/completed at the same time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/39342i24B30FEF8FA8A972/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/39289iEFE03D8A376647E3/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The TX DMA channel writes data to the LPSPI TX FIFO and starts an LPSPI transfer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Once RX data are available in the LPSPI RX FIFO, the RX DMA transfers can start.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BR, Daniel&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 10:39:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080926#M7644</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-05-15T10:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080927#M7645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;What I can not phantom is if you look at any SPI frame on the scope once the CS is&amp;nbsp;deasserted for example goes back high&amp;nbsp;,&lt;/P&gt;&lt;P&gt;both set of&amp;nbsp;data transmitted and received are completed.&lt;/P&gt;&lt;P&gt;In other word one the transmit is complete&amp;nbsp;the receive is also complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be I misunderstand your comment. Are you saying three is an actual delay between transmit data completion and receive data completion?&lt;/P&gt;&lt;P&gt;That's hard for me to grasp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 18:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080927#M7645</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2020-05-15T18:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080928#M7646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Koorosh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Yes, there is a delay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;The DMA TX transfer starts before the CS is asserted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;The DMA RX transfer starts only once there are some data in the RX FIFO, when the RDF flag is set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 10:58:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080928#M7646</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-05-18T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080929#M7647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;You're correct, I was confusing SPI TRANSFER COMPLET with DMA transfer DONE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 22:43:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080929#M7647</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2020-05-22T22:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080930#M7648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;So in that case,&amp;nbsp; DMA RECEIVE DONE interrupt&amp;nbsp;&amp;nbsp;when triggered is an indication that the entire transfer is complete.&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 20:04:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080930#M7648</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2020-05-26T20:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080931#M7649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/hajianik@gmail.com"&gt;hajianik@gmail.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I don't know how exactly you&amp;nbsp;implemented it.&lt;/P&gt;&lt;P&gt;But in general, the DMA transfer from the LPSPI RX FIFO can start when LPSPI_SR[RDF] == 1 which means that, at that time, at least a part of the SPI transfer has been already completed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 08:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080931#M7649</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-05-28T08:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080932#M7650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;There is this DMA major loop done interrupt which triggers when the DMA MAJOR LOOP COUNT is equal to what is in the corresponding&lt;/P&gt;&lt;P&gt;DMA descriptor, so lets say your packet consists of 5 bytes , then you set the major loop count to 5, once 5 loop completes it'll trigger an interrupt.&lt;/P&gt;&lt;P&gt;At least this is my understanding.&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koorosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 21:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080932#M7650</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2020-05-28T21:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080933#M7651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Koorosh,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Then yes, it should be&amp;nbsp;triggered once both the SPI and the DMA transfer is complete.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Do you see any problem with that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BR, Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 07:28:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080933#M7651</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-05-29T07:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI DMA</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080934#M7652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I've not implemented this yet.&lt;/P&gt;&lt;P&gt;I will try to code it today or first thing on Monday and I'll let you know how it goes.&lt;/P&gt;&lt;P&gt;This an attempt to use CPU load and avoid to wait for the transfer to complete before starting the next transfer&amp;nbsp;.&lt;/P&gt;&lt;P&gt;if this works you can trigger the 1st asynchronous transfer and CPU is free to do other task until the interrupt triggers and&amp;nbsp;right then and there you&amp;nbsp;start the next transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 16:47:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-DMA/m-p/1080934#M7652</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2020-05-29T16:47:21Z</dc:date>
    </item>
  </channel>
</rss>

