<?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>i.MX RT Crossover MCUsのトピックTwo continuous LPSPI blocking transfer</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Two-continuous-LPSPI-blocking-transfer/m-p/883420#M2536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to read data from a serial Nor flash, connected to my RT1051 through LPSPI2.&lt;/P&gt;&lt;P&gt;I have to send one command byte and then I have to read 10KB data.&lt;/P&gt;&lt;P&gt;It would be nice to do this with two transfers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a 1-byte transfer in tx for command, with the rx buffer NULL&lt;/LI&gt;&lt;LI&gt;another transfer with 10KB rx buffer, and NULL tx buffer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;obviously the chip-select must be asserted at the first transfer and de-asserted at the end of the second transfer, between the two transfers the chip-select must remain asserted (I think the CONTC bit of TCR is to be used)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Is it possible to do this with the SDK 2.5.0 APIs?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;a single call to LPSPI_MasterTransferBlocking() would force me to allocate both rxData and txData buffers with two vectors of more than 10KB, in which the tx buffer is completely useless. Is exactly what I would like to avoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2019 17:38:25 GMT</pubDate>
    <dc:creator>mastupristi</dc:creator>
    <dc:date>2019-04-05T17:38:25Z</dc:date>
    <item>
      <title>Two continuous LPSPI blocking transfer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Two-continuous-LPSPI-blocking-transfer/m-p/883420#M2536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to read data from a serial Nor flash, connected to my RT1051 through LPSPI2.&lt;/P&gt;&lt;P&gt;I have to send one command byte and then I have to read 10KB data.&lt;/P&gt;&lt;P&gt;It would be nice to do this with two transfers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a 1-byte transfer in tx for command, with the rx buffer NULL&lt;/LI&gt;&lt;LI&gt;another transfer with 10KB rx buffer, and NULL tx buffer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;obviously the chip-select must be asserted at the first transfer and de-asserted at the end of the second transfer, between the two transfers the chip-select must remain asserted (I think the CONTC bit of TCR is to be used)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Is it possible to do this with the SDK 2.5.0 APIs?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;a single call to LPSPI_MasterTransferBlocking() would force me to allocate both rxData and txData buffers with two vectors of more than 10KB, in which the tx buffer is completely useless. Is exactly what I would like to avoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 17:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Two-continuous-LPSPI-blocking-transfer/m-p/883420#M2536</guid>
      <dc:creator>mastupristi</dc:creator>
      <dc:date>2019-04-05T17:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Two continuous LPSPI blocking transfer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Two-continuous-LPSPI-blocking-transfer/m-p/883421#M2537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="266483" data-username="mastupristi" href="https://community.nxp.com/people/mastupristi"&gt;Massimiliano Cialdi&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use the SDK 2.5.0 APIs LPSPI_MasterTransferBlocking, if you don't want to send or receive, just define the according .txData or .rxData as NULL.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; masterXfer.txData = NULL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; masterXfer.rxData = NULL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; About the chip-select control, if you want to control it freely, you also can configure the CS as GPIO, then use the GPIO control it freely.&lt;/P&gt;&lt;P&gt;You can try it on your side.&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 08:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Two-continuous-LPSPI-blocking-transfer/m-p/883421#M2537</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-08T08:43:02Z</dc:date>
    </item>
  </channel>
</rss>

