<?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のトピックFlexSPI AHB Write Questions</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063112#M8503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get the FlexSPI to be handled via hardware/AHB on my i.MX RT 1064. I'm using IS25LP064A - same as on the eval board. I'm trying to use it simply as external flash. I don't think this can be done completely in hardware because the chip needs a separate command to enable writing to the part followed by deasserting the CS pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess my first question is, is this possible? Can I deassert and reassert the CS pin in the same LUT sequence?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My second question is how do manage the amount of data transmitted in 1 write operation? When reading through the manual, it looks like it may be dependent on AHB Burst. Is that correct? How can I configure the AHB Burst size and type? With the default config defined in the SDK, it looks like sometimes 16 bytes are transmitted and sometimes 32 bytes are transmitted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I'd like to be able to write a max of 256 bytes but less if less is requested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay I've figured more out. I had to increase the SEQNUM to get the next sequence to execute. The SDK variable name is confusing since it mimics the register name in the RM. But the register value is the number of sequences you want to run -1 while the variable seems to be the actual number of sequences you want to run. Got that part sorted out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question about the AHB buffer/burst still stands. How can I control the size of the write? Using IP commands I can make it be 256 bytes but using AHB I can't seem to control it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2020 20:52:32 GMT</pubDate>
    <dc:creator>barrett_lowe</dc:creator>
    <dc:date>2020-08-04T20:52:32Z</dc:date>
    <item>
      <title>FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063112#M8503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get the FlexSPI to be handled via hardware/AHB on my i.MX RT 1064. I'm using IS25LP064A - same as on the eval board. I'm trying to use it simply as external flash. I don't think this can be done completely in hardware because the chip needs a separate command to enable writing to the part followed by deasserting the CS pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess my first question is, is this possible? Can I deassert and reassert the CS pin in the same LUT sequence?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My second question is how do manage the amount of data transmitted in 1 write operation? When reading through the manual, it looks like it may be dependent on AHB Burst. Is that correct? How can I configure the AHB Burst size and type? With the default config defined in the SDK, it looks like sometimes 16 bytes are transmitted and sometimes 32 bytes are transmitted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I'd like to be able to write a max of 256 bytes but less if less is requested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay I've figured more out. I had to increase the SEQNUM to get the next sequence to execute. The SDK variable name is confusing since it mimics the register name in the RM. But the register value is the number of sequences you want to run -1 while the variable seems to be the actual number of sequences you want to run. Got that part sorted out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question about the AHB buffer/burst still stands. How can I control the size of the write? Using IP commands I can make it be 256 bytes but using AHB I can't seem to control it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 20:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063112#M8503</guid>
      <dc:creator>barrett_lowe</dc:creator>
      <dc:date>2020-08-04T20:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063113#M8504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Barrett,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure that I understood your question correctly, so please correct me if I'm wrong. In the SDK you will find an example project named&amp;nbsp;&lt;EM&gt;flexspi_nor_polling_transfer&lt;/EM&gt;. This example project demonstrates how to achieve what you are trying to do. The example uses the function&amp;nbsp;&lt;EM&gt;flexspi_nor_flash_page_program&lt;/EM&gt; to write to the flash, however, within the drivers you will find a function called&amp;nbsp;&lt;EM&gt;flexspi_nor_flash_program &lt;/EM&gt;in which you can pass as an argument the length of what you are trying to write.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 16:24:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063113#M8504</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-08-06T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063114#M8505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually no. That demo app writes to flash using IP commands. I am talking about AHB commands. It looks like I can save quite a few clock cycles if I use AHB instead. The example does show reading values via AHB commands but that's NOT what I'm having problems with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to be able to write to the flash using the address mapping for the FlexSPI peripheral. This way, the hardware will take care of creating my SPI output signals. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If src is an array [0x0, 0x1, 0x2, 0x3, 0x4] and size is 5, when I run the below code&lt;/P&gt;&lt;DIV style="color: #f5f2f8; background-color: #261b2c; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;memcpy&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(FlexSPI_AMBA_BASE&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;src&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;size&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I would expect this see this on my osciloscope: (Write Request), (address,data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOSI:&amp;nbsp;&amp;nbsp; &amp;lt;0x06&amp;gt; &amp;lt;0x00,0x00,0x00&amp;gt; &amp;lt;0x0, 0x1, 0x2, 0x3, 0x4&amp;gt;&lt;/P&gt;&lt;P&gt;CS&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp; -_____-_____________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I do not get any data out until I try to write 256 bytes. Even when I do that, the behavior is very strange. The first 160 bytes are read in multiple transactions and then address 0xA0-0xFF is written in multiple transactions. This is particularly unexpected behavior. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I've made more progress. After setting up my LUT to expect a 16 bit row address and 8 bit column address as well as specifying in the config that I'm using a 8 bit width column address, I'm getting more expected results out on the oscilloscope. However, the data is still only being written in 32 byte chunks. Any idea why this is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 17:53:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063114#M8505</guid>
      <dc:creator>barrett_lowe</dc:creator>
      <dc:date>2020-08-06T17:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063115#M8506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you had a chance to look into my question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, am I missing a demo project in the SDK for writing via AHB commands? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 21:25:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063115#M8506</guid>
      <dc:creator>barrett_lowe</dc:creator>
      <dc:date>2020-08-10T21:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063116#M8507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Barrett,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for clarifying the information! So, just to clarify, if you call the function &lt;EM&gt;memcpy(FlexSPI_AMBA_BASE, src, size);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And the size is lezz than 32 bytes, you don't see anything on the oscilloscope and hence the data is not written into the memory, but if the size is 32 bytes then you are able to see the signals in the oscilloscope and the writing does occur, correct? Could you please share with me the project that you used to make these tests?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the demo project for writing via AHB commands, unfortunately, we don't have a demo project that fits these needs. The only example that we have that shows how to write to the external memory is the one I mentioned before but as you mentioned it uses IP commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 01:27:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063116#M8507</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-08-11T01:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063117#M8508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry - let me try to be more clear. If I try sending 32 bytes of data using&lt;/P&gt;&lt;DIV style="color: #f5f2f8; background-color: #261b2c; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;DIV&gt;&lt;DIV style="color: #f5f2f8; background-color: #261b2c; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;std::&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;vector&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-style: italic;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;nor_program_buffer&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;32&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;0x&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;A5&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;memcpy&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-style: italic;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)(&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;FlexSPI_AMBA_BASE&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;nor_program_buffer.data()&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;, nor_program_buffer.size());&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;On the oscilloscope, I see a read command sequence (not a write sequence) reading the first 32 bytes and that is all. The data never actually makes it into the chip. I never see a write command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write 256 bytes, I get something very different.&lt;/P&gt;&lt;P&gt;Writing 256 bytes yields 5 read command sequences each reading 32 bytes of data at addresses 0x00, 0x20, 0x40, 0x60, 0x80. After those signals, I finally see a write command sequence writing 32 bytes at address 0xA0. In this case, some of my data still did not make it to the chip...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if I can send my whole project but maybe I can send you my config. Let me know if you need more information. I can try and create an entire separate project if needed. Thanks!&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #f5f2f8; background-color: #261b2c; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #0aacc5; font-style: italic;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flexspi_config_t&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;config&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;auto&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;AHBFreq&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;CLOCK_GetAhbFreq&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;auto&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbCycleNs&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1.0&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;AHBFreq&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbCycleNs&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;*=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1.0&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;e&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;9&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;auto&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;totCycles&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;800000&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbCycleNs&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;auto&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbWriteInterval&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;totCycles&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;512&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;WARNING:&amp;nbsp;somehow&amp;nbsp;the&amp;nbsp;theory&amp;nbsp;on&amp;nbsp;this&amp;nbsp;doesn't&amp;nbsp;work&amp;nbsp;out&amp;nbsp;and&amp;nbsp;we&amp;nbsp;are&amp;nbsp;not&amp;nbsp;sure&amp;nbsp;why.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;Although&amp;nbsp;we&amp;nbsp;divide&amp;nbsp;by&amp;nbsp;512&amp;nbsp;here,&amp;nbsp;it&amp;nbsp;looks&amp;nbsp;like&amp;nbsp;we&amp;nbsp;are&amp;nbsp;actually&amp;nbsp;4&amp;nbsp;times&amp;nbsp;too&amp;nbsp;slow&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;according&amp;nbsp;to&amp;nbsp;the&amp;nbsp;oscilloscope.&amp;nbsp;For&amp;nbsp;this&amp;nbsp;reason,&amp;nbsp;we&amp;nbsp;actually&amp;nbsp;use&amp;nbsp;128&amp;nbsp;below&amp;nbsp;for&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;the&amp;nbsp;AHBWriteWaitUnit.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;#pragma&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #fed888;"&gt;diag_suppress&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #fed888;"&gt;Pe2361&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;//Disable&amp;nbsp;warning&amp;nbsp;about&amp;nbsp;precision&amp;nbsp;loss&amp;nbsp;with&amp;nbsp;the&amp;nbsp;static_casts&amp;nbsp;below&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-style: italic;"&gt;flexspi_device_config_t&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;deviceconfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;.flexspiRootClk&amp;nbsp;=&amp;nbsp;99000000,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.flexspiRootClk&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;18750000&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.flashSize&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;FLASH_SIZE,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.CSIntervalUnit&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;kFLEXSPI_CsIntervalUnit1SckCycle,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.CSInterval&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;static_cast&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;7&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;ahbCycleNs)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.CSHoldTime&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;static_cast&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;ahbCycleNs)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.CSSetupTime&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;static_cast&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;ahbCycleNs)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.dataValidTime&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;static_cast&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;ahbCycleNs)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.columnspace&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;8&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.enableWordAddress&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.AWRSeqIndex&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)(m_quadEnable&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;?&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;WEL_WRITE_QUAD_IDX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;WEL_WRITE_SINGLE_IDX),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.AWRSeqNumber&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.ARDSeqIndex&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)(m_quadEnable&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;?&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;READ_QUAD_IDX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;READ_SINGLE_IDX),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.ARDSeqNumber&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.AHBWriteWaitUnit&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;kFLEXSPI_AhbWriteWaitUnit128AhbCycle,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.AHBWriteWaitInterval&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;static_cast&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(ahbWriteInterval),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;#pragma&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #fed888;"&gt;diag_default&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #fed888;"&gt;Pe2361&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-style: italic;"&gt;FLEXSPI_Type&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ptrs&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;[]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;FLEXSPI_BASE_PTRS&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;auto&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;base&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;const_cast&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-style: italic;"&gt;FLEXSPI_Type&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;*&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ptrs&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;m_flexspiBase&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;#if&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;defined&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;__DCACHE_PRESENT&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;__DCACHE_PRESENT&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;U&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0aacc5; font-weight: bold;"&gt;bool&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;DCacheEnableFlag&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9b5fe0;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*&amp;nbsp;Disable&amp;nbsp;D&amp;nbsp;cache.&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;SCB_CCR_DC_Msk&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;SCB_CCR_DC_Msk&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;SCB&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;CCR&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;SCB_DisableDCache&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;DCacheEnableFlag&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9b5fe0;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;#endif&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;/*&amp;nbsp;__DCACHE_PRESENT&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*Get&amp;nbsp;FLEXSPI&amp;nbsp;default&amp;nbsp;settings&amp;nbsp;and&amp;nbsp;configure&amp;nbsp;the&amp;nbsp;flexspi.&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;FLEXSPI_GetDefaultConfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;config&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;/*Set&amp;nbsp;AHB&amp;nbsp;buffer&amp;nbsp;size&amp;nbsp;for&amp;nbsp;reading&amp;nbsp;data&amp;nbsp;through&amp;nbsp;AHB&amp;nbsp;bus.&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;config&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbConfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;enableAHBPrefetch&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9b5fe0;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;config&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbConfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;enableAHBBufferable&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9b5fe0;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;config&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbConfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;enableReadAddressOpt&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9b5fe0;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;config&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;ahbConfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;enableAHBCachable&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9b5fe0;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;FLEXSPI_Init&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;base&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;config&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*&amp;nbsp;Configure&amp;nbsp;flash&amp;nbsp;settings&amp;nbsp;according&amp;nbsp;to&amp;nbsp;serial&amp;nbsp;flash&amp;nbsp;feature.&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;FLEXSPI_SetFlashConfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;base&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;deviceconfig&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;kFLEXSPI_PortA1&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*&amp;nbsp;Update&amp;nbsp;LUT&amp;nbsp;table.&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;FLEXSPI_UpdateLUT&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;base&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;customLUT&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;CUSTOM_LUT_LENGTH&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*&amp;nbsp;Do&amp;nbsp;software&amp;nbsp;reset.&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;FLEXSPI_SoftwareReset&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;base&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;#if&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;defined&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;__DCACHE_PRESENT&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;__DCACHE_PRESENT&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d8b7fd;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;U&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #cdfcff; font-style: italic;"&gt;DCacheEnableFlag&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*&amp;nbsp;Enable&amp;nbsp;D&amp;nbsp;cache.&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b4df51; font-style: italic;"&gt;SCB_EnableDCache&lt;/SPAN&gt;&lt;SPAN style="color: #f5f2f8;"&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f5f2f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff58ab; font-weight: bold;"&gt;#endif&lt;/SPAN&gt;&lt;SPAN style="color: #8091b3; font-style: italic; font-weight: bold;"&gt;&amp;nbsp;/*&amp;nbsp;__DCACHE_PRESENT&amp;nbsp;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 19:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063117#M8508</guid>
      <dc:creator>barrett_lowe</dc:creator>
      <dc:date>2020-08-11T19:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063118#M8509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Barrett,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late response. I made several tests and I was able to reproduce the behavior that you mentioned. I will check this internally and I will provide you an update as soon as possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 00:24:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063118#M8509</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-08-19T00:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063119#M8510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Barrett,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I confirm with the applications team that you can not use memcpy directly to write NOR flash via FlexSPI, this feature is NOT supported. I apologize for the inconvenience that this might cause you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 15:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063119#M8510</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-08-20T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063120#M8511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting back to me. I am surprised by this answer! The documentation reports that this is possible in multiple locations throughout the FlexSPI section. There are many mentions of the AHB TX buffer and direct memory read/write access. Infact, there is an entire section dedicated to it as well. A few sections from Rev. 1:&lt;/P&gt;&lt;P&gt;Section 27.2.1 (Features)&lt;/P&gt;&lt;P&gt;Section 27.5.8.1 (Instruction execution on SPI interface)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Section 27.5.10.1 (AHB write access to Flash)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As well as various registers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I certainly can work around this but it is documented as an obvious feature. Am I missing something? Are you sure this is not supported? Are there plans to revise the manual? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 20:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063120#M8511</guid>
      <dc:creator>barrett_lowe</dc:creator>
      <dc:date>2020-08-20T20:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI AHB Write Questions</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063121#M8512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi Barrett,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I double-check this directly with the design team and they confirmed that this feature is only supported in RAM memories that complete write commands quickly.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I agree with you that the information in the reference manual&amp;nbsp;is not clear enough to understand that this feature is only supported in RAM memories.&amp;nbsp;They will review this internally to evaluate if some information has to be modified in future releases of the reference manual.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 22:39:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSPI-AHB-Write-Questions/m-p/1063121#M8512</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-08-24T22:39:25Z</dc:date>
    </item>
  </channel>
</rss>

