<?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のトピックspi continuous frames cannot be implemented</title>
    <link>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1417102#M14079</link>
    <description>&lt;P&gt;I want to use lpspi1 as master to transmit 3 * 16 bit as a frame to slave MC33664.&lt;/P&gt;&lt;P&gt;But tx clk is not correct. when i send 48 bit as a frame ,the clk and data cs all waveform is correct and MC33664 return data can be received by lpspi2 as slave.&amp;nbsp; when slave set&amp;nbsp;LPSPI_TCR_FRAMESZ as 16 bit ,the receive data order is not correct. but set&amp;nbsp;LPSPI_TCR_FRAMESZ as 48 bit is correct. &lt;SPAN&gt;I think it might be used not correctly of&amp;nbsp;LPSPI_TCR_CONT and&amp;nbsp;LPSPI_TCR_CONTC register .But&amp;nbsp;&lt;/SPAN&gt;I tried different combinations of these，n&lt;SPAN&gt;one of them succeeded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me how to configure a continuous frame. my code refer to attachment. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 02:44:21 GMT</pubDate>
    <dc:creator>Xjh193</dc:creator>
    <dc:date>2022-02-22T02:44:21Z</dc:date>
    <item>
      <title>spi continuous frames cannot be implemented</title>
      <link>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1417102#M14079</link>
      <description>&lt;P&gt;I want to use lpspi1 as master to transmit 3 * 16 bit as a frame to slave MC33664.&lt;/P&gt;&lt;P&gt;But tx clk is not correct. when i send 48 bit as a frame ,the clk and data cs all waveform is correct and MC33664 return data can be received by lpspi2 as slave.&amp;nbsp; when slave set&amp;nbsp;LPSPI_TCR_FRAMESZ as 16 bit ,the receive data order is not correct. but set&amp;nbsp;LPSPI_TCR_FRAMESZ as 48 bit is correct. &lt;SPAN&gt;I think it might be used not correctly of&amp;nbsp;LPSPI_TCR_CONT and&amp;nbsp;LPSPI_TCR_CONTC register .But&amp;nbsp;&lt;/SPAN&gt;I tried different combinations of these，n&lt;SPAN&gt;one of them succeeded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me how to configure a continuous frame. my code refer to attachment. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 02:44:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1417102#M14079</guid>
      <dc:creator>Xjh193</dc:creator>
      <dc:date>2022-02-22T02:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: spi continuous frames cannot be implemented</title>
      <link>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1417437#M14083</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181697"&gt;@Xjh193&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is you code:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;MC33664_MASTER_SPI_HANDLE-&amp;gt;TCR = LPSPI_TCR_CPOL(0) | LPSPI_TCR_CPHA(1) | LPSPI_TCR_PCS(0) | LPSPI_TCR_PRESCALE(MC33664_CLK_FRE)
		| LPSPI_TCR_CONT(1) | LPSPI_TCR_CONTC(1) | LPSPI_TCR_FRAMESZ(16 - 1) | LPSPI_TCR_TXMSK(1);

	MC33664_MASTER_SPI_HANDLE-&amp;gt;TDR = tx[0];
	MC33664_MASTER_SPI_HANDLE-&amp;gt;TDR = tx[1];
	MC33664_MASTER_SPI_HANDLE-&amp;gt;TCR = LPSPI_TCR_CPOL(0) | LPSPI_TCR_CPHA(1) | LPSPI_TCR_PCS(MC33664_PCS_MAP[id]) | LPSPI_TCR_PRESCALE(MC33664_CLK_FRE)
			| LPSPI_TCR_CONT(0) | LPSPI_TCR_CONTC(0) | LPSPI_TCR_FRAMESZ(16 - 1) | LPSPI_TCR_TXMSK(1);
MC33664_MASTER_SPI_HANDLE-&amp;gt;TDR = tx[2];&lt;/LI-CODE&gt;
&lt;P&gt;In the first command, you have both CONT can CONTC set.&lt;/P&gt;
&lt;P&gt;But only CONT should be set, becasuse it starts a new continuous transfer (CONT = 1) but it does not change an ongoing continuous transfer (CONTC = 0).&lt;/P&gt;
&lt;P&gt;Then, you can write all the three 16bit words (please check if there is a place in the FIFO left).&lt;/P&gt;
&lt;P&gt;And terminate the continuous transfer with a new command where (CONT = 0, CONTC = 0).&lt;/P&gt;
&lt;P&gt;There is actualy no need for CONTC = 1, becasue you don't change any parameters of the continous transfer specified in the first command, you just start it and terminate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&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;</description>
      <pubDate>Tue, 22 Feb 2022 11:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1417437#M14083</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-02-22T11:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: spi continuous frames cannot be implemented</title>
      <link>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1418234#M14114</link>
      <description>&lt;P&gt;&lt;A href="mailto:hi@Daniel," target="_blank"&gt;hi@Daniel,&lt;/A&gt;&amp;nbsp;accoding to your guidance ,I sent 0x1122 0x3344 0x5566 data and get them. Thank you!&lt;/P&gt;&lt;P&gt;Now I want to use DMA channel to receive spi data,but failed. I check the related register , found that the TCD0_DADDR&amp;nbsp;are not added.&amp;nbsp;I enable DMAMUX_0, DMA_TCD0 clock. source 48(lspi2 rx request) ,DMA channel 0.&amp;nbsp;See the attachment for the more configuration. I'm looking forward to you reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 12:21:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1418234#M14114</guid>
      <dc:creator>Xjh193</dc:creator>
      <dc:date>2022-02-23T12:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: spi continuous frames cannot be implemented</title>
      <link>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1418905#M14134</link>
      <description>&lt;P&gt;Hi&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181697"&gt;@Xjh193&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Please create a new thread regarding the DMA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/spi-continuous-frames-cannot-be-implemented/m-p/1418905#M14134</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-02-24T08:34:34Z</dc:date>
    </item>
  </channel>
</rss>

