<?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: Transfer/ Receive n bytes &amp;amp; Synchronous Transmit via SPI in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1958514#M9533</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054"&gt;@Irina_Costachescu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;You solved my problem, thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2024 07:43:44 GMT</pubDate>
    <dc:creator>SuperBeginner</dc:creator>
    <dc:date>2024-09-20T07:43:44Z</dc:date>
    <item>
      <title>Transfer/ Receive n bytes &amp; Synchronous Transmit via SPI</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1956107#M9505</link>
      <description>&lt;P&gt;Dear NXP,&lt;/P&gt;&lt;P&gt;I have &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;two questions&lt;/FONT&gt;&lt;/STRONG&gt; regarding SPI communication development using MBDT:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;How can I read or write n bytes (&amp;gt;2 bytes)?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;I have verified that 2-byte data transmission is &lt;STRONG&gt;working fine&lt;/STRONG&gt; with the packet generator using the example project "&lt;STRONG&gt;s32k3xx_spi_async_interr_eb&lt;/STRONG&gt;t".&lt;BR /&gt;However, when I try to transmit &lt;STRONG&gt;4 bytes&lt;/STRONG&gt; of data (&lt;STRONG&gt;0xAA 0xAB&lt;/STRONG&gt;), the EVB only receives the &lt;STRONG&gt;0xAA&lt;/STRONG&gt; data.&lt;BR /&gt;I know this is quite normal, but I just want to provide an example to help you better understand my issue.&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;How do I develop synchronous transmit?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;I referenced the example "&lt;STRONG&gt;s32k344_spi_sync_master_ebt&lt;/STRONG&gt;" and tried to start data transmission with &lt;STRONG&gt;LPSPI2&lt;/STRONG&gt;, but it doesn’t work.&lt;BR /&gt;I checked the status. "&lt;STRONG&gt;SPI_SetupEB&lt;/STRONG&gt;" shows &lt;STRONG&gt;0&lt;/STRONG&gt; and "&lt;STRONG&gt;SPI_SyncTransmit&lt;/STRONG&gt;" shows &lt;STRONG&gt;1&lt;/STRONG&gt;.&lt;BR /&gt;&lt;P&gt;I have confirmed that my hardware connections are normal, as the asynchronous example project works correctly when programmed directly.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI_async_mode.PNG" style="width: 536px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299560i805B3BC25B2CB5A9/image-dimensions/536x277?v=v2" width="536" height="277" role="button" title="SPI_async_mode.PNG" alt="SPI_async_mode.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI_async_mode_freemaster.PNG" style="width: 543px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299559i563E5AF0E217A5D4/image-dimensions/543x166?v=v2" width="543" height="166" role="button" title="SPI_async_mode_freemaster.PNG" alt="SPI_async_mode_freemaster.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please help me. Thank you.&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="MBDT" id="MBDT"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp; &lt;LI-PRODUCT title="S32K312EVB-Q172" id="S32K312EVB-Q172"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 02:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1956107#M9505</guid>
      <dc:creator>SuperBeginner</dc:creator>
      <dc:date>2024-09-18T02:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer/ Receive n bytes &amp; Synchronous Transmit via SPI</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1958392#M9530</link>
      <description>&lt;P&gt;Dear NXP,&lt;/P&gt;&lt;P&gt;Regarding the second question - "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;How do I develop synchronous transmit?&lt;/STRONG&gt;&lt;/FONT&gt;", I found the answer myself.&lt;/P&gt;&lt;P&gt;I found this was an oversight on my part, I didn't enable&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt; SpiPhyUnitSync&lt;/FONT&gt;&lt;/STRONG&gt; under the S32 Config tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI_Setting_1.PNG" style="width: 384px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300251i7F530B191A0F1210/image-dimensions/384x503?v=v2" width="384" height="503" role="button" title="SPI_Setting_1.PNG" alt="SPI_Setting_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI_Setting_2.PNG" style="width: 385px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300250iE7EA56F719338A74/image-dimensions/385x247?v=v2" width="385" height="247" role="button" title="SPI_Setting_2.PNG" alt="SPI_Setting_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This resulted in my SPI communication not functioning in synchronous mode.&lt;/P&gt;&lt;P&gt;But regarding the first question - "&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;How can I read or write n bytes (&amp;gt;2 bytes)?&lt;/FONT&gt;&lt;/STRONG&gt;", I still need your help.&lt;/P&gt;&lt;P&gt;I don't know who can help me.&lt;/P&gt;&lt;P&gt;Please forgive me for now tagging engineers who have helped me in the past.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054" target="_blank" rel="noopener"&gt;&lt;FONT&gt;@Irina_Costachescu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199423" target="_blank" rel="noopener"&gt;&lt;FONT&gt;@dragostoma&lt;/FONT&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 05:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1958392#M9530</guid>
      <dc:creator>SuperBeginner</dc:creator>
      <dc:date>2024-09-20T05:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer/ Receive n bytes &amp; Synchronous Transmit via SPI</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1958406#M9531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239656"&gt;@SuperBeginner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to point you to the following thread, as a reference to a similar use case that was approached. Could you please check if the solution provided here is suitable for your use case?&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-configuration-MODEL-based-design-tool-box-32-bit-instruction/m-p/1384476" target="_self"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-configuration-MODEL-based-design-tool-box-32-bit-instruction/m-p/1384476&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 06:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1958406#M9531</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2024-09-20T06:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer/ Receive n bytes &amp; Synchronous Transmit via SPI</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1958514#M9533</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054"&gt;@Irina_Costachescu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;You solved my problem, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 07:43:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Transfer-Receive-n-bytes-amp-Synchronous-Transmit-via-SPI/m-p/1958514#M9533</guid>
      <dc:creator>SuperBeginner</dc:creator>
      <dc:date>2024-09-20T07:43:44Z</dc:date>
    </item>
  </channel>
</rss>

