<?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 GeneralのトピックRe: XIP, program not starting on LPC54018J4M custom board</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1744313#M5175</link>
    <description>&lt;P&gt;Hello Alice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I know it´s setup like this. My problem is, that the program does not load at all when configured for XIP. It hangs before start.&lt;/P&gt;&lt;P&gt;Is there any special configuration I have to make to the internal QSPI flash before able to use it?&lt;/P&gt;&lt;P&gt;My memory config is as follows and I am using the&amp;nbsp;LPC540xx_SPIFI_GENERIC.cfx driver:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxp1.JPG" style="width: 723px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246320i16888C4662D43D37/image-dimensions/723x202?v=v2" width="723" height="202" role="button" title="nxp1.JPG" alt="nxp1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also I checked my linker file if configured correctly:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Image type 3 (XIP with no CRC)&lt;/LI&gt;&lt;LI&gt;Load_address 0x10000000 (flash)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Also I checked for a possible ISP boot mode&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the BOOT_SRC bits9+10 are not set, which means the ISP pins decide&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;P0.4, P0.5, P0.6 have external pullups and always high, which means Auto boot sequence&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My program ist based on the "hello_world_qspi_xip" SDK sample. But I also tried to create i new project from scratch, which shows the same behaviour.&lt;/P&gt;&lt;P&gt;Do you have any other idea I could check?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 08:33:06 GMT</pubDate>
    <dc:creator>ronwal</dc:creator>
    <dc:date>2023-10-23T08:33:06Z</dc:date>
    <item>
      <title>XIP, program not starting on LPC54018J4M custom board</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1742894#M5171</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;I am currently working on a new custom board using LPC54018J4MET180 with integrated 4MB Flash.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have been able to run the code when using the "Link application to RAM" setting from MCUXpressoIDE. but it´ll not execute the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;code with XIP. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I try to debug from MCUXpresso, the debugger does not get to the main or even ResetISR breakpoint and just says that the thread is running and the following message:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;No source available for "(gdb[34].proc[42000].threadGroup[i1],gdb[34].proc[42000].OSthread[1]).thread[1].frame[0]"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;These are the debugger log messages:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MCUXpresso IDE RedlinkMulti Driver v11.8 (Jul 12 2023 16:09:15 - crt_emu_cm_redlink build 2)
Found chip XML file in D:/workspaceM4/LPC54018M_Minimal/Debug\LPC54018J4M.xml
(  5) Remote configuration complete
Reconnected to existing LinkServer process.
Probe Firmware: MCU-LINK (r0FF) CMSIS-DAP V2.263 (NXP Semiconductors)
Serial Number:  HC2ZIXAVLISYN
VID:PID:  1FC9:0143
USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0143&amp;amp;mi_00#7&amp;amp;73995f5&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Using memory from core 0 after searching for a good core
debug interface type      = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0
processor type            = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches   = 2
number of h/w watchpoints = 4
Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 00000C24. Info: &amp;lt;None&amp;gt;
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU
ROM 1 E0041000: CID B105900D PID 04000BB925 CSt ETM type 0x13 Trace Source - Core
NXP: LPC54018J4M
DAP stride is 4096 bytes (1024 words)
Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_GENERIC.cfx
Image 'LPC5460x Generic SPIFI Jul 25 2023 09:07:38'
Opening flash driver LPC540xx_SPIFI_GENERIC.cfx
Sending VECTRESET to run flash driver
Flash variant 'W25Q32FV' detected (4MB = 64*64K at 0x10000000)
Closing flash driver LPC540xx_SPIFI_GENERIC.cfx
Connected: was_reset=true. was_stopped=false
Awaiting telnet connection to port 3330 ...
GDB nonstop mode enabled
Opening flash driver LPC540xx_SPIFI_GENERIC.cfx (already resident)
Sending VECTRESET to run flash driver
Flash variant 'W25Q32FV' detected (4MB = 64*64K at 0x10000000)
Writing 13616 bytes to address 0x10000000 in Flash
10004000 done 100% (16384 out of 13616)
Erased/Wrote sector 0-0 with 13616 bytes in 437msec
Closing flash driver LPC540xx_SPIFI_GENERIC.cfx
Flash Write Done
Flash Program Summary: 13616 bytes in 0.44 seconds (30.43 KB/sec)
Starting execution using system reset and halt target with a stall address
Retask read watchpoint 1 at 0x40000040 to use for boot ROM stall
Boot ROM stalled accessing address 0x40000040 (restoring watchpoint 1)
Stopped (Was Reset)  [Reset from Unknown]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 11:38:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1742894#M5171</guid>
      <dc:creator>ronwal</dc:creator>
      <dc:date>2023-10-19T11:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: XIP, program not starting on LPC54018J4M custom board</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1744281#M5174</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/145209"&gt;@ronwal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "plain load images" control XIP or no-xip, if you want to XIP, disable it (un-check):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1698047522629.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246316iB889450F700D8414/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1698047522629.png" alt="Alice_Yang_0-1698047522629.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About detail, you can refer to &amp;lt;MCUXpresso IDE User Guide &amp;gt; -&amp;gt;&amp;nbsp;plain load image.&lt;/P&gt;
&lt;P&gt;Also you can import a xip demo for lpc54018 to test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 07:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1744281#M5174</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-10-23T07:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: XIP, program not starting on LPC54018J4M custom board</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1744313#M5175</link>
      <description>&lt;P&gt;Hello Alice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I know it´s setup like this. My problem is, that the program does not load at all when configured for XIP. It hangs before start.&lt;/P&gt;&lt;P&gt;Is there any special configuration I have to make to the internal QSPI flash before able to use it?&lt;/P&gt;&lt;P&gt;My memory config is as follows and I am using the&amp;nbsp;LPC540xx_SPIFI_GENERIC.cfx driver:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxp1.JPG" style="width: 723px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246320i16888C4662D43D37/image-dimensions/723x202?v=v2" width="723" height="202" role="button" title="nxp1.JPG" alt="nxp1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also I checked my linker file if configured correctly:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Image type 3 (XIP with no CRC)&lt;/LI&gt;&lt;LI&gt;Load_address 0x10000000 (flash)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Also I checked for a possible ISP boot mode&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the BOOT_SRC bits9+10 are not set, which means the ISP pins decide&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;P0.4, P0.5, P0.6 have external pullups and always high, which means Auto boot sequence&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My program ist based on the "hello_world_qspi_xip" SDK sample. But I also tried to create i new project from scratch, which shows the same behaviour.&lt;/P&gt;&lt;P&gt;Do you have any other idea I could check?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 08:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1744313#M5175</guid>
      <dc:creator>ronwal</dc:creator>
      <dc:date>2023-10-23T08:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: XIP, program not starting on LPC54018J4M custom board</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1745764#M5179</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/145209"&gt;@ronwal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about use Flash driver:&amp;nbsp;LPC540xx_SPIFI_SFDP.cfx ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 08:23:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1745764#M5179</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-10-25T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: XIP, program not starting on LPC54018J4M custom board</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1745869#M5180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it, but it gave me the following EXTSPY driver error right away:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;ProgramPage (0x10000000, 0x2290, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 112 (0x70)&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I debug, why the MCU stops in Bootloader ROM area?&lt;/P&gt;&lt;P&gt;From my knowledge there could be many reasons for that, like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ISP pins&lt;/LI&gt;&lt;LI&gt;no valid Image found&lt;/LI&gt;&lt;LI&gt;watchdog timer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But where can I see, what caused the MCU to stop?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 14:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1745869#M5180</guid>
      <dc:creator>ronwal</dc:creator>
      <dc:date>2023-10-26T14:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: XIP, program not starting on LPC54018J4M custom board</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1748475#M5182</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide some more help because I am really stuck with this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I summarize my problem:&lt;/P&gt;&lt;P&gt;Setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;LPC&lt;SPAN&gt;LPC54018J4MET180, &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;MCU-Link debug probe, &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;hello_world XIP sample program&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Using the&amp;nbsp;LPC540xx_SPIFI_SFDP.cfx driver gives me the following error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ProgramPage (0x10000000, 0x2290, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 35 (0x23)&lt;BR /&gt;15: Target error from Commit Flash write: Ef(49): Flash driver operation gave error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;Using the&amp;nbsp;&amp;nbsp;LPC540xx_SPIFI_GENERIC.cfx flashing succeeds with no error. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even verify the flash with the GUI flash tool afterwards succeeds. After starting the debug session,t&lt;/SPAN&gt;&lt;SPAN&gt;he program hangs somewhere in BootRom area 0x03xxxxx with message &lt;EM&gt;"no debug information avaiable...". &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Checking the flash memory with the memory monitor shows all 0x0 at flash adress 0x10000000.&lt;/P&gt;&lt;P&gt;This means to me, that there was nothing written at all and that could be the reason why the program hangs at the bootloader, right?&lt;/P&gt;&lt;P&gt;But why did it say "writting succeeded"?&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 08:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1748475#M5182</guid>
      <dc:creator>ronwal</dc:creator>
      <dc:date>2023-10-30T08:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: XIP, program not starting on LPC54018J4M custom board</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1753565#M5186</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;After one week of investigating, I found the reason for my problem. Maybe I´ll help somebody...&lt;/P&gt;&lt;P&gt;The XIP image layout&amp;nbsp; was incorrect. The HEADER_OFFSET at 0x28 shall point to the HEADER_MARKER with i typical standard value of 0x160. But in my case I had to change it to 0x158.&lt;/P&gt;&lt;P&gt;After that the image could be loaded.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ronwal_0-1699367999885.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248824iE0AFD49049642B16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ronwal_0-1699367999885.png" alt="ronwal_0-1699367999885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 14:46:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/XIP-program-not-starting-on-LPC54018J4M-custom-board/m-p/1753565#M5186</guid>
      <dc:creator>ronwal</dc:creator>
      <dc:date>2023-11-07T14:46:52Z</dc:date>
    </item>
  </channel>
</rss>

