<?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: S32k142 spi: LPSPI_DRV_MasterTransfer() problem</title>
    <link>https://community.nxp.com/t5/S32K/S32k142-spi-LPSPI-DRV-MasterTransfer-problem/m-p/1365233#M12638</link>
    <description>&lt;P&gt;Hi Nanjun,&lt;/P&gt;
&lt;P&gt;This won't work, the SlaveTransfer must be ready before the Master starts the transfer.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1635865837113.png" style="width: 582px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/160997i8714863F031FA165/image-dimensions/582x166?v=v2" width="582" height="166" role="button" title="danielmartynek_0-1635865837113.png" alt="danielmartynek_0-1635865837113.png" /&gt;&lt;/span&gt;&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;</description>
    <pubDate>Tue, 02 Nov 2021 15:12:36 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2021-11-02T15:12:36Z</dc:date>
    <item>
      <title>S32k142 spi: LPSPI_DRV_MasterTransfer() problem</title>
      <link>https://community.nxp.com/t5/S32K/S32k142-spi-LPSPI-DRV-MasterTransfer-problem/m-p/1365168#M12635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The example lpspi_transfer_s32k142 works properly on the eval-board, where the slave transfers date to master by LPSPI_DRV_SlaveTransfer() and LPSPI_DRV_MasterTransferBlocking().&lt;/P&gt;&lt;P&gt;However, I exchanged the direction of data transfering and the master shall send the data to slave with the following lines:&lt;/P&gt;&lt;P&gt;masterDataSend = (uint8_t)adcRead;&lt;BR /&gt;LPSPI_DRV_MasterTransfer(SEND,&amp;amp;masterDataSend, &amp;amp;masterDataReceive, BUFFER_SIZE);&lt;BR /&gt;LPSPI_DRV_SlaveTransferBlocking(RECEIVE, &amp;amp;slaveDataSend, &amp;amp;slaveDataReceive, BUFFER_SIZE, TIMEOUT);&lt;BR /&gt;FTM_DRV_UpdatePwmChannel(INST_FLEXTIMER_PWM1, 0U, FTM_PWM_UPDATE_IN_DUTY_CYCLE, slaveDataReceive&amp;lt;&amp;lt;8, 0U, true);&lt;/P&gt;&lt;P&gt;where slaveDataReceive is always 0.&lt;/P&gt;&lt;P&gt;Is there anything shall be reconfigured as well to make it operate properly?&lt;/P&gt;&lt;P&gt;Attached is the entire project. Thank you!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nanjun&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, 02 Nov 2021 12:30:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k142-spi-LPSPI-DRV-MasterTransfer-problem/m-p/1365168#M12635</guid>
      <dc:creator>nanjun</dc:creator>
      <dc:date>2021-11-02T12:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32k142 spi: LPSPI_DRV_MasterTransfer() problem</title>
      <link>https://community.nxp.com/t5/S32K/S32k142-spi-LPSPI-DRV-MasterTransfer-problem/m-p/1365233#M12638</link>
      <description>&lt;P&gt;Hi Nanjun,&lt;/P&gt;
&lt;P&gt;This won't work, the SlaveTransfer must be ready before the Master starts the transfer.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1635865837113.png" style="width: 582px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/160997i8714863F031FA165/image-dimensions/582x166?v=v2" width="582" height="166" role="button" title="danielmartynek_0-1635865837113.png" alt="danielmartynek_0-1635865837113.png" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Tue, 02 Nov 2021 15:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k142-spi-LPSPI-DRV-MasterTransfer-problem/m-p/1365233#M12638</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-11-02T15:12:36Z</dc:date>
    </item>
  </channel>
</rss>

