<?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: SPI TRANSFER S32K in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1342440#M12142</link>
    <description>&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;The version I was working on, had a few issues like:&lt;/P&gt;&lt;P&gt;I need to change the local definition of the RX/TX buffers to global.&lt;/P&gt;&lt;P&gt;It seems to transmit array in reverse order like Byte 5 goes out 1st and byte 4 goes out next and .... .&lt;/P&gt;&lt;P&gt;Other than those, it seems to be working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;kOOROSH&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 20:30:26 GMT</pubDate>
    <dc:creator>hajianik</dc:creator>
    <dc:date>2021-09-17T20:30:26Z</dc:date>
    <item>
      <title>SPI TRANSFER S32K</title>
      <link>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1337879#M12043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I took the example project "lpspi_transfer_s32k148" and made some modification to it:&lt;/P&gt;&lt;P&gt;What remain is clock and the pin and spi0 initialization.&lt;/P&gt;&lt;P&gt;Also I changed the size input of the&amp;nbsp; MasterTransferBlocking from 1 to 5 and the PE is configured for 40bits&amp;nbsp; for transfer size.&lt;/P&gt;&lt;P&gt;what happen is only the 1 byte of the 5 byte transmit buffer is transferred and the bus after transmitting this byte is pulled high for remaining of the cycle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;in contrast to this I tried transmitting 5 bytes by using the function 5 times and passing 1 for the size and it works OK.&lt;/P&gt;&lt;P&gt;Could someone explain this contrast between transferring 5 bytes (40 bits clock cycle) and one byte at a time using 5 (8bits clock)?&lt;/P&gt;&lt;P&gt;LPSPI_DRV_MasterTransferBlocking(SEND, &amp;amp;masterDataSend, &amp;amp;masterDataReceive,5, 0);&lt;BR /&gt;// LPSPI_DRV_MasterTransferBlocking(SEND, &amp;amp;masterDataSend[1], &amp;amp;masterDataReceive,1, TIMEOUT);&lt;BR /&gt;//LPSPI_DRV_MasterTransferBlocking(SEND, &amp;amp;masterDataSend[2], &amp;amp;masterDataReceive,1, TIMEOUT);&lt;BR /&gt;//LPSPI_DRV_MasterTransferBlocking(SEND, &amp;amp;masterDataSend[3], &amp;amp;masterDataReceive,1, TIMEOUT);&lt;BR /&gt;//LPSPI_DRV_MasterTransferBlocking(SEND, &amp;amp;masterDataSend[4], &amp;amp;masterDataReceive,1, TIMEOUT);&lt;BR /&gt;//FTM_DRV_UpdatePwmChannel(INST_FLEXTIMER_PWM1, 1U, FTM_PWM_UPDATE_IN_DUTY_CYCLE, masterDataReceive&amp;lt;&amp;lt;8, 0U, true);&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koorosh&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 18:41:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1337879#M12043</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2021-09-09T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPI TRANSFER S32K</title>
      <link>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1338273#M12055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;using 40 bit/frame setting with below code&lt;/P&gt;
&lt;P&gt;uint8_t masterDataSend[8]={1,2,3,4,5,6,7,8};&lt;BR /&gt;uint8_t masterDataReceive[8];&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: inherit;"&gt;while(1)&lt;BR /&gt;&lt;/SPAN&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LPSPI_DRV_MasterTransferBlocking(SEND, &amp;amp;masterDataSend, &amp;amp;masterDataReceive, 8, TIMEOUT);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;I got&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1631261993049.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155725i7BC599DB11D8EBB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1631261993049.png" alt="PetrS_0-1631261993049.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please refer to suggestion for&amp;nbsp;&lt;SPAN&gt;transferByteCount and buffer in driver description&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;C:/NXP/S32DS_ARM_v2.2/S32DS/software/S32SDK_S32K1xx_RTM_3.0.0/doc/html_S32K148/group__lpspi.html&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Or with 8 bit/frame setting and PCS continuous you can have&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LPSPI_DRV_MasterTransferBlocking(SEND, &amp;amp;masterDataSend, &amp;amp;masterDataReceive, 5, TIMEOUT);&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_1-1631263358190.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155734i934F6287A848A505/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_1-1631263358190.png" alt="PetrS_1-1631263358190.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 08:43:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1338273#M12055</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-09-10T08:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPI TRANSFER S32K</title>
      <link>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1338558#M12061</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Petr&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Either of two solution does not work on my board(S32K148 EVAL).&lt;/P&gt;&lt;P&gt;I tried many mutations , It does not work, only one byte gets transferred.&lt;/P&gt;&lt;P&gt;It is a simple project which is attached.&lt;/P&gt;&lt;P&gt;Please see if you could run it correctly on your set up.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Koorosh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 18:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1338558#M12061</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2021-09-10T18:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: SPI TRANSFER S32K</title>
      <link>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1339610#M12090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;seems your project uses some early SDK version (EAR_0.8.6). Please update to the latest one, RTM4.0.x in S32DS 3.4, or RTM 3.0.3 in S32DS 2.2.&lt;BR /&gt;I used demo example from&amp;nbsp;S32DS 2.2 RTM 3.0.3 and see no issue there.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:29:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1339610#M12090</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-09-14T07:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: SPI TRANSFER S32K</title>
      <link>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1342440#M12142</link>
      <description>&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;The version I was working on, had a few issues like:&lt;/P&gt;&lt;P&gt;I need to change the local definition of the RX/TX buffers to global.&lt;/P&gt;&lt;P&gt;It seems to transmit array in reverse order like Byte 5 goes out 1st and byte 4 goes out next and .... .&lt;/P&gt;&lt;P&gt;Other than those, it seems to be working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;kOOROSH&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 20:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-TRANSFER-S32K/m-p/1342440#M12142</guid>
      <dc:creator>hajianik</dc:creator>
      <dc:date>2021-09-17T20:30:26Z</dc:date>
    </item>
  </channel>
</rss>

