<?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: RT1060 - Hyperflash Write example in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1296316#M14841</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Hyper-flash is Word Addressable, which is accessed in terms of 16-bit. FlexSPI does not transmit Flash address bit 0 to the Flash. Thus, multiplying the deviceAddress by 2 makes sure FlexSPI transmits the right address value.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Victor&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 17:54:03 GMT</pubDate>
    <dc:creator>victorjimenez</dc:creator>
    <dc:date>2021-06-22T17:54:03Z</dc:date>
    <item>
      <title>RT1060 - Hyperflash Write example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1294682#M14786</link>
      <description>&lt;P&gt;I'm having issues using the&amp;nbsp;&lt;SPAN&gt;flexspi_nor_hyperbus_write() in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hyper_flash_polling_transfer example for the RT1060EVK. I have modified by hardware to use hyperflash and my application is running from RAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Inside&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;flexspi_nor_hyperbus_write function, the address is multiplied by 2. What is the reason for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;status_t flexspi_nor_hyperbus_write(uint32_t addr, uint32_t *buffer, uint32_t bytes)
{
    flexspi_transfer_t flashXfer;
    status_t status;

    flashXfer.deviceAddress = addr * 2;
    flashXfer.port          = kFLEXSPI_PortA1;
    flashXfer.cmdType       = kFLEXSPI_Write;
    flashXfer.SeqNumber     = 1;
    flashXfer.seqIndex      = HYPERFLASH_CMD_LUT_SEQ_IDX_WRITEDATA;
    flashXfer.data          = buffer;
    flashXfer.dataSize      = bytes;
    status                  = FLEXSPI_TransferBlocking(FLEXSPI, &amp;amp;flashXfer);

    if (status != kStatus_Success)
    {
        return status;
    }

    return status;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the addr*2, it writes to the intended address but the commands no longer work.&lt;/P&gt;&lt;P&gt;For example, if I want to write to the address 0x20000, how should I be using the&amp;nbsp;&lt;SPAN&gt;flexspi_nor_hyperbus_write function? This is how I would have intended to use it? Is there something else required?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uint8_t data[8] = "abcdefgh";
flexspi_nor_hyperbus_write(0x20000, (uint32_t*)(data), sizeof(data));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In conclusion, what is the reason for this and why do I need it?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 11:54:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1294682#M14786</guid>
      <dc:creator>pauricacre</dc:creator>
      <dc:date>2021-06-18T11:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: RT1060 - Hyperflash Write example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1296316#M14841</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Hyper-flash is Word Addressable, which is accessed in terms of 16-bit. FlexSPI does not transmit Flash address bit 0 to the Flash. Thus, multiplying the deviceAddress by 2 makes sure FlexSPI transmits the right address value.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Victor&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:54:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1296316#M14841</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2021-06-22T17:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: RT1060 - Hyperflash Write example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1296986#M14880</link>
      <description>&lt;P&gt;Is the function&amp;nbsp;flexspi_nor_hyperbus_write() for commands only or can it be used for writing data to the chip?&lt;/P&gt;&lt;P&gt;Should flexspi_nor_flash_page_program() only be used for writing data to the flash chip?&lt;/P&gt;&lt;P&gt;Sorry this is no information on the function headers so its not clear what their purpose is.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 14:46:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1296986#M14880</guid>
      <dc:creator>pauricacre</dc:creator>
      <dc:date>2021-06-23T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: RT1060 - Hyperflash Write example</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1297889#M14909</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that the RT1060 doesn't have an internal flash.&amp;nbsp;The memory you are writing to when calling this function is external. That being said, the intended use of functions&amp;nbsp;&lt;SPAN&gt;flexspi_nor_hyperbus_write and&amp;nbsp;flexspi_nor_flash_page_program is to write to this external flash.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Victor&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 17:34:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1060-Hyperflash-Write-example/m-p/1297889#M14909</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2021-06-24T17:34:25Z</dc:date>
    </item>
  </channel>
</rss>

