<?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のトピックS32K312 LPSPI + DMA AsyncTransmitFast</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1923811#M38682</link>
    <description>&lt;P&gt;My SPI synchronization and SPI+DMA asynchronous functions have been verified and debugged.&lt;BR /&gt;Now it is necessary to reduce the read and write time of SPI by issuing read and write instructions multiple times in one task and reading data in the next task.&lt;BR /&gt;This will use the Lpspi_ip_Asynchronous TransmitFast interface. But when I was configuring the Lpspi_ic_Asynchronous TransmitFast function, I found that calling this interface would cause the entire SPI to be in a blocked state. May I ask if there are any official demos or other related manuals that can be referenced.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 08:32:35 GMT</pubDate>
    <dc:creator>txp_camel</dc:creator>
    <dc:date>2024-08-02T08:32:35Z</dc:date>
    <item>
      <title>S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1923811#M38682</link>
      <description>&lt;P&gt;My SPI synchronization and SPI+DMA asynchronous functions have been verified and debugged.&lt;BR /&gt;Now it is necessary to reduce the read and write time of SPI by issuing read and write instructions multiple times in one task and reading data in the next task.&lt;BR /&gt;This will use the Lpspi_ip_Asynchronous TransmitFast interface. But when I was configuring the Lpspi_ic_Asynchronous TransmitFast function, I found that calling this interface would cause the entire SPI to be in a blocked state. May I ask if there are any official demos or other related manuals that can be referenced.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 08:32:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1923811#M38682</guid>
      <dc:creator>txp_camel</dc:creator>
      <dc:date>2024-08-02T08:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1926340#M39011</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;as far as I know no demo exists for this. The driver's UM shows steps and example how to use this API in chapter 6.2.5.7 Lpspi_Ip_AsyncTransmitFast(), similar info is given in the comment above Lpspi_Ip_AsyncTransmitFast() in Lpspi_Ip.h&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 11:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1926340#M39011</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-08-06T11:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1927216#M39058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I have two more questions now:&lt;/P&gt;&lt;P&gt;The first question is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_0-1723020970471.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292341i891676222B39856F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_0-1723020970471.png" alt="txp_camel_0-1723020970471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As indicated in the recommended configuration, I configured ScatterGathers configuration for three Tx channels and two Rx channels, and set SpiPhyUnit/SpiMaxDmaFastTransfer to 2. However, S32DS keeps reporting errors and prompts the following message.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_1-1723021176124.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292342iF2F191D9E04D6869/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_1-1723021176124.png" alt="txp_camel_1-1723021176124.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had to configure the ScatterGathers configuration for the Tx channel to four in order for S32DS to not report any errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;The second question is:&lt;BR /&gt;Now when I am debugging the Lpspi_ic_Asynchronous TransmitFast() interface, the Dma and Spi interrupts of Tx can be triggered normally, but the Dma and Spi interrupts of Rx cannot be triggered. After calling the Lpspi_Ip_TxDmaFinishTransfer() interface from the Tx IRQ of the SPI, the Rx interrupt cannot be triggered, and then the SPI will remain in the Busy state.&lt;BR /&gt;I compared the Tx and Rx channels of Spi+Dma and found that their configuration structures are roughly consistent.&lt;BR /&gt;Below is detailed configuration information.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_2-1723021559518.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292347i148149115AB648A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_2-1723021559518.png" alt="txp_camel_2-1723021559518.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_3-1723021571624.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292348i17AA222608D30127/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_3-1723021571624.png" alt="txp_camel_3-1723021571624.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_4-1723021604841.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292349iE62083DEB0BCA8A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_4-1723021604841.png" alt="txp_camel_4-1723021604841.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_5-1723021626978.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292350iC035438CDC61F8BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_5-1723021626978.png" alt="txp_camel_5-1723021626978.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_6-1723021638394.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292351iA21FA82596679766/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_6-1723021638394.png" alt="txp_camel_6-1723021638394.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_7-1723021646925.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292352i7CB3BA6CF423D955/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_7-1723021646925.png" alt="txp_camel_7-1723021646925.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_8-1723021660682.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292353i5FEEAB878F1EFCEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_8-1723021660682.png" alt="txp_camel_8-1723021660682.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_9-1723021686034.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292354i36DFCD4180734A0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_9-1723021686034.png" alt="txp_camel_9-1723021686034.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All transmission length configurations are set to 8&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_10-1723021728383.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292355iCF46B7379B9DE8E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_10-1723021728383.png" alt="txp_camel_10-1723021728383.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The global configuration is the same&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_11-1723021756291.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292356iFC7A5DB564EA1536/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_11-1723021756291.png" alt="txp_camel_11-1723021756291.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:10:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1927216#M39058</guid>
      <dc:creator>txp_camel</dc:creator>
      <dc:date>2024-08-07T09:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1927220#M39059</link>
      <description>&lt;P&gt;The following is the configuration when I call the Lpspi_ic_Asynchronous TransmitFast() interface&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_0-1723022127143.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292357iD69A10D8739A4ADF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_0-1723022127143.png" alt="txp_camel_0-1723022127143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:15:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1927220#M39059</guid>
      <dc:creator>txp_camel</dc:creator>
      <dc:date>2024-08-07T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1928285#M39113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;not sure for first one, it looks like some error message related to MCAL driver, no jobs are set in IP level setting.&lt;BR /&gt;For a second one, try to have&amp;nbsp;Rx DMA ISR priority level higher than Tx DMA ISR.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 12:55:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1928285#M39113</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-08-08T12:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1928742#M39154</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;I tried to set the priority of DMA Rx to the highest among all ISR. However, DMA Rx ISR still cannot be triggered.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_1-1723170252774.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292683iFC2D651A16262B85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_1-1723170252774.png" alt="txp_camel_1-1723170252774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I don't call the Lpspi_ip_Asynchronous TransmitFast() interface and instead call the Lpspi_ip_Asynchronous Transmit() interface, the DMA Rx ISR can be triggered normally&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_2-1723170270532.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292684iAF278047F65087F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_2-1723170270532.png" alt="txp_camel_2-1723170270532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The following is the program stack when the Lpspi_ic_Asynchronous Transmit() interface is called normally&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txp_camel_3-1723170372998.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/292685i78A81B127FD2F8E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txp_camel_3-1723170372998.png" alt="txp_camel_3-1723170372998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;DMA0_CH0 is the ISR of DMA Tx channel&lt;/P&gt;&lt;P&gt;DMA0_CH1 is the ISR of DMA Rx channel&lt;/P&gt;&lt;P&gt;And the ISR processing function corresponding to SPI is also called normally&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 02:29:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1928742#M39154</guid>
      <dc:creator>txp_camel</dc:creator>
      <dc:date>2024-08-09T02:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1929067#M39175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;let me check with RTD team.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 10:44:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1929067#M39175</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-08-09T10:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1934634#M39765</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has there been any progress on this inspection?&lt;/P&gt;&lt;P&gt;Look forward to your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 02:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1934634#M39765</guid>
      <dc:creator>txp_camel</dc:creator>
      <dc:date>2024-08-19T02:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 LPSPI + DMA AsyncTransmitFast</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1934914#M39794</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Here is the answer from RTD team:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have a S32K344 SPI fast transfer demo with RTD 4.0.0 (&lt;STRONG&gt;MCAL layer)&lt;/STRONG&gt;. Please check the attachment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;According to your description(in SPI IP layer driver), the actual required number of DMA scatter/gather elements should be: &lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;4 TX, 2*(TCR + TDR)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;2 RX, for 2 RX transfer&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;SpiMaxDmaFastTransfer=2;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note that the above calculation method is not applicable to the MCAL layer driver.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 07:31:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-LPSPI-DMA-AsyncTransmitFast/m-p/1934914#M39794</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2024-08-19T07:31:20Z</dc:date>
    </item>
  </channel>
</rss>

