<?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: IMX RT1170B First Boot Code Execution</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859964#M30150</link>
    <description>&lt;P&gt;Hello, maybe need to recover control, &lt;EM&gt;indicates the processor is still in some sort of debug mode&lt;/EM&gt;&amp;nbsp;could you try to do the steps on the thread?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-board-recovery-for-debugger-connect-issues/ta-p/1635260" target="_blank" rel="noopener"&gt;RT board recovery for debugger connect issues - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Does this mean you are working on a dual-core project?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Trying to follow the example from the connect m7 wake m4 and reset scp scripts, I am running the following commands in JLINK for the first execution:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If yes, maybe this thread could help you.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/How-to-use-JLINK-to-debug-RT1170-dual-core/ta-p/1268548" target="_blank" rel="noopener"&gt;How to use JLINK to debug RT1170 dual core - NXP Community&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 20:51:22 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2024-05-06T20:51:22Z</dc:date>
    <item>
      <title>IMX RT1170B First Boot Code Execution</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1858971#M30128</link>
      <description>&lt;P&gt;We have a custom IMXRT1170 board based on the EVK that works great when I use LPCLink / MCUXpresso to program the board for the first time. After programming them once with the LPCLink we can use either the LPCLink or JLINK programmers without issue. However, code will not execute using the JLINK programmer until they are programmed with the LPCLink programmer once. The registers look like this if after are programmed with the JLINK:&lt;/P&gt;&lt;P&gt;PC = 300024BC, CycleCnt = 0B04C872&lt;BR /&gt;R0 = 40CAC0B0, R1 = 0A000000, R2 = 80000000, R3 = 0000F000&lt;BR /&gt;R4 = E000ED00, R5 = 0022946D, R6 = 001640CD, R7 = 00207DC8&lt;BR /&gt;R8 = 2024AE80, R9 = 2024AE84, R10= 00211C0C, R11= 000000F0&lt;BR /&gt;R12= 00000000&lt;BR /&gt;SP(R13)= 82F80000, MSP= 82F80000, PSP= 00000000, R14(LR) = 002015F3&lt;BR /&gt;XPSR = 81000000: APSR = Nzcvq, EPSR = 01000000, IPSR = 000 (NoException)&lt;BR /&gt;CFBP = 00000001, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 01&lt;/P&gt;&lt;P&gt;FPS0 = 00000000, FPS1 = 00000000, FPS2 = 00000000, FPS3 = 00000000&lt;BR /&gt;FPS4 = 00000000, FPS5 = 00000000, FPS6 = 00000000, FPS7 = 00000000&lt;BR /&gt;FPS8 = 00000000, FPS9 = 00000000, FPS10= 00000000, FPS11= 00000000&lt;BR /&gt;FPS12= 00000000, FPS13= 00000000, FPS14= 00000000, FPS15= FFFFFFFF&lt;BR /&gt;FPS16= 00000000, FPS17= 00000000, FPS18= 00000000, FPS19= 00000000&lt;BR /&gt;FPS20= 00000000, FPS21= 00000000, FPS22= 00000000, FPS23= 00000000&lt;BR /&gt;FPS24= 00000000, FPS25= 00000000, FPS26= 00000000, FPS27= 00000000&lt;BR /&gt;FPS28= 00000000, FPS29= 00000000, FPS30= 00000000, FPS31= FFFFFFFF&lt;BR /&gt;FPSCR= 00000000&lt;/P&gt;&lt;P&gt;These look OK to me but code doesn't execute. Upon Reset:&lt;/P&gt;&lt;P&gt;PC = 00223104, CycleCnt = 9CDD4732&lt;BR /&gt;R0 = 40CAC0B0, R1 = 0A000000, R2 = 80000000, R3 = 0000F000&lt;BR /&gt;R4 = E000ED00, R5 = 0022946D, R6 = 001640CD, R7 = 00207DC8&lt;BR /&gt;R8 = 2024AE80, R9 = 2024AE84, R10= 00211C0C, R11= 000000F0&lt;BR /&gt;R12= 00000000&lt;BR /&gt;SP(R13)= 20241D98, MSP= 20241D98, PSP= 00000000, R14(LR) = 002015F3&lt;BR /&gt;XPSR = 81000000: APSR = Nzcvq, EPSR = 01000000, IPSR = 000 (NoException)&lt;BR /&gt;CFBP = 00000001, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 01&lt;/P&gt;&lt;P&gt;FPS0 = 00000000, FPS1 = 00000000, FPS2 = 00000000, FPS3 = 00000000&lt;BR /&gt;FPS4 = 00000000, FPS5 = 00000000, FPS6 = 00000000, FPS7 = 00000000&lt;BR /&gt;FPS8 = 00000000, FPS9 = 00000000, FPS10= 00000000, FPS11= 00000000&lt;BR /&gt;FPS12= 00000000, FPS13= 00000000, FPS14= 00000000, FPS15= FFFFFFFF&lt;BR /&gt;FPS16= 00000000, FPS17= 00000000, FPS18= 00000000, FPS19= 00000000&lt;BR /&gt;FPS20= 00000000, FPS21= 00000000, FPS22= 00000000, FPS23= 00000000&lt;BR /&gt;FPS24= 00000000, FPS25= 00000000, FPS26= 00000000, FPS27= 00000000&lt;BR /&gt;FPS28= 00000000, FPS29= 00000000, FPS30= 00000000, FPS31= FFFFFFFF&lt;BR /&gt;FPSCR= 00000000&lt;/P&gt;&lt;P&gt;I see from reading the example .scp files from NXP that&amp;nbsp;PC = 00223104 indicates the processor is still in some sort of debug mode. Trying to follow the example from the connect m7 wake m4 and reset scp scripts, I am running the following commands in JLINK for the first execution:&lt;/P&gt;&lt;P&gt;device MIMXRT1176XXXA_M4&lt;BR /&gt;si SWD&lt;BR /&gt;speed 4000&lt;BR /&gt;connect&lt;BR /&gt;Halt&lt;BR /&gt;Write4 0x2021FF00 0xE7FEE7FE&lt;BR /&gt;Write4 0x2021FF04 0x2021FF01&lt;BR /&gt;Write4 0x40C0C000 0xFF00&lt;BR /&gt;Write4 0x40C0C004 0x2021&lt;BR /&gt;Write4 0x40CC0080 0x201&lt;BR /&gt;Reset&lt;BR /&gt;Go&lt;BR /&gt;Exit&lt;/P&gt;&lt;P&gt;Device MIMXRT1176XXXA_M7&lt;BR /&gt;si SWD&lt;BR /&gt;speed 4000&lt;BR /&gt;Connect&lt;BR /&gt;LoadFile hello.elf&lt;BR /&gt;WReg “R13 (SP)”, 0x82F80000&lt;BR /&gt;WReg “R15 (PC)”, 0x300024BD&lt;BR /&gt;WReg “XPSR”, 0x01000000&lt;BR /&gt;Write4 0x40C0C068 0x4200&lt;BR /&gt;Write4 0xE000EDFC 0x010007F1&lt;BR /&gt;Halt&lt;BR /&gt;Reset&lt;BR /&gt;Go&lt;/P&gt;&lt;P&gt;But I still get the same result. The register settings look correct after writing, but code doesn't execute, and upon reset I still get the&amp;nbsp;PC = 00223104 issue.&amp;nbsp;Our production stations use JLINK programmers and so we need to be able to start the boards up with them. What other registers or addresses do I need to be writing to get the rev B processor out of debug mode permenantly? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 14:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1858971#M30128</guid>
      <dc:creator>979A35J</dc:creator>
      <dc:date>2024-05-03T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMX RT1170B First Boot Code Execution</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859178#M30135</link>
      <description>&lt;P&gt;Hello, could you test the led blinky led and share the LOG file and the popup image is this are showed.&lt;/P&gt;
&lt;P&gt;In other observations did you erase the Launcher to switch the debugger flavor?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1714786672856.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277110i2CE18AFCE82D9C1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1714786672856.png" alt="Pavel_Hernandez_0-1714786672856.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 01:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859178#M30135</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-05-04T01:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: IMX RT1170B First Boot Code Execution</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859777#M30145</link>
      <description>&lt;P&gt;Hi Pavel, I am not exactly sure if this is what you are asking - I am unsure how the launcher is relevant as we need to use JLink Commander to program with the JLink probe, not MCUXpresso. JLink Commander/JLink is our production tool and so we need to be able to program with that toolset. Our code is also not built in MCUXpresso, so again I don't think the launcher is relevant.&lt;/P&gt;&lt;P&gt;In case this is what you are after, here is the output from a successful programming via&amp;nbsp;MCUXpresso / LPCLink (i.e. the first time programming after which all subsequent programming work regardless of the method).&lt;/P&gt;&lt;P&gt;Executing flash operation 'Program' (Program file into flash: test_ads1119.elf) - Thu May 02 14:13:52 PDT 2024&lt;BR /&gt;Checking MCU info...&lt;BR /&gt;Scanning for targets...&lt;BR /&gt;Executing flash action...&lt;BR /&gt;MCUXpresso IDE RedlinkMulti Driver v11.9 (Dec 11 2023 18:02:10 - crt_emu_cm_redlink.exe build 2)&lt;BR /&gt;( 0) Reading remote configuration&lt;BR /&gt;Wc(03). No cache support.&lt;BR /&gt;Found chip XML file in C:/Users/breste60576/Documents/MCUXpressoIDE_11.9.0_2144/workspace/evkmimxrt1170_freertos_generic_cm7\MIMXRT1176xxxxx.xml&lt;BR /&gt;( 5) Remote configuration complete&lt;BR /&gt;Reconnected to existing LinkServer process.&lt;BR /&gt;============= SCRIPT: RT1170_connect_M7_wake_M4.scp =============&lt;BR /&gt;RT1170 Connect M7 and Wake M4 Script&lt;BR /&gt;DpID = 6BA02477&lt;BR /&gt;Error: No power acknowledge on DAP bus&lt;BR /&gt;Setting M4 spin code&lt;BR /&gt;Setting M4 clock&lt;BR /&gt;Resetting M4 core&lt;BR /&gt;Releasing M4&lt;BR /&gt;View cores on the DAP AP&lt;BR /&gt;DpID = 6BA02477&lt;BR /&gt;TAP 0: 6BA02477 Core 0: M7 APID: 84770001 ROM Table: E00FD003*&lt;BR /&gt;TAP 0: 6BA02477 Core 1: M4 APID: 24770011 ROM Table: E00FF003&lt;BR /&gt;============= END SCRIPT ========================================&lt;BR /&gt;Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)&lt;BR /&gt;Serial Number: IWFWO1ES&lt;BR /&gt;VID:PID: 1FC9:0090&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0090&amp;amp;mi_00#9&amp;amp;36d46763&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Using memory from core 0 after searching for a good core&lt;BR /&gt;( 30) Emulator Connected&lt;BR /&gt;( 40) Debug Halt&lt;BR /&gt;( 50) CPU ID&lt;BR /&gt;debug interface type = CoreSight DP (DAP DP ID 6BA02477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M7 (CPU ID 00000C27) on DAP AP 0&lt;BR /&gt;number of h/w breakpoints = 8&lt;BR /&gt;number of flash patches = 0&lt;BR /&gt;number of h/w watchpoints = 4&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 6BA02477. CpuID: 00000C27. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FD000: CID B105100D PID 000008E88C ROM (type 0x1)&lt;BR /&gt;ROM 1 E00FE000: CID B105100D PID 04000BB4C8 ROM (type 0x1)&lt;BR /&gt;ROM 2 E00FF000: CID B105100D PID 04000BB4C7 ROM (type 0x1)&lt;BR /&gt;ROM 3 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)&lt;BR /&gt;ROM 3 E0001000: CID B105E00D PID 04000BB002 Gen DWT (type 0x0)&lt;BR /&gt;ROM 3 E0002000: CID B105E00D PID 04000BB00E Gen (type 0x0)&lt;BR /&gt;ROM 3 E0000000: CID B105E00D PID 04000BB001 Gen ITM (type 0x0)&lt;BR /&gt;ROM 2 E0041000: CID B105900D PID 04001BB975 CSt ARM ETMv4.0 type 0x13 Trace Source - Core&lt;BR /&gt;ROM 2 E0042000: CID B105900D PID 04004BB906 CSt type 0x14 Debug Control - Trigger, e.g. ECT&lt;BR /&gt;ROM 1 E0043000: CID B105900D PID 04001BB908 CSt CSTF type 0x12 Trace Link - Trace funnel/router&lt;BR /&gt;NXP: MIMXRT1176xxxxx&lt;BR /&gt;DAP stride is 1024 bytes (256 words)&lt;BR /&gt;Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1170_SFDP_QSPI.cfx&lt;BR /&gt;Image 'iMXRT1170_SFDP_FlexSPI1_A_QSPI Dec 12 2023 17:27:24'&lt;BR /&gt;Opening flash driver MIMXRT1170_SFDP_QSPI.cfx&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Flash variant 'iMXRT1170_SFDP_FlexSPI1_A_QSPI Dec 12 2023 17:27:24' detected (16MB = 256*64K at 0x30000000)&lt;BR /&gt;Closing flash driver MIMXRT1170_SFDP_QSPI.cfx&lt;BR /&gt;( 65) Chip Setup Complete&lt;BR /&gt;Connected: was_reset=true. was_stopped=false&lt;BR /&gt;( 70) License Check Complete&lt;BR /&gt;Loading 'test_ads1119.elf' ELF 0x30000400 len 0x200&lt;BR /&gt;Opening flash driver MIMXRT1170_SFDP_QSPI.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Flash variant 'iMXRT1170_SFDP_FlexSPI1_A_QSPI Dec 12 2023 17:27:24' detected (16MB = 256*64K at 0x30000000)&lt;BR /&gt;Writing 512 bytes to address 0x30000400 in Flash&lt;BR /&gt;1 of 1 ( 0) Writing sectors 0-0 at 0x30000400 with 512 bytes&lt;BR /&gt;( 0) at 30000000: 0 bytes - 0/1536&lt;BR /&gt;(100) at 30000000: 16384 bytes - 16384/1536&lt;BR /&gt;Sectors written: 1, unchanged: 0, total: 1&lt;BR /&gt;Erased/Wrote sector 0-0 with 512 bytes in 166msec&lt;BR /&gt;Closing flash driver MIMXRT1170_SFDP_QSPI.cfx&lt;BR /&gt;(100) Finished writing Flash successfully.&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Loaded 0x200 bytes in 273ms (about 1kB/s)&lt;BR /&gt;Loading 'test_ads1119.elf' ELF 0x30001000 len 0x30&lt;BR /&gt;Opening flash driver MIMXRT1170_SFDP_QSPI.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Flash variant 'iMXRT1170_SFDP_FlexSPI1_A_QSPI Dec 12 2023 17:27:24' detected (16MB = 256*64K at 0x30000000)&lt;BR /&gt;Writing 48 bytes to address 0x30001000 in Flash&lt;BR /&gt;1 of 1 ( 0) Writing sectors 0-0 at 0x30001000 with 48 bytes&lt;BR /&gt;( 0) at 30000000: 0 bytes - 0/4144&lt;BR /&gt;(100) at 30000000: 16384 bytes - 16384/4144&lt;BR /&gt;Sectors written: 1, unchanged: 0, total: 1&lt;BR /&gt;Erased/Wrote sector 0-0 with 48 bytes in 202msec&lt;BR /&gt;Closing flash driver MIMXRT1170_SFDP_QSPI.cfx&lt;BR /&gt;(100) Finished writing Flash successfully.&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Loaded 0x30 bytes in 310ms (about 0kB/s)&lt;BR /&gt;Loading 'test_ads1119.elf' ELF 0x30001040 len 0x10&lt;BR /&gt;Opening flash driver MIMXRT1170_SFDP_QSPI.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Flash variant 'iMXRT1170_SFDP_FlexSPI1_A_QSPI Dec 12 2023 17:27:24' detected (16MB = 256*64K at 0x30000000)&lt;BR /&gt;Writing 16 bytes to address 0x30001040 in Flash&lt;BR /&gt;1 of 1 ( 0) Writing sectors 0-0 at 0x30001040 with 16 bytes&lt;BR /&gt;( 0) at 30000000: 0 bytes - 0/4176&lt;BR /&gt;(100) at 30000000: 16384 bytes - 16384/4176&lt;BR /&gt;Sectors written: 1, unchanged: 0, total: 1&lt;BR /&gt;Erased/Wrote sector 0-0 with 16 bytes in 199msec&lt;BR /&gt;Closing flash driver MIMXRT1170_SFDP_QSPI.cfx&lt;BR /&gt;(100) Finished writing Flash successfully.&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Loaded 0x10 bytes in 309ms (about 0kB/s)&lt;BR /&gt;Loading 'test_ads1119.elf' ELF 0x30002000 len 0x777C&lt;BR /&gt;Opening flash driver MIMXRT1170_SFDP_QSPI.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Flash variant 'iMXRT1170_SFDP_FlexSPI1_A_QSPI Dec 12 2023 17:27:24' detected (16MB = 256*64K at 0x30000000)&lt;BR /&gt;Writing 30588 bytes to address 0x30002000 in Flash&lt;BR /&gt;1 of 1 ( 0) Writing sectors 0-0 at 0x30002000 with 30588 bytes&lt;BR /&gt;( 0) at 30000000: 0 bytes - 0/38780&lt;BR /&gt;( 42) at 30000000: 16384 bytes - 16384/38780&lt;BR /&gt;( 84) at 30004000: 16384 bytes - 32768/38780&lt;BR /&gt;(100) at 30008000: 16384 bytes - 49152/38780&lt;BR /&gt;Sectors written: 1, unchanged: 0, total: 1&lt;BR /&gt;Erased/Wrote sector 0-0 with 30588 bytes in 363msec&lt;BR /&gt;Closing flash driver MIMXRT1170_SFDP_QSPI.cfx&lt;BR /&gt;(100) Finished writing Flash successfully.&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Loaded 0x777C bytes in 465ms (about 65kB/s)&lt;BR /&gt;Reset target (system)&lt;BR /&gt;============= SCRIPT: RT1170_reset.scp =============&lt;BR /&gt;SYSTEM Reset&lt;BR /&gt;DpID = 6BA02477&lt;BR /&gt;TAP 0: 6BA02477 Core 0: M7 APID: 84770001 ROM Table: E00FD003*&lt;BR /&gt;TAP 0: 6BA02477 AP 1: APID: 24770011 ROM Table: E00FF003&lt;BR /&gt;TAP 0: 6BA02477 AP 2: APID: 54770002 ROM Table: 00000002&lt;BR /&gt;APID = 0x84770001&lt;BR /&gt;Setting M4 spin code&lt;BR /&gt;Setting M4 clock&lt;BR /&gt;Resetting M4 core&lt;BR /&gt;Releasing M4&lt;BR /&gt;View cores on the DAP AP&lt;BR /&gt;DpID = 6BA02477&lt;BR /&gt;TAP 0: 6BA02477 Core 0: M7 APID: 84770001 ROM Table: E00FD003*&lt;BR /&gt;TAP 0: 6BA02477 Core 1: M4 APID: 24770011 ROM Table: E00FF003&lt;BR /&gt;R15 = 0x00223104&lt;BR /&gt;Vector table SP/PC is the reset context.&lt;BR /&gt;PC = 0x300024BD&lt;BR /&gt;SP = 0x82F80000&lt;BR /&gt;XPSR = 0x01000000&lt;BR /&gt;VTOR = 0x30002000&lt;BR /&gt;Set DEMCR = 0x010007F1&lt;BR /&gt;============= END SCRIPT ===========================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 14:26:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859777#M30145</guid>
      <dc:creator>979A35J</dc:creator>
      <dc:date>2024-05-06T14:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: IMX RT1170B First Boot Code Execution</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859964#M30150</link>
      <description>&lt;P&gt;Hello, maybe need to recover control, &lt;EM&gt;indicates the processor is still in some sort of debug mode&lt;/EM&gt;&amp;nbsp;could you try to do the steps on the thread?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-board-recovery-for-debugger-connect-issues/ta-p/1635260" target="_blank" rel="noopener"&gt;RT board recovery for debugger connect issues - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Does this mean you are working on a dual-core project?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Trying to follow the example from the connect m7 wake m4 and reset scp scripts, I am running the following commands in JLINK for the first execution:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If yes, maybe this thread could help you.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/How-to-use-JLINK-to-debug-RT1170-dual-core/ta-p/1268548" target="_blank" rel="noopener"&gt;How to use JLINK to debug RT1170 dual core - NXP Community&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 20:51:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859964#M30150</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-05-06T20:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: IMX RT1170B First Boot Code Execution</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859998#M30154</link>
      <description>&lt;P&gt;Hi Pavel,&lt;/P&gt;&lt;P&gt;I do not believe this is a confused core issue, and our project only uses the M7 core. I am setting the M4 spin codes only to prevent its interrupts from interfering with the M7 per the comments in the reset and connect scripts from NXP.&lt;/P&gt;&lt;P&gt;There's actually a pretty good comment from NXP in the header of the reset.scp script for the IMX RT 1170 explaining what's going on here:&lt;/P&gt;&lt;P&gt;1 REM ======================================&lt;BR /&gt;2 REM Copyright 2020-2023 NXP&lt;BR /&gt;3 REM All rights reserved.&lt;BR /&gt;4 REM SPDX-License-Identifier: BSD-3-Clause&lt;BR /&gt;5 REM ======================================&lt;/P&gt;&lt;P&gt;100 REM IMXRT1170 Reset script&lt;/P&gt;&lt;P&gt;110 REM When RT1170 Rev B is reset via SYSRESET_REQ under debugger control, bootROM will&lt;BR /&gt;120 REM not boot an existent flash application, instead it will enter a debug loop at a&lt;BR /&gt;130 REM fixed PC address (0x00223104). The debugger then needs to initialise the execution&lt;BR /&gt;140 REM context in order to jump to the user application.&lt;BR /&gt;150 REM RT1170 Rev A does not present this functionality, so it is allowed to continue&lt;BR /&gt;160 REM the booting process without any other intervention post reset.&lt;/P&gt;&lt;P&gt;Per this comment, the "The debugger then needs to initialise the execution context in order to jump to the user application." is the bit I am having trouble with. Like I said, I copied the register writes present in this same reset.scp script into my own custom JLINK script, and confirmed the writes are successful, but this is still evidently not enough to "initialize the execution context in order to jump to the user application." Perhaps you could contact the author of this IMXRT 1170 reset.scp script for more detail about what needs to be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 22:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1859998#M30154</guid>
      <dc:creator>979A35J</dc:creator>
      <dc:date>2024-05-06T22:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: IMX RT1170B First Boot Code Execution</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1863577#M30269</link>
      <description>&lt;P&gt;I figured it out, and thought I would share in case someone else needs the information. Turns out the IMX RT family needs a separate flashloader program that lives on-chip to correctly program external flash. MCUXpresso uses their internal flashloader which is why we needed to use their tool to boot first. But, it turns out an NXP engineer also wrote a flashloader for the IMX RT family to work with JLink:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/JayHeng/RT-UFL/blob/master/README-en.md" target="_blank"&gt;https://github.com/JayHeng/RT-UFL/blob/master/README-en.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Instructions on how to use it are here (note that this is for the RT600 but the basic steps are identical):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT600-MCUXpresso-JLINK-debug-QSPI-flash/ta-p/1345484" rel="nofollow" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT600-MCUXpresso-JLINK-debug-QSPI-flash/ta-p/1345484&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Only unfortunate thing is this flashloader hasn't been updated for a while, and I had to revert to JLINK version 7.60d in order to get it to work.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 15:27:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX-RT1170B-First-Boot-Code-Execution/m-p/1863577#M30269</guid>
      <dc:creator>979A35J</dc:creator>
      <dc:date>2024-05-10T15:27:46Z</dc:date>
    </item>
  </channel>
</rss>

