<?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 S32K144EVB LPSPI send more than 1/2/4 Bytes in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144EVB-LPSPI-send-more-than-1-2-4-Bytes/m-p/796293#M2313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the S32K144EVB and I want to send more than 1/2/4 bytes using lpspi.&lt;/P&gt;&lt;P&gt;On the "flexio_spi_config" block under the "Advanced" tab, we have the "Transfer size" drop down. But I only have the option to send 1/2/4 bytes, in this case I want to send 6 bytes (48 bits) continuously, having asserted the SS signal continuously while transmitting the 6 bytes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="flexio_spi_config.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63163i33837D51CF7DFD89/image-size/large?v=v2&amp;amp;px=999" role="button" title="flexio_spi_config.png" alt="flexio_spi_config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;I set the transfer size to 2B and set the "Data Tx" of "FlexIO_SPI_Master_Transfer" to a 6 byte vector, it sends the 6 bytes but the SS line is changed at the end of each 2B transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="spi_transfer_6bytes.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63227i8AC435ADE917E5D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="spi_transfer_6bytes.png" alt="spi_transfer_6bytes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Same is true if I set it to 1B, with the SS line changing after each 1B transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to transmit the 6B with the SS line asserted continuously?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gustavo&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2018 20:08:33 GMT</pubDate>
    <dc:creator>gramirezv</dc:creator>
    <dc:date>2018-08-16T20:08:33Z</dc:date>
    <item>
      <title>S32K144EVB LPSPI send more than 1/2/4 Bytes</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144EVB-LPSPI-send-more-than-1-2-4-Bytes/m-p/796293#M2313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the S32K144EVB and I want to send more than 1/2/4 bytes using lpspi.&lt;/P&gt;&lt;P&gt;On the "flexio_spi_config" block under the "Advanced" tab, we have the "Transfer size" drop down. But I only have the option to send 1/2/4 bytes, in this case I want to send 6 bytes (48 bits) continuously, having asserted the SS signal continuously while transmitting the 6 bytes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="flexio_spi_config.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63163i33837D51CF7DFD89/image-size/large?v=v2&amp;amp;px=999" role="button" title="flexio_spi_config.png" alt="flexio_spi_config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;I set the transfer size to 2B and set the "Data Tx" of "FlexIO_SPI_Master_Transfer" to a 6 byte vector, it sends the 6 bytes but the SS line is changed at the end of each 2B transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="spi_transfer_6bytes.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63227i8AC435ADE917E5D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="spi_transfer_6bytes.png" alt="spi_transfer_6bytes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Same is true if I set it to 1B, with the SS line changing after each 1B transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to transmit the 6B with the SS line asserted continuously?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gustavo&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 20:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144EVB-LPSPI-send-more-than-1-2-4-Bytes/m-p/796293#M2313</guid>
      <dc:creator>gramirezv</dc:creator>
      <dc:date>2018-08-16T20:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144EVB LPSPI send more than 1/2/4 Bytes</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144EVB-LPSPI-send-more-than-1-2-4-Bytes/m-p/796294#M2314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/gramirezv"&gt;gramirezv&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The options that you can find in the toolbox reflect the options you can find in the following enum (from the SDK itself):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV class="" style="color: #000000; text-indent: -53px; padding-left: 53px;"&gt;&lt;SPAN class="" style="color: #008000;"&gt;typedef&lt;/SPAN&gt; &lt;SPAN class="" style="color: #008000;"&gt;enum&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; text-indent: -53px; padding-left: 53px;"&gt;&amp;nbsp;{&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; text-indent: -53px; padding-left: 53px;"&gt;&amp;nbsp;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/message/group__flexio__spi__drv.html#ggaf27bf9014dae8d1c0eac87af6b830ca1a6fab72401da0556eeac7a7fe44ef88dc" style="color: #4665a2; font-weight: normal; text-decoration: none;"&gt;FLEXIO_SPI_TRANSFER_1BYTE&lt;/A&gt; = 1U,&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; text-indent: -53px; padding-left: 53px;"&gt;&amp;nbsp;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/message/group__flexio__spi__drv.html#ggaf27bf9014dae8d1c0eac87af6b830ca1a6b0aff823beab98ed3e5b5f1a3a99f72" style="color: #4665a2; font-weight: normal; text-decoration: none;"&gt;FLEXIO_SPI_TRANSFER_2BYTE&lt;/A&gt; = 2U,&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; text-indent: -53px; padding-left: 53px;"&gt;&amp;nbsp;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/message/group__flexio__spi__drv.html#ggaf27bf9014dae8d1c0eac87af6b830ca1abb494374e647f7e5b57b013bf84bea8a" style="color: #4665a2; font-weight: normal; text-decoration: none;"&gt;FLEXIO_SPI_TRANSFER_4BYTE&lt;/A&gt; = 4U,&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; text-indent: -53px; padding-left: 53px;"&gt;&amp;nbsp;} &lt;A _jive_internal="true" href="https://community.nxp.com/message/group__flexio__spi__drv.html#gaf27bf9014dae8d1c0eac87af6b830ca1" style="color: #4665a2; font-weight: normal; text-decoration: none;"&gt;flexio_spi_transfer_size_t&lt;/A&gt;;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must make a remark that in the title you used the term 'LPSPI' - I think that you are confuzing LPSPI with flexIO SPI. The flexIO only emulates SPI (read more &lt;A _jive_internal="true" href="https://community.nxp.com/message/952220"&gt;here&lt;/A&gt;), but it has some limitations, like this. You are free to use the LPSPI block, if you don't use it already for other purposes in your project. You can set there the frame size you want, with no limitations besides&amp;nbsp;the fact that&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;minimum is 8-bits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Razvan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 07:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144EVB-LPSPI-send-more-than-1-2-4-Bytes/m-p/796294#M2314</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2018-08-17T07:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144EVB LPSPI send more than 1/2/4 Bytes</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144EVB-LPSPI-send-more-than-1-2-4-Bytes/m-p/796295#M2315</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/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much on your prompt response. You are right, I confused the FlexIO emulated SPI with the LPSPI interface (I learned something, and that's awesome). I'll&amp;nbsp;use the LPSPI blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gustavo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 12:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144EVB-LPSPI-send-more-than-1-2-4-Bytes/m-p/796295#M2315</guid>
      <dc:creator>gramirezv</dc:creator>
      <dc:date>2018-08-17T12:56:39Z</dc:date>
    </item>
  </channel>
</rss>

