<?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 Re: S32k144 transfer array to S32k142,but the sequence of data in array is wrong in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951078#M5227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Em, is there some&amp;nbsp;advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2019 01:20:34 GMT</pubDate>
    <dc:creator>DELPHI_Eric</dc:creator>
    <dc:date>2019-08-22T01:20:34Z</dc:date>
    <item>
      <title>S32k144 transfer array to S32k142,but when set point to debug I found the sequence of data in array sometimes was wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951077#M5226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used master S32k144 sent&amp;nbsp;&lt;STRONG&gt;uint8_t TXBuffer[8] = {0,1,2,3,4,5,6,7};&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(STATUS_SUCCESS == LPSPI_DRV_MasterTransfer(0, TXBuffer, RXBuffer, 8))&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;to slave S32k142:&amp;nbsp;&lt;STRONG&gt;uint8_t RXBuffer[8] = {0};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(STATUS_SUCCESS == LPSPI_DRV_SlaveTransfer(0, TXBuffer, RXBuffer, 8))&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;but the sequence of data in&amp;nbsp;RXBuffer[8] is wrong,as follow, the&amp;nbsp;&lt;SPAN&gt;sequence&lt;/SPAN&gt; also changed not surely,sometimes it's {1,2,3,4,5,6,7,0},or&amp;nbsp;&lt;SPAN&gt;{4,5,6,7,0,1,2,3},or&amp;nbsp;&lt;SPAN&gt;{6,7,0,1,2,3,4,5} and so on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88796i20C8C6195ACEC8E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88770i4C53DF200B36B635/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I check the clock polarity, direction of the 144 and 142 both are clock active high and lsb first. So how can I get the correct&amp;nbsp;&lt;SPAN&gt;sequence of data in&amp;nbsp;RXBuffer[8] as the sequence of data in TXBuffer[8] of master S32K144 sent. Is there some SDK API need to be called.Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 08:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951077#M5226</guid>
      <dc:creator>DELPHI_Eric</dc:creator>
      <dc:date>2019-08-21T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 transfer array to S32k142,but the sequence of data in array is wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951078#M5227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Em, is there some&amp;nbsp;advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 01:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951078#M5227</guid>
      <dc:creator>DELPHI_Eric</dc:creator>
      <dc:date>2019-08-22T01:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 transfer array to S32k142,but when set point to debug I found the sequence of data in array sometimes was wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951079#M5228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are using non-blocking functions.&lt;/P&gt;&lt;P&gt;Please use the&amp;nbsp;LPSPI_DRV_SlaveGetTransferStatus(),&amp;nbsp;LPSPI_DRV_MasterGetTransferStatus() function once you initialize a transfer to check if the transfer is complete.&lt;/P&gt;&lt;P&gt;More information in the SDK documentation:&lt;/P&gt;&lt;P&gt;.../S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K1xx_RTM_3.0.0/doc/Start_here.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:10:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951079#M5228</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-08-22T08:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 transfer array to S32k142,but when set point to debug I found the sequence of data in array sometimes was wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951080#M5229</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;First of all, thank you for your patience. I have tried to code follow your advise as above.The code as follow:&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;master S32k144:&lt;/P&gt;&lt;P&gt;if(STATUS_SUCCESS == LPSPI_DRV_MasterTransfer(0, TXBuffer, RXBuffer, 8))&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;uint32_t nbytes = 0;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;LPSPI_DRV_MasterGetTransferStatus&lt;/STRONG&gt;(0, &amp;amp;nbytes);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;while( 8 != nbytes )&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;OSIF_TimeDelay( 1 );&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;SPAN&gt;he&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;nbytes of&amp;nbsp;&lt;STRONG&gt;LPSPI_DRV_SlaveGetTransferStatus&amp;nbsp;&lt;/STRONG&gt;equal 8, it seem transfered all the 8 datas sucessfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;slave S32k142:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;status_t sts = LPSPI_DRV_SlaveTransfer(0, TXBuffer, RXBuffer, 8);&lt;BR /&gt; if(STATUS_SUCCESS == sts)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;uint32_t nbytes;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;LPSPI_DRV_SlaveGetTransferStatus&lt;/STRONG&gt;(0, &amp;amp;nbytes);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if(8 == nbytes)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(; index &amp;lt; 8; index ++)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TXBuffer0[index] = RXBuffer[index];&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; OSIF_TimeDelay(1);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;nbytes of&amp;nbsp;&lt;STRONG&gt;LPSPI_DRV_SlaveGetTransferStatus&lt;/STRONG&gt; always equal 4.&lt;/SPAN&gt;I found the description of&amp;nbsp;&lt;STRONG&gt;LPSPI_DRV_SlaveGetTransferStatus() &lt;SPAN style="color: #51626f; background-color: #ffffff; font-weight: 400;"&gt;in the SDK documentation is:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88881i97AF81A522CA99E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, it's&amp;nbsp;&lt;SPAN style="color: #602020; background-color: #ffffff; font-weight: bold; font-size: 14px;"&gt;bytesRemained&lt;/SPAN&gt; dosn't&amp;nbsp;express the data received sucessfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 10:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951080#M5229</guid>
      <dc:creator>DELPHI_Eric</dc:creator>
      <dc:date>2019-08-22T10:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 transfer array to S32k142,but when set point to debug I found the sequence of data in array sometimes was wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951081#M5230</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;master S32k144:&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;T&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;he&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;nbytes of &lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;LPSPI_DRV_MasterGetTransferStatus&lt;/STRONG&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;&amp;nbsp;&lt;/STRONG&gt;equal 8, it seem transfered all the 8 datas sucessfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;In the result, the problem dosn't solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 10:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951081#M5230</guid>
      <dc:creator>DELPHI_Eric</dc:creator>
      <dc:date>2019-08-22T10:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 transfer array to S32k142,but when set point to debug I found the sequence of data in array sometimes was wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951082#M5231</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/shenjun"&gt;shenjun&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you&amp;nbsp;make sure that the slave data are&amp;nbsp;initialized before the master starts the transfer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 08:13:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951082#M5231</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-08-23T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 transfer array to S32k142,but when set point to debug I found the sequence of data in array sometimes was wrong</title>
      <link>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951083#M5232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you remind,I found master's transfer&amp;nbsp;&lt;SPAN style="color: #2e3033; background-color: #ffffff; font-weight: normal; font-size: 14.000000953674316px;"&gt;frequency was too fast.&amp;nbsp;When&amp;nbsp;I make it slow,the slave receive data is ok.By the way,what's the maximum bytes of buffer can master send once a time.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 09:27:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k144-transfer-array-to-S32k142-but-when-set-point-to-debug-I/m-p/951083#M5232</guid>
      <dc:creator>DELPHI_Eric</dc:creator>
      <dc:date>2019-08-23T09:27:13Z</dc:date>
    </item>
  </channel>
</rss>

