<?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のトピックRe: iMXRT1170 IDE LinkServer Debug problem</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2020288#M33014</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244891"&gt;@OmerFY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in the NXP MIMXRT product, I would&amp;nbsp; like to provide service for you.&lt;/P&gt;
&lt;P&gt;I think you can refer to this link, this document describe "&lt;STRONG&gt;RT1170 Octal flash enablement"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please also double check your&amp;nbsp; cfx file config.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/RT1170-Octal-flash-enablement/ta-p/1498369" target="_blank"&gt;RT1170 Octal flash enablement - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1735529125828.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/317572i85412AFD896A6F65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1735529125828.png" alt="mayliu1_1-1735529125828.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 03:27:27 GMT</pubDate>
    <dc:creator>mayliu1</dc:creator>
    <dc:date>2024-12-30T03:27:27Z</dc:date>
    <item>
      <title>iMXRT1170 IDE LinkServer Debug problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2018852#M32984</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hello, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;After making the necessary hardware adjustments to use the Octal Flash on the IMXRT1170 EVKB, I started software tests. I made the necessary adjustments with the MCU BootUtility program, uploaded my program code to octal flash and ran it successfully(led blink). Afterwards, I started testing on the MCUXpresso ide. After making the necessary adjustments here (FCB and Flash Driver update), I can successfully load and debug the code on the completely erased (mass-erase) octal flash via the LinkServer debugger. However, when I cut off the power to the EVKB and try to load the code again with the debugger, I get the error "Flash Driver describes no sectors at its base address". But if I do mass erase and try to debug again, I can debug with LinkServer again. Can you help with this? I will insert my nor_flash_config code below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*
 * Copyright 2018-2020 NXP
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include "evkmimxrt1170_flexspi_nor_config.h"

/* Component ID definition, used by tools. */
#ifndef FSL_COMPONENT_ID
#define FSL_COMPONENT_ID "platform.drivers.xip_board"
#endif

/*******************************************************************************
 * Code
 ******************************************************************************/
#if defined(XIP_BOOT_HEADER_ENABLE) &amp;amp;&amp;amp; (XIP_BOOT_HEADER_ENABLE == 1)
#if defined(__CC_ARM) || defined(__ARMCC_VERSION) || defined(__GNUC__)
__attribute__((section(".boot_hdr.conf"), used))
#elif defined(__ICCARM__)
#pragma location = ".boot_hdr.conf"
#endif

const flexspi_nor_config_t octalflash_config = {
    .memConfig =
        {
            .tag                 = FLEXSPI_CFG_BLK_TAG,
            .version             = FLEXSPI_CFG_BLK_VERSION,
            .readSampleClksrc=kFlexSPIReadSampleClk_ExternalInputFromDqsPad,
            .csHoldTime          = 3,
            .csSetupTime         = 3,
            .deviceModeCfgEnable = 1,
            .deviceModeType      = kDeviceConfigCmdType_Spi2Xpi,
            .waitTimeCfgCommands = 1,
            .deviceModeSeq =
                {
                    .seqNum   = 1,
                    .seqId    = 6, /* See Lookup table for more details */
                    .reserved = 0,
                },
            .deviceModeArg = 2, /* Enable OPI DDR mode */
            .controllerMiscOption =
                (1u &amp;lt;&amp;lt; kFlexSpiMiscOffset_SafeConfigFreqEnable) | (1u &amp;lt;&amp;lt; kFlexSpiMiscOffset_DdrModeEnable),
            .deviceType    = kFlexSpiDeviceType_SerialNOR,
            .sflashPadType = kSerialFlash_8Pads,
            .serialClkFreq = kFlexSpiSerialClk_133MHz,
            .sflashA1Size  = 64ul * 1024u * 1024u,
            .dataValidTime =
                {
                    [0] = {.time_100ps = 16},
                },
            .busyOffset      = 0u,
            .busyBitPolarity = 0u,
            .lookupTable =
                {
                		/* Read */// EEH+11H+32bit addr+20dummy cycles+ 4Bytes read data    //133Mhz 20 dummy=10+10
                		[0 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0xEE, CMD_DDR, FLEXSPI_8PAD, 0x11),//0x871187ee,
                		[0 + 1] = FLEXSPI_LUT_SEQ(RADDR_DDR, FLEXSPI_8PAD, 0x20, DUMMY_DDR, FLEXSPI_8PAD, 0x0A),//0xb30a8b20,
                		[0 + 2] = FLEXSPI_LUT_SEQ(DUMMY_DDR, FLEXSPI_8PAD, 0x0A, READ_DDR, FLEXSPI_8PAD, 0x04),//0xa704b30a,

						/* Read Status SPI */// SPI 05h+ status data 0X24 maybe 0X04
                		[4*1 + 0] = FLEXSPI_LUT_SEQ(CMD_SDR  , FLEXSPI_1PAD, 0x05, READ_SDR, FLEXSPI_1PAD, 0x24),//0x24040405,

						/* Read Status OPI *///05H+FAH+ 4byte 00H(addr)+4Byte read
                		[4*2 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0x05, CMD_DDR, FLEXSPI_8PAD, 0xFA),//0x87fa8705,
                		[4*2 + 1] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0x00, CMD_DDR, FLEXSPI_8PAD, 0x00),//0x87008700,
                		[4*2 + 2] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0x00, CMD_DDR, FLEXSPI_8PAD, 0x00),//0x87008700,
                		[4*2 + 3] = FLEXSPI_LUT_SEQ(READ_DDR  , FLEXSPI_8PAD, 0x04, STOP_EXE, FLEXSPI_1PAD, 0x00),//0x0000a704,

						/* Write enable SPI *///06h
                		[4*3 + 0] = FLEXSPI_LUT_SEQ(CMD_SDR  , FLEXSPI_1PAD, 0x06, STOP_EXE, FLEXSPI_1PAD, 0x00),//0x00000406,

						/* Write enable OPI *///06h+F9H
                		[4*4 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0x06, CMD_DDR, FLEXSPI_8PAD, 0xF9),//0x87f98706,

						/* Erase sector */ //21H+DEH + 32bit address
                		[4*5 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0x21, CMD_DDR, FLEXSPI_8PAD, 0xDE),//0x87de8721,
                		[4*5 + 1] = FLEXSPI_LUT_SEQ(RADDR_DDR  , FLEXSPI_8PAD, 0x20, STOP_EXE, FLEXSPI_1PAD, 0x00),//0x00008b20,

                        /*Write Configuration Register 2 =01, Enable OPI DDR mode*/ //72H +32bit address + CR20x00000000 = 0x01
                		[4*6 + 0] = FLEXSPI_LUT_SEQ(CMD_SDR  , FLEXSPI_1PAD, 0x72, CMD_SDR, FLEXSPI_1PAD, 0x00),//0x04000472,
                		[4*6 + 1] = FLEXSPI_LUT_SEQ(CMD_SDR  , FLEXSPI_1PAD, 0x00, CMD_SDR, FLEXSPI_1PAD, 0x00),//0x04000400,
                		[4*6 + 2] = FLEXSPI_LUT_SEQ(CMD_SDR  , FLEXSPI_1PAD, 0x00, WRITE_SDR, FLEXSPI_1PAD, 0x01),//0x20010400,

						/*block erase*/ //DCH+23H+32bit address
                		[4*8 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0xDC, CMD_DDR, FLEXSPI_8PAD, 0x23),//0x872387dc,
                		[4*8 + 1] = FLEXSPI_LUT_SEQ(RADDR_DDR, FLEXSPI_8PAD, 0x20, STOP_EXE, FLEXSPI_1PAD, 0x00),//0x00008b20,

						/*page program*/ //12H+EDH+32bit address+ write data 4bytes
                		[4*9 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0x12, CMD_DDR, FLEXSPI_8PAD, 0xED),//0x87ed8712,
                		[4*9 + 1] = FLEXSPI_LUT_SEQ(RADDR_DDR, FLEXSPI_8PAD, 0x20, WRITE_DDR, FLEXSPI_8PAD, 0x04),//0xa3048b20,

						/* Chip Erase (CE) Sequence *///60H+9FH
                		[4*11 + 0] = FLEXSPI_LUT_SEQ(CMD_DDR  , FLEXSPI_8PAD, 0x60, CMD_DDR, FLEXSPI_8PAD, 0x9F),//0x879f8760,

                },
        },
    .pageSize           = 256u,
    .sectorSize         = 4u * 1024u,
    .blockSize          = 64u * 1024u,
    .isUniformBlockSize = false,
};
#endif /* XIP_BOOT_HEADER_ENABLE &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 05:28:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2018852#M32984</guid>
      <dc:creator>OmerFY</dc:creator>
      <dc:date>2024-12-24T05:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1170 IDE LinkServer Debug problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2020288#M33014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244891"&gt;@OmerFY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in the NXP MIMXRT product, I would&amp;nbsp; like to provide service for you.&lt;/P&gt;
&lt;P&gt;I think you can refer to this link, this document describe "&lt;STRONG&gt;RT1170 Octal flash enablement"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please also double check your&amp;nbsp; cfx file config.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/RT1170-Octal-flash-enablement/ta-p/1498369" target="_blank"&gt;RT1170 Octal flash enablement - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1735529125828.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/317572i85412AFD896A6F65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1735529125828.png" alt="mayliu1_1-1735529125828.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 03:27:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2020288#M33014</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-12-30T03:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1170 IDE LinkServer Debug problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2026364#M33161</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/239163"&gt;@mayliu1&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply. Yes, I followed this guide and it seems it doesn't help because same problem still occurs.</description>
      <pubDate>Mon, 13 Jan 2025 05:17:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2026364#M33161</guid>
      <dc:creator>OmerFY</dc:creator>
      <dc:date>2025-01-13T05:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1170 IDE LinkServer Debug problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2029685#M33220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/244891"&gt;@OmerFY&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your replay and patience.&lt;/P&gt;
&lt;P&gt;I think you can use MCU Boot Utility Tool programing MIMXRT1170 successfully.&lt;/P&gt;
&lt;P&gt;I suggest you can compare your image generated by&amp;nbsp;MCU Boot Utility Tool with the image generated by MCUXPresso IDE, especially&amp;nbsp;FDCB section.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1737108736653.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320070i45817663CD481B7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1737108736653.png" alt="mayliu1_0-1737108736653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For example,&amp;nbsp; Next Fig is&amp;nbsp; image&amp;nbsp;generated by MCU Boot Utility Tool.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1737108755859.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320072iA6761C42366E505B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1737108755859.png" alt="mayliu1_1-1737108755859.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use MCUXPresso IDE to generate a hex image.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_2-1737108774211.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320073i63862593B8BFB0F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_2-1737108774211.png" alt="mayliu1_2-1737108774211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please compare the differences between the two images above, and then modify the evkbmimxrt1170_flexspi_nor_config.c file accordingly, especially&amp;nbsp;lookupTable value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also refer to&amp;nbsp;octal flash chip datasheet to modify your code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MayLiu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 10:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1170-IDE-LinkServer-Debug-problem/m-p/2029685#M33220</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2025-01-17T10:13:15Z</dc:date>
    </item>
  </channel>
</rss>

