<?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>MCUXpresso IDEのトピックRe: AN12564 Clarification</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1310043#M7148</link>
    <description>&lt;P&gt;Two follow-up things.&lt;/P&gt;&lt;P&gt;Where can I locate detailed information on the LUT?&amp;nbsp; Specifically, is there an RT1060 or MCUXpresso document that explains the LUT and what is to go intot he LUT?&lt;/P&gt;&lt;P&gt;During my debugging, I noticed that the programmer is detecting 2 flash chips, but I'm not sure if it is locating two chips or simply the first one twice.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;const flexspi_nor_config_t qspiflash_config = {
    .memConfig =
        {
            .tag              = FLEXSPI_CFG_BLK_TAG,
            .version          = FLEXSPI_CFG_BLK_VERSION,
            .readSampleClksrc=kFlexSPIReadSampleClk_LoopbackFromDqsPad,
            .csHoldTime       = 3u,
            .csSetupTime      = 3u,
            // Enable DDR mode, Wordaddassable, Safe configuration, Differential clock
            .sflashPadType = kSerialFlash_4Pads,
            .serialClkFreq = kFlexSpiSerialClk_133MHz,
            .sflashA1Size  = 8u * 1024u * 1024u,
            .sflashA2Size  = 8u * 1024u * 1024u,
            .lookupTable =
                {
                    // Read LUTs
                    FLEXSPI_LUT_SEQ(CMD_SDR, FLEXSPI_1PAD, 0xEB, RADDR_SDR, FLEXSPI_4PAD, 0x18),
                    FLEXSPI_LUT_SEQ(DUMMY_SDR, FLEXSPI_4PAD, 0x06, READ_SDR, FLEXSPI_4PAD, 0x04),
                },
        },
    .pageSize           = 256u,
    .sectorSize         = 4u * 1024u,
    .blockSize          = 256u * 1024u,
    .isUniformBlockSize = false,
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1060_SFDP_QSPI.cfx
Image 'iMXRT1060_SFDP_QSPI Mar 22 2021 08:15:58'
Opening flash driver MIMXRT1060_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (8MB = 128*64K at 0x60000000)
Closing flash driver MIMXRT1060_SFDP_QSPI.cfx
Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1060_SFDP_QSPI.cfx
Image 'iMXRT1060_SFDP_QSPI Mar 22 2021 08:15:58'
Opening flash driver MIMXRT1060_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (8MB = 128*64K at 0x60000000)
Closing flash driver MIMXRT1060_SFDP_QSPI.cfx
Connected: was_reset=false. was_stopped=true
Awaiting telnet connection to port 3330 ...
GDB nonstop mode enabled
Opening flash driver MIMXRT1060_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (8MB = 128*64K at 0x60000000)
Writing 62988 bytes to address 0x60000000 in Flash
Sectors written: 0, unchanged: 1, total: 1
Erased/Wrote sector  0-0 with 62988 bytes in 14msec
Closing flash driver MIMXRT1060_SFDP_QSPI.cfx
Flash Write Done
Flash Program Summary: 62988 bytes in 0.01 seconds (4393.69 KB/sec)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chadgraham_0-1626724306362.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/150249iF1EDB36A8E1353F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chadgraham_0-1626724306362.png" alt="chadgraham_0-1626724306362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 19:54:22 GMT</pubDate>
    <dc:creator>chadgraham</dc:creator>
    <dc:date>2021-07-19T19:54:22Z</dc:date>
    <item>
      <title>AN12564 Clarification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1309260#M7137</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having some issues adding a second QSPI device per the AN12564 app note and I'm hoping that someone can point me in the correct location.&lt;/P&gt;&lt;P&gt;I am working with the RT1060 dev board and I have attached a second identical QSPI device such that it is on the same bus as the existing QSPI device and the CS is connected to [P2] GPIO_SD_B1_04.&amp;nbsp; I currently have a basic program running as XIP and have configured the GPIO as part of the FlexSPI setup using the pin config tool.&lt;/P&gt;&lt;P&gt;Per AN12564, I have successfully added the .sflashA2Size property to the&amp;nbsp;qspiflash_config structure, but I am stuck on what the next step should be.&lt;/P&gt;&lt;P&gt;According to the app note:&lt;/P&gt;&lt;P&gt;"ROM can configure FlexSPI to enable A1 and A2 according to the flash config block saved in QSPI flash(A1)"&lt;/P&gt;&lt;P&gt;What is this actually instructing me to do?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 19:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1309260#M7137</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2021-07-16T19:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: AN12564 Clarification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1309604#M7144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/101064"&gt;@chadgraham&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Besides AN12564, there is an example named&amp;nbsp;AN12564sw. Please download this package, you will see the whole workflow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1309604#M7144</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-07-19T06:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: AN12564 Clarification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1309969#M7145</link>
      <description>&lt;P&gt;Hello Jingpan,&lt;/P&gt;&lt;P&gt;I have spent quite a bit of time in the AN12564 software, but it isn't very helpful.&amp;nbsp; The software does not contain a project that I import and walk through.&amp;nbsp; (I spend over an hour trying to modify iblinky to be the RWW, but the includes, assumptions and even multiple mains() makes this a very difficult process.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Would it be possible for you to generate a sample application that shows a second QSPI working?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Additionally, I need the application to operate as XIP, but AN12564 appears to only use the memory devices as user storage, not functioning/executing code.&amp;nbsp; I fear that the app note isn't ideally suited for this type of application.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there another app not that covers multiple QSPI XIP devices?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Finally, the part that I'm stuck on in AN12564 is the flash configuration and an updated LUT.&amp;nbsp; It seems like the LUT and general configuration should be fine since I am using the same QSPI device that is shipped on the dev board, but that I need to somehow inform the controller that it is bigger and has a second chip select.&amp;nbsp; (I think I'm close since the memory range is now reporting 00000000, but I'm unable to access or write to the memory location.)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there an app note or demo app that shows me how to update the controller?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 15:57:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1309969#M7145</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2021-07-19T15:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: AN12564 Clarification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1310043#M7148</link>
      <description>&lt;P&gt;Two follow-up things.&lt;/P&gt;&lt;P&gt;Where can I locate detailed information on the LUT?&amp;nbsp; Specifically, is there an RT1060 or MCUXpresso document that explains the LUT and what is to go intot he LUT?&lt;/P&gt;&lt;P&gt;During my debugging, I noticed that the programmer is detecting 2 flash chips, but I'm not sure if it is locating two chips or simply the first one twice.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;const flexspi_nor_config_t qspiflash_config = {
    .memConfig =
        {
            .tag              = FLEXSPI_CFG_BLK_TAG,
            .version          = FLEXSPI_CFG_BLK_VERSION,
            .readSampleClksrc=kFlexSPIReadSampleClk_LoopbackFromDqsPad,
            .csHoldTime       = 3u,
            .csSetupTime      = 3u,
            // Enable DDR mode, Wordaddassable, Safe configuration, Differential clock
            .sflashPadType = kSerialFlash_4Pads,
            .serialClkFreq = kFlexSpiSerialClk_133MHz,
            .sflashA1Size  = 8u * 1024u * 1024u,
            .sflashA2Size  = 8u * 1024u * 1024u,
            .lookupTable =
                {
                    // Read LUTs
                    FLEXSPI_LUT_SEQ(CMD_SDR, FLEXSPI_1PAD, 0xEB, RADDR_SDR, FLEXSPI_4PAD, 0x18),
                    FLEXSPI_LUT_SEQ(DUMMY_SDR, FLEXSPI_4PAD, 0x06, READ_SDR, FLEXSPI_4PAD, 0x04),
                },
        },
    .pageSize           = 256u,
    .sectorSize         = 4u * 1024u,
    .blockSize          = 256u * 1024u,
    .isUniformBlockSize = false,
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1060_SFDP_QSPI.cfx
Image 'iMXRT1060_SFDP_QSPI Mar 22 2021 08:15:58'
Opening flash driver MIMXRT1060_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (8MB = 128*64K at 0x60000000)
Closing flash driver MIMXRT1060_SFDP_QSPI.cfx
Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1060_SFDP_QSPI.cfx
Image 'iMXRT1060_SFDP_QSPI Mar 22 2021 08:15:58'
Opening flash driver MIMXRT1060_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (8MB = 128*64K at 0x60000000)
Closing flash driver MIMXRT1060_SFDP_QSPI.cfx
Connected: was_reset=false. was_stopped=true
Awaiting telnet connection to port 3330 ...
GDB nonstop mode enabled
Opening flash driver MIMXRT1060_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (8MB = 128*64K at 0x60000000)
Writing 62988 bytes to address 0x60000000 in Flash
Sectors written: 0, unchanged: 1, total: 1
Erased/Wrote sector  0-0 with 62988 bytes in 14msec
Closing flash driver MIMXRT1060_SFDP_QSPI.cfx
Flash Write Done
Flash Program Summary: 62988 bytes in 0.01 seconds (4393.69 KB/sec)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chadgraham_0-1626724306362.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/150249iF1EDB36A8E1353F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chadgraham_0-1626724306362.png" alt="chadgraham_0-1626724306362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 19:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1310043#M7148</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2021-07-19T19:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: AN12564 Clarification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1313076#M7203</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The RWW example give you a complete LUT table. It show you how to modify LUT. After initialize, you can XIP in the second flash. If you want to skip this step, you can add erase/write command to LUT table in evkmimxrt1060_flexspi_nor_config.c.&lt;/P&gt;
&lt;P&gt;If you want to download something to the second flash by the MCUXpresso, your setting is right. But it still need to modify code to assign code and data into flash_00.&amp;nbsp; I think the default algorithm can deal with the second flash.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to sector 27.5.7 in reference manual for LUT.&lt;/P&gt;
&lt;P&gt;The MCUXpresso_IDE_User_Guide.pdf in installation directory introduced how to assign code and data in a section. Please see the chapter 17.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 07:51:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1313076#M7203</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-07-26T07:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: AN12564 Clarification</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1319704#M7252</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;After much hardship, I was able to get this to work.&amp;nbsp; In case other people are interested, I posted a working version of the example code at &lt;A href="https://protect-us.mimecast.com/s/FLTwCmZno7hNjGocOBS1A?domain=community.nxp.com" target="_self"&gt;FlexSPI A2 Chip Select Not Toggling.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/AN12564-Clarification/m-p/1319704#M7252</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2021-08-06T12:38:01Z</dc:date>
    </item>
  </channel>
</rss>

