<?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: FlexSPI - SCK  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931274#M139673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="345772" data-username="variable_andrew" href="https://community.nxp.com/people/variable_andrew"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;variable_andrew&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your updated information, and let me know you make it works on your side now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could you tell me your LUT index which you have modified and make it works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then I will help you to check the details. About the LUT information, you also can find it in the FlexSPI module chapter in the RM, there also have the detail description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&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="padding: 0px; min-height: 8pt;"&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>Tue, 20 Aug 2019 03:13:58 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2019-08-20T03:13:58Z</dc:date>
    <item>
      <title>FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931269#M139668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've altered&amp;nbsp;the flexspi_nor_polling_transfer demo (for RT1015&amp;nbsp; MCUXpresso) to fit my board's SPI Flash (the &lt;A href="https://media.digikey.com/pdf/Data%20Sheets/Toshiba%20PDFs/TC58CVG2S0HxAIx_Rev1.1_2016-11-08.pdf" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;TC58CVG2S0HRAIG NAND FLASH&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you clarify the usage of the LUT command + FlexSPI command?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;should I replace 0xC0 with the # of bits expected for the transfer?&lt;/LI&gt;&lt;LI&gt;is the 0x01 on the READ_SDR supplosed to be 0x08 for bits? or are read arguments in bytes, while addresses are in bits?&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;/* Read Status */&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;[4 * NAND_CMD_LUT_SEQ_IDX_READSTATUS] = FLEXSPI_LUT_SEQ(&lt;SPAN class=""&gt;kFLEXSPI_Command_SDR&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0x0F, &lt;SPAN class=""&gt;kFLEXSPI_Command_SDR&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0xC0),&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;[4 * NAND_CMD_LUT_SEQ_IDX_READSTATUS + 1] = FLEXSPI_LUT_SEQ(&lt;SPAN class=""&gt;kFLEXSPI_Command_READ_SDR&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0x01, &lt;SPAN class=""&gt;kFLEXSPI_Command_STOP&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0),&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Should the calling function that uses that to wait while busy look like this: (isn't the 0xC0 here redundant?)&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;status_t&lt;/SPAN&gt; flexspi_nand_wait_bus_busy(&lt;SPAN class=""&gt;FLEXSPI_Type&lt;/SPAN&gt; *base){&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt; /* Wait status ready. */&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; bool isBusy;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; uint32_t readValue;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; &lt;SPAN class=""&gt;status_t&lt;/SPAN&gt; status;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt; flexspi_transfer_t &lt;SPAN class=""&gt;flashXfer;&lt;/SPAN&gt;&lt;/SPAN&gt;

&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; flashXfer.&lt;SPAN class=""&gt;deviceAddress&lt;/SPAN&gt; = 0xC0;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; flashXfer.&lt;SPAN class=""&gt;port&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = &lt;SPAN class=""&gt;kFLEXSPI_PortA1&lt;/SPAN&gt;;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; flashXfer.&lt;SPAN class=""&gt;cmdType&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = &lt;SPAN class=""&gt;kFLEXSPI_Read&lt;/SPAN&gt;;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; flashXfer.&lt;SPAN class=""&gt;SeqNumber&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 1;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; flashXfer.&lt;SPAN class=""&gt;seqIndex&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = NAND_CMD_LUT_SEQ_IDX_READSTATUS;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; flashXfer.&lt;SPAN class=""&gt;data&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = &amp;amp;readValue;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; flashXfer.&lt;SPAN class=""&gt;dataSize&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 1;&lt;/SPAN&gt;

&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; &lt;SPAN class=""&gt;do&lt;/SPAN&gt; {&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; status = FLEXSPI_TransferBlocking(base, &amp;amp;flashXfer);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt; (status != &lt;SPAN class=""&gt;kStatus_Success&lt;/SPAN&gt;) {&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; &lt;SPAN class=""&gt;return&lt;/SPAN&gt; status;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; }&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; isBusy = (readValue &amp;amp; 0x01) == 0x01;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; } &lt;SPAN class=""&gt;while&lt;/SPAN&gt; (isBusy);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; &lt;SPAN class=""&gt;return&lt;/SPAN&gt; status;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run - the data on the SPI lines aren't right (CS asserts in the middle of a byte, SCK isn't consistent, sometimes doesn't toggle for a full transfer, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Below images show examples of weird behavior on the FlexSPI_D0, CS, and SCK&amp;nbsp; pins in order)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2019-08-15 at 4.10.30 PM.png"&gt;&lt;IMG alt="Screen Shot 2019-08-15 at 4.10.30 PM.png" src="https://community.nxp.com/t5/image/serverpage/image-id/87483i8E02C653C582A4BE/image-size/large?v=v2&amp;amp;px=999" title="Screen Shot 2019-08-15 at 4.10.30 PM.png" /&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2019-08-15 at 4.10.44 PM.png"&gt;&lt;IMG alt="Screen Shot 2019-08-15 at 4.10.44 PM.png" src="https://community.nxp.com/t5/image/serverpage/image-id/87523i01D9C21BFB6308E7/image-size/large?v=v2&amp;amp;px=999" title="Screen Shot 2019-08-15 at 4.10.44 PM.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What might cause the above erratic behavior on the&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Where should the SCK frequency/baud rate be set?&amp;nbsp; I assumed it's by updating flexspiRootClk as per:&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;flexspi_device_config_t &lt;SPAN class=""&gt;deviceconfig = {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .&lt;SPAN class=""&gt;flexspiRootClk&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 104000000, &lt;SPAN class=""&gt;//133000000,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .flashSize&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = FLASH_SIZE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .CSIntervalUnit &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; =&lt;/SPAN&gt; kFLEXSPI_CsIntervalUnit1SckCycle&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .CSInterval &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .CSHoldTime &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .CSSetupTime&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .dataValidTime&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .columnspace&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .enableWordAddress&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .AWRSeqIndex&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .AWRSeqNumber &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .ARDSeqIndex&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = NAND_CMD_LUT_SEQ_IDX_READ_FROM_CACHE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .ARDSeqNumber &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; = 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .AHBWriteWaitUnit &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; =&lt;/SPAN&gt; kFLEXSPI_AhbWriteWaitUnit2AhbCycle&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt; .AHBWriteWaitInterval = 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="font-size: 12px;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931269#M139668</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2020-11-02T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931270#M139669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="345772" data-username="variable_andrew" href="https://community.nxp.com/people/variable_andrew" rel="noopener noreferrer" target="_blank"&gt;variable_andrew&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Answer your several questions:&lt;/P&gt;&lt;P&gt;1. should I replace 0xC0 with the # of bits expected for the transfer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Answer:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;[4 * NAND_CMD_LUT_SEQ_IDX_READSTATUS] = FLEXSPI_LUT_SEQ(&lt;SPAN class=""&gt;kFLEXSPI_Command_SDR&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0x0F, &lt;SPAN class=""&gt;kFLEXSPI_Command_SDR&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0xC0),&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You can find the 0XC0 commander is still &lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;kFLEXSPI_Command_SDR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kFLEXSPI_Command_SDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x01U, /*!&amp;lt; Transmit Command code to Flash, using SDR mode. */&lt;/P&gt;&lt;P&gt;it means the 0XC0 is the send out commander data, you can consider it as the send out data is 0XC0, from the readstatus :&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_31.png"&gt;&lt;IMG alt="pastedImage_31.png" src="https://community.nxp.com/t5/image/serverpage/image-id/88622i1E8900AE04F1BAF1/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_31.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Actually, you can know the 1 byte address is 0XC0, but I think you can modify the data to your own real address.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. is the 0x01 on the READ_SDR supplosed to be 0x08 for bits? or are read arguments in bytes, while addresses are in bits?&lt;/P&gt;&lt;P&gt;Answer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kFLEXSPI_Command_READ_SDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x09U, /*!&amp;lt; Receive Read Data from Flash, using SDR mode. */&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 11px;"&gt;[4 * NAND_CMD_LUT_SEQ_IDX_READSTATUS + 1] = FLEXSPI_LUT_SEQ(&lt;SPAN class=""&gt;kFLEXSPI_Command_READ_SDR&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0x01, &lt;SPAN class=""&gt;kFLEXSPI_Command_STOP&lt;/SPAN&gt;, &lt;SPAN class=""&gt;kFLEXSPI_1PAD&lt;/SPAN&gt;, 0),&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Check the RT Flexspi RM:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/88824i774BEC2BF493EB15/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So, the 0X01 is no meaning, the OPEARAND content for READ_SDR can be any value. Becuase the read back size is defined by the datasize in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. About&amp;nbsp; your &lt;SPAN style="font-size: 11px;"&gt;flexspi_nand_wait_bus_busy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't know why you need to modify it, and add the address, I think you don't need to add the address, because the address you already defined in the LUT.&lt;/P&gt;&lt;P&gt;4. About your wave is not correct&lt;/P&gt;&lt;P&gt;Please check your tool sample rate, as I know the FlexSPI clock is very quick, in the practical usage, the tool need to be 5-10 times than the wave which it wants to sample. I don't think your wave is acquired correctly, maybe caused by the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have questions about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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&gt;&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, 02 Nov 2020 14:24:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931270#M139669</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-11-02T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931271#M139670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌ , thanks for the thorough response!&lt;/P&gt;&lt;P&gt;Wanted to ping you about the last point - is the way I'm setting the frequency for the clock correct above?&lt;/P&gt;&lt;P&gt;If my tool maxes out at 100MS/s - maybe I can slow the SPI clock down to 20MHz to do basic testing before speeding back up...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 14:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931271#M139670</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-19T14:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931272#M139671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou" rel="nofollow noopener noreferrer" target="_blank"&gt;kerryzhou&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to access the FLASH status registers and successfully erase flash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hadn't updated the flexspi_config_t rxSampleClock according to our board design, so with that fixed&amp;nbsp;I'm able to communicate and get status, device/mfr ID, erase - &lt;STRONG&gt;but&lt;/STRONG&gt; I get an exception (hard fault) when running:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;memcpy(s_nand_read_buffer, (&lt;SPAN class=""&gt;void&lt;/SPAN&gt; *)(flashBaseAddress), &lt;SPAN class=""&gt;sizeof&lt;/SPAN&gt;(s_nand_read_buffer));&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;(Where &lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;flashBaseAddress&lt;/SPAN&gt; = 0x60000000 and the &lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;s_nand_read_buffer&lt;/SPAN&gt; size is &lt;/SPAN&gt;&lt;/SPAN&gt;0x1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume this could either be caused by incorrect memory setup (in board.c) or incorrect read commands in the LUT?&lt;/P&gt;&lt;P&gt;My code is running from SRAM_OC:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 11px;"&gt;Memory region &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Used Size&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Region Size&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;%age Used&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;BOARD_FLASH:&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0 GB&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;16 MB&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00%&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SRAM_OC: &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;38308 B&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;64 KB &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;58.45%&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SRAM_DTC:&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0 GB&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;32 KB&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.00%&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SRAM_ITC:&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;3568 B&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;32 KB &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;10.89%&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Without XIP, so&amp;nbsp;BOARD_ConfigMPU runs this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;/* Setting Memory with Device type, not &lt;SPAN class=""&gt;shareable&lt;/SPAN&gt;, non-&lt;SPAN class=""&gt;cacheable&lt;/SPAN&gt;. */&lt;/SPAN&gt;
&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MPU-&amp;gt;&lt;SPAN class=""&gt;RBAR&lt;/SPAN&gt; = ARM_MPU_RBAR(2, 0x60000000U);&lt;/SPAN&gt;
&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MPU-&amp;gt;&lt;SPAN class=""&gt;RASR&lt;/SPAN&gt; = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 2, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_16MB);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I believe the&amp;nbsp;Toshiba part requires a read cell array and then read from cache command sets to read data, how can I ensure the RT chip does this in&amp;nbsp;the right order - maybe that's what's causing the hard fault?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 16:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931272#M139671</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-19T16:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931273#M139672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Sorry about the extra replies - but it looks like I have read and write working after fixing an index in my LUT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me understand why fixing the LUT index fixed r/w to FLASH (ie - how does the CPU know which index to use for read vs write when I didn't explicitly supply a mapping of indeces to commands to the CPU)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only place where&amp;nbsp;LUT indeces were mentioned was in the boot section of the RT1015 RM, I didn't see it in the FlexSPI main chapter for normal operation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 17:28:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931273#M139672</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-19T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931274#M139673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="345772" data-username="variable_andrew" href="https://community.nxp.com/people/variable_andrew"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;variable_andrew&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your updated information, and let me know you make it works on your side now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could you tell me your LUT index which you have modified and make it works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then I will help you to check the details. About the LUT information, you also can find it in the FlexSPI module chapter in the RM, there also have the detail description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&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="padding: 0px; min-height: 8pt;"&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>Tue, 20 Aug 2019 03:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931274#M139673</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-20T03:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931275#M139674</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/kerryzhou" rel="noopener noreferrer" target="_blank"&gt;kerryzhou&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found the explanation I'm looking for&amp;nbsp;on how the FlexSPI knows which LUT index to use in order to do reads and writes: this should be set in FLASH Control Register 2:&lt;/P&gt;&lt;PRE style="padding: 0px;"&gt;FLSHCR2&lt;SPAN class=""&gt;[port]&lt;/SPAN&gt;[AWRSEQNUM]&amp;nbsp;
FLSHCR2&lt;SPAN class=""&gt;[port]&lt;/SPAN&gt;[AWRSEQID]&amp;nbsp;&lt;/PRE&gt;&lt;P class=""&gt;and&lt;/P&gt;&lt;PRE style="padding: 0px;"&gt;&lt;SPAN&gt;FLSHCR2&lt;/SPAN&gt;&lt;SPAN class=""&gt;[port]&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;ARDSEQNUM&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;
&lt;SPAN&gt;FLSHCR2&lt;/SPAN&gt;&lt;SPAN class=""&gt;[port]&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;ARDSEQID&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;Where&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;ARDSEQID is the index of the LUT, and...&lt;/P&gt;&lt;P class=""&gt;ARDSEQNUM is.... the (total count - 1) of sequences to run starting at the index number?&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I don't understand how the FlexSPI knows to load different pages for read and write tho?&lt;/P&gt;&lt;P class=""&gt;In order for the FLASH to load a page before doing a buffer read, shouldn't the&amp;nbsp;&amp;nbsp;READ_CACHE_INDEX == READ_PAGE_INDEX + 1?&lt;/P&gt;&lt;P class=""&gt;Then you can have the ARDSEQID = READ_CACHE_INDEX and ARDSEQNUM = 1&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;The below is what my current (somewhat working - for FLASH page 0 at least) LUT looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2019-08-20 at 10.04.00 AM.png"&gt;&lt;IMG alt="Screen Shot 2019-08-20 at 10.04.00 AM.png" src="https://community.nxp.com/t5/image/serverpage/image-id/88831i205642B704A7442F/image-size/large?v=v2&amp;amp;px=999" title="Screen Shot 2019-08-20 at 10.04.00 AM.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;The LUT indexes are in order - so read from cache is 4*0, read status is 4*1, write enable is 4*2, etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;With the above, instead of&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 11px;"&gt;flexspi_device_config_t&lt;SPAN class=""&gt; deviceconfig = {&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.flexspiRootClk &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 104000000, &lt;SPAN class=""&gt;//133000000,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.flashSize&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= FLASH_SIZE,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.CSIntervalUnit &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= &lt;/SPAN&gt;kFLEXSPI_CsIntervalUnit1SckCycle&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.CSInterval &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 2,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.CSHoldTime &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 3,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.CSSetupTime&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 3,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.dataValidTime&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 0,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.columnspace&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 0,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.enableWordAddress&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 0,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.AWRSeqIndex&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 0,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.AWRSeqNumber &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 0,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.ARDSeqIndex&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= NAND_CMD_LUT_SEQ_IDX_READ_FROM_CACHE,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.ARDSeqNumber &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= 1,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.AHBWriteWaitUnit &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;= &lt;/SPAN&gt;kFLEXSPI_AhbWriteWaitUnit2AhbCycle&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.AHBWriteWaitInterval = 0,&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;};&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Shouldn't I have AWRSeqIndex start at&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 11px;"&gt;NAND_CMD_LUT_SEQ_IDX_WRITEENABLE&lt;/SPAN&gt;&lt;SPAN&gt;, and then it needs to do&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN style="font-size: 11px;"&gt;NAND_CMD_LUT_SEQ_IDX_PROGRAMLOAD&lt;/SPAN&gt; and then&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN style="font-size: 11px;"&gt;NAND_CMD_LUT_SEQ_IDX_PROGRAM_EXECUTE&lt;/SPAN&gt; somehow???&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;If so,&amp;nbsp;then I should re-order my LUT from&amp;nbsp;the&amp;nbsp;above to:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Read Page (into cache)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Read Status&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Read from Cache&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Write Enable&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Page Program Load&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Read status (again??)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Page Program Execute&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931275#M139674</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2020-11-02T14:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931276#M139675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to get a bit more info on the ARDSeqIndex/ ARDSeqNumber from this NXP appnote:&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/nxp/application-notes/AN12239.pdf" title="https://www.nxp.com/docs/en/nxp/application-notes/AN12239.pdf"&gt;https://www.nxp.com/docs/en/nxp/application-notes/AN12239.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it actually confused me further. If you look at the code for AN12239 - it has the following LUT / seq indexes / numbers:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2019-08-21 at 8.20.54 PM.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88848i7BBC4DF612F969D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-08-21 at 8.20.54 PM.png" alt="Screen Shot 2019-08-21 at 8.20.54 PM.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the sequence number is set to 1 for both read and write, then wouldn't&amp;nbsp;a AHB read access end up running 2 sequences (in order)?&amp;nbsp; If so - in this case it would be running the read data sequence, followed by running the write data sequence above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sequence number really means "number of instructions" instead of "number of sequences", then AN12239 still seems off as both the read and write sequences appear to need 6 instructions each, not 2.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 03:26:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931276#M139675</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-22T03:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931277#M139676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="345772" data-username="variable_andrew" href="https://community.nxp.com/people/variable_andrew"&gt;variable_andrew&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sorry for my later reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1.ARDSEQID and ARDSEQNUM&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find the related information from the RM register, and the SDK sample code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_219.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89045i729386C8CAC26CF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_219.png" alt="pastedImage_219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_220.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89080i51C4707EA8B54582/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_220.png" alt="pastedImage_220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ARDSEQID is AHB reading the LUT sequence ID, it is the sequence index for AHB write trigged command.&lt;/P&gt;&lt;P&gt;ARDSEQNUM, it configues the sequence number.&lt;/P&gt;&lt;P&gt;2. I don't understand how the FlexSPI knows to load different pages for read and write tho?&lt;/P&gt;&lt;P&gt;About the difference page, actually when you want to read and write, you will write the related address, I think that will defined the related pages, you can check the flexSPI write API function, about the read, you don't need to use the API code, you can just read the related map address for the FlexSPI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_221.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89129iD02BB91D30E0D30B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_221.png" alt="pastedImage_221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;3.In order for the FLASH to load a page before doing a buffer read, shouldn't the&amp;nbsp;&amp;nbsp;READ_CACHE_INDEX == READ_PAGE_INDEX + 1?&lt;/P&gt;&lt;P class=""&gt;Then you can have the ARDSEQID = READ_CACHE_INDEX and ARDSEQNUM = 1&lt;/P&gt;&lt;P class=""&gt;Answer: I am not very clear about this question, as I know, the read just need to read the related the address, you don't need to run the other API, after you already set the correct LUT table, and the related index sequence.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;4. About your LUT table,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp; Could you also share some Index number, just like the SDK code in the app.h&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_222.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89130i54DF288E9671D0EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_222.png" alt="pastedImage_222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;5.&amp;nbsp; It's better to share your newest code, I am not sure your code in the case is the newest one or not.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Best Regards,&lt;/P&gt;&lt;P class=""&gt;kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 09:34:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931277#M139676</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-23T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931278#M139677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will check more details about the AN12239 code, and give you reply later, please keep patient, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 09:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931278#M139677</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-23T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931279#M139678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌ - looking forward to your insight on AN12239!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 13:41:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931279#M139678</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-23T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931280#M139679</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/kerryzhou" rel="nofollow noopener noreferrer" target="_blank"&gt;kerryzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Thanks as always - I've&amp;nbsp;responded directly via the support channel - but for posterity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ARDSEQNUM, it configues the sequence number&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Still not sure I follow this - from various sources it appears this was supposed to indicate the total # of sequences +1 the AHB would run starting from&amp;nbsp;&lt;SPAN&gt;ARDSEQID, but as noted below - and in all example code - this doesn't seem to be the case in practice....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;about the read, you don't need to use the API code, you can just read the related map address for the FlexSPI&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;As noted in email - we&amp;nbsp;set the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ARDSEQID to the AHB so it knows how to read from the current page/buffer, but we don't provide anything to indicate the LUT index for loading page.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;So if I read from address 0x6000_0000 + PAGE_SIZE, how will the AHB know to change pages on the external HW?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;3. same question as #2 -&amp;nbsp;was asking how we force the AHB to set current page in flash.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;4. LUT indexes for the Toshiba commands&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_READ_FROM_CACHE 0&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_READSTATUS 1&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_WRITEENABLE 2&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_BLOCKERASE 3&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_PROGRAMLOAD 4
&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_READ_PAGE 5&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_READ_ECC_STATUS 6&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_PROGRAM_EXECUTE 7&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_READ_FROM_CACHE_ODD 8&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_PROGRAM_LOAD_ODD 9&lt;/SPAN&gt;
&lt;SPAN style="font-size: 11px;"&gt;&lt;SPAN class=""&gt;#define&lt;/SPAN&gt; NAND_CMD_LUT_SEQ_IDX_READID 10&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;5.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;zipped and sent directly&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Thanks!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931280#M139679</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-23T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931281#M139680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi variable_andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Today, I checked the AN12239SW, the LUT sequence is:&lt;/P&gt;&lt;P&gt;#define HYPERRAM_CMD_LUT_SEQ_IDX_READDATA 0&lt;BR /&gt;#define HYPERRAM_CMD_LUT_SEQ_IDX_WRITEDATA 1&lt;BR /&gt;#define HYPERRAM_CMD_LUT_SEQ_IDX_READREG 2&lt;BR /&gt;#define HYPERRAM_CMD_LUT_SEQ_IDX_WRITEREG 3&lt;/P&gt;&lt;P&gt;&amp;nbsp; But your question is: "If the sequence number is set to 1 for both read and write"&lt;/P&gt;&lt;P&gt;Could you give me more details about it, why you set the sequence number to 1 for both read and write? Or I am checking the wrong area? Could you tell me where you find the sequence number is set to 1 for both read and write?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91227i6DCC8B8A9F432CE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you mean the above SeqNumber in the read and write API?&lt;/P&gt;&lt;P&gt;I think I am still not very clear about your question about AN12239SW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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&gt;&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>Tue, 27 Aug 2019 07:16:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931281#M139680</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-27T07:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931282#M139681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi variable_andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think I am a little understand your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You want to know the SeqNumber detail meaning, actually, it is just the Sequence number, one sequence include 8 instructions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80489iAE532F1CD6B79484/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think you can check this code, it will be more useful to your understanding:&lt;/P&gt;&lt;P&gt;SDK_2.6.1_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\hyper_flash\polling_transfer&lt;/P&gt;&lt;P&gt;Because you can find the customLUT has different numbers for each operation, read data just 4 instruction, 2 LUT item.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77218i557E0DB85DFA4B67/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79982iDE0CA8E5FD969CA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read status contains 7 LUT numbers, actually, 7*2 =14 instruction.&lt;/P&gt;&lt;P&gt;each CMD_LUT_SEQ contains 4 LUT items, 8 instructions, 1 sequence.&lt;/P&gt;&lt;P&gt;As you know, each LUT items contains 2 sequence:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80035i4EF5BBD9DDD4393C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, please note, the SeqNumber is determined by your flash operation sequence number.&lt;/P&gt;&lt;P&gt;Just take the hyper flash as an example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80797iE384E48EB6400F1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you know, why this seqNumber is 2?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80213iEFA40BE1C76F6ED5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can find this program page flash operation is larger than 1 sequence, it needs to use 2 sequence, so it is 2.&lt;/P&gt;&lt;P&gt;Take another example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73967iA020DAE106CCFD37/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Why the erase&amp;nbsp; seqNumber is 4?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80522i3317E302F133E5DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, now, if talk back to the HyperRam code, do you understanding why the sequence is 1 for both the read and write?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80343i9CECA4A4A22683BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80609i26339BF125754BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;because the related LUT table just used one sequence for each flash operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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&gt;&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>Tue, 27 Aug 2019 08:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931282#M139681</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-27T08:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931283#M139682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the clarification &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing that was tripping me up before is in the Ref Manual description of Sequence Number, the explicit &lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG&gt;+1&lt;/STRONG&gt;&lt;/SPAN&gt; ; indicating you were supposed to set the sequence &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;EM&gt;count - 1&lt;/EM&gt;&lt;/SPAN&gt; to that register. It looks like the &lt;SPAN style="font-size: 22px;"&gt;&lt;STRONG&gt;+1&lt;/STRONG&gt;&lt;/SPAN&gt; should be removed from the&amp;nbsp;reference manual text based on what I'm understanding from your post above?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 22:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931283#M139682</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-27T22:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931284#M139683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="345772" data-username="variable_andrew" href="https://community.nxp.com/people/variable_andrew"&gt;variable_andrew&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; No, I DON'T think the reference manual is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Just take the register description is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please note these points:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82069iBBB9146265BC88A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82126i2CFC1C46F330900E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Please note, ARDSEQNUM is the register data, the real sequence number is ARDSEQNUM+1. &lt;/P&gt;&lt;P&gt;&amp;nbsp;flashXfer.SeqNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4;&lt;/P&gt;&lt;P&gt;This SeqNumber&amp;nbsp; data is the real sequence number, that's why in the code, when configure the register, it need to -1.&lt;/P&gt;&lt;P&gt;Because Sequence number =&amp;nbsp; FLSHCR2[ARDSEQNUM] +1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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>Wed, 28 Aug 2019 05:56:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931284#M139683</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-28T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931285#M139684</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/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping me understand the Seq Number - and yes, the confusion I had was because I didn't realize the driver had the -1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marked the answer you put to the orig question as correct and done on this thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 13:51:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931285#M139684</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2019-08-28T13:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI - SCK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931286#M139685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="345772" data-username="variable_andrew" href="https://community.nxp.com/people/variable_andrew"&gt;variable_andrew&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; That's very good to hear you understand it now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So, do you still have any question about your case:00227305?&lt;/P&gt;&lt;P&gt;&amp;nbsp; If your question is solved, please tell me to close that case, and help me to fill the feedback as resolved in the case, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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&gt;&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>Thu, 29 Aug 2019 02:42:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-SCK/m-p/931286#M139685</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-29T02:42:22Z</dc:date>
    </item>
  </channel>
</rss>

