<?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のトピックHow to send/receive 64bit or longer message using SPI</title>
    <link>https://community.nxp.com/t5/S32K/How-to-send-receive-64bit-or-longer-message-using-SPI/m-p/1476343#M15986</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Currently, I have to implement to send/receive 64bit(4*16bits) and longer SPI messages using S32K144.&lt;/P&gt;&lt;P&gt;I'm using S32K144 EVB and S32 Design Studio for ARM 2.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the LPSPI example code in S32 Design Studio, I tested 64bit SPI transfer&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I didn't work properly.&lt;/P&gt;&lt;P&gt;I changed CONT register to "True", after then if 4 messages were transferred&lt;/P&gt;&lt;P&gt;Also, I changed CONT register to "False"&lt;/P&gt;&lt;P&gt;But, the result was different from my expectation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have several questions about the SPI implementation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. How to send/receive 64bit(2Byte * 4) SPI messages&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Which registers also have to be modified from the initial SPI example code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;2. How to send/receive 12Bytes(2Bytes*6) and 168Bytes(2Bytes*84) SPI messages also&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Which kinds of things have to be modified together&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;3. How to observe SPI FIFO values?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I heard the 4 FIFO buffer included in S32K144, Can I observe and monitor the FIFO buffer data?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the security policy of our company, I couldn't attach screenshot&lt;/P&gt;&lt;P&gt;If you need screenshot please let me know your e-mail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 07:59:45 GMT</pubDate>
    <dc:creator>TaehoLee</dc:creator>
    <dc:date>2022-06-20T07:59:45Z</dc:date>
    <item>
      <title>How to send/receive 64bit or longer message using SPI</title>
      <link>https://community.nxp.com/t5/S32K/How-to-send-receive-64bit-or-longer-message-using-SPI/m-p/1476343#M15986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Currently, I have to implement to send/receive 64bit(4*16bits) and longer SPI messages using S32K144.&lt;/P&gt;&lt;P&gt;I'm using S32K144 EVB and S32 Design Studio for ARM 2.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the LPSPI example code in S32 Design Studio, I tested 64bit SPI transfer&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I didn't work properly.&lt;/P&gt;&lt;P&gt;I changed CONT register to "True", after then if 4 messages were transferred&lt;/P&gt;&lt;P&gt;Also, I changed CONT register to "False"&lt;/P&gt;&lt;P&gt;But, the result was different from my expectation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have several questions about the SPI implementation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. How to send/receive 64bit(2Byte * 4) SPI messages&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Which registers also have to be modified from the initial SPI example code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;2. How to send/receive 12Bytes(2Bytes*6) and 168Bytes(2Bytes*84) SPI messages also&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Which kinds of things have to be modified together&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;3. How to observe SPI FIFO values?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I heard the 4 FIFO buffer included in S32K144, Can I observe and monitor the FIFO buffer data?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the security policy of our company, I couldn't attach screenshot&lt;/P&gt;&lt;P&gt;If you need screenshot please let me know your e-mail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 07:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-send-receive-64bit-or-longer-message-using-SPI/m-p/1476343#M15986</guid>
      <dc:creator>TaehoLee</dc:creator>
      <dc:date>2022-06-20T07:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to send/receive 64bit or longer message using SPI</title>
      <link>https://community.nxp.com/t5/S32K/How-to-send-receive-64bit-or-longer-message-using-SPI/m-p/1476632#M15996</link>
      <description>&lt;P&gt;Hi&amp;nbsp;TaehoLee,&lt;/P&gt;
&lt;P&gt;Seems that you are refer &lt;STRONG&gt;S32K144_Project_LPSPI&amp;nbsp;&lt;/STRONG&gt;bare metal example. Then you can refer: &lt;A href="https://www.nxp.com/docs/en/application-note/AN5320.pdf" target="_self"&gt;AN5320&amp;nbsp;Using LPSPI on KL28Z&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to use the S32 SDK, please read the &lt;STRONG&gt;S32SDK_S32K144_UserManual&lt;/STRONG&gt;.(C:\NXP\S32DS_ARM_v2.2\S32DS\software\S32SDK_S32K1xx_RTM_3.0.0\doc\S32SDK_S32K144_UserManual.pdf)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16.87 Low Power Serial Peripheral Interface (LPSPI).png" style="width: 638px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183883iD88FAA98BE692CCA/image-size/large?v=v2&amp;amp;px=999" role="button" title="16.87 Low Power Serial Peripheral Interface (LPSPI).png" alt="16.87 Low Power Serial Peripheral Interface (LPSPI).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;lpspi_dma_s32k144&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;lpspi_transfer_s32k144&lt;/STRONG&gt; can be found in&amp;nbsp;&lt;STRONG&gt;S32SDK S32K1xx RTM&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 08:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-send-receive-64bit-or-longer-message-using-SPI/m-p/1476632#M15996</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2022-06-20T08:41:16Z</dc:date>
    </item>
  </channel>
</rss>

