<?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 LPC804 Debug fails.on the on board MCU-Link Pro in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Debug-fails-on-the-on-board-MCU-Link-Pro/m-p/1824541#M55605</link>
    <description>&lt;P&gt;Can't program or debug the LPC804 on board of a brand new MCU-Link Pro debugger.&lt;/P&gt;&lt;P&gt;I'm using LPC804 demo (LED PWM blinking) provided by NXP:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcu-link-pro-debug-probe:MCU-LINK-PRO" target="_blank"&gt;https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcu-link-pro-debug-probe:MCU-LINK-PRO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything is done as suggested in the community document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Explore-the-Features-of-MCU-Link-Pro/ta-p/1531013" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Explore-the-Features-of-MCU-Link-Pro/ta-p/1531013&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE v11.8.0 [Build 1165] [2023-07-26]&lt;/P&gt;&lt;P&gt;Compiling is not an issue. but I suspect the issue may be in the flash driver (the LPC80x_32.cfx) or the connection script both provided by NXP.&lt;/P&gt;&lt;P&gt;In this case I'm using the LPC8N04 Connect Script provided by the IDE. A hint of this is the output of the programming/debugging sequence (both fails please see the screenshots) as in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Executing flash operation 'Program' (Program file into flash: Debug/mculink_pro_lpc804.axf) - Sat Mar 09 09:34:55 ART 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.8 (Jul 12 2023 16:09:15 - 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 D:/Workshop/Sources/MCUXpresso/mculink_pro_lpc804/Debug\LPC804.xml&lt;BR /&gt;( 5) Remote configuration complete&lt;BR /&gt;Reconnected to existing LinkServer process.&lt;BR /&gt;============= SCRIPT: lpc8n04connect.scp =============&lt;BR /&gt;DpID = 0BC11477&lt;BR /&gt;Reset pin state: 01&lt;BR /&gt;DpID = 0BC11477&lt;BR /&gt;APID = 0x04770031&lt;BR /&gt;============= END SCRIPT =============================&lt;BR /&gt;Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V2.241 (NXP Semiconductors)&lt;BR /&gt;Serial Number: NTAI5XLMR5KL1&lt;BR /&gt;VID:PID: 1FC9:0143&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0143&amp;amp;mi_00#8&amp;amp;5187ccc&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;On debug connection - reset using system reset&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 0BC11477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M0+ (CPU ID 00000C60) on DAP AP 0&lt;BR /&gt;number of h/w breakpoints = 4&lt;BR /&gt;number of flash patches = 0&lt;BR /&gt;number of h/w watchpoints = 2&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BC11477. CpuID: 00000C60. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FF000: CID B105100D PID 04000BB4C0 ROM (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)&lt;BR /&gt;NXP: LPC804&lt;BR /&gt;DAP stride is 1024 bytes (256 words)&lt;BR /&gt;Inspected v.2 On-chip Flash Memory LPC80x_32.cfx&lt;BR /&gt;Image 'LPC80x (32K) Jul 25 2023 08:58:39'&lt;BR /&gt;( 65) Chip Setup Complete&lt;BR /&gt;Connected: was_reset=false. was_stopped=true&lt;BR /&gt;( 70) License Check Complete&lt;BR /&gt;Loading 'mculink_pro_lpc804.axf' ELF 0x00000000 len 0x2E68&lt;BR /&gt;Opening flash driver LPC80x_32.cfx&lt;BR /&gt;VECTRESET requested, but not supported on ARMv6-M CPUs. Using SOFTRESET instead.&lt;BR /&gt;Using SOFT reset to run the flash driver&lt;BR /&gt;Flash device supported (32KB = 32*1K at 0x0)&lt;BR /&gt;Writing 11880 bytes to address 0x00000000 in Flash&lt;BR /&gt;1 of 1 ( 0) Writing sectors 0-11 at 0x00000000 with 11880 bytes&lt;BR /&gt;( 0) at 00000000: 0 bytes - 0/11880&lt;BR /&gt;ProgramPage (0x0, 0x10000518, 0x80) status 0x1 - driver reported driver error - ONCHIP driver rc 10 - Source and destination data not equal&lt;BR /&gt;Sectors written: 12, unchanged: 0, total: 12&lt;BR /&gt;Closing flash driver LPC80x_32.cfx&lt;BR /&gt;(100) Writing Flash ended with an error.&lt;BR /&gt;File 'mculink_pro_lpc804.axf' load failure: Ef(49): Flash driver operation gave error.&lt;BR /&gt;(100) Target Connection Failed&lt;BR /&gt;Unable to perform operation!&lt;BR /&gt;Command failed with exit code 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Mar 2024 13:12:52 GMT</pubDate>
    <dc:creator>sagonzal</dc:creator>
    <dc:date>2024-03-09T13:12:52Z</dc:date>
    <item>
      <title>LPC804 Debug fails.on the on board MCU-Link Pro</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Debug-fails-on-the-on-board-MCU-Link-Pro/m-p/1824541#M55605</link>
      <description>&lt;P&gt;Can't program or debug the LPC804 on board of a brand new MCU-Link Pro debugger.&lt;/P&gt;&lt;P&gt;I'm using LPC804 demo (LED PWM blinking) provided by NXP:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcu-link-pro-debug-probe:MCU-LINK-PRO" target="_blank"&gt;https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcu-link-pro-debug-probe:MCU-LINK-PRO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Everything is done as suggested in the community document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Explore-the-Features-of-MCU-Link-Pro/ta-p/1531013" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Explore-the-Features-of-MCU-Link-Pro/ta-p/1531013&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE v11.8.0 [Build 1165] [2023-07-26]&lt;/P&gt;&lt;P&gt;Compiling is not an issue. but I suspect the issue may be in the flash driver (the LPC80x_32.cfx) or the connection script both provided by NXP.&lt;/P&gt;&lt;P&gt;In this case I'm using the LPC8N04 Connect Script provided by the IDE. A hint of this is the output of the programming/debugging sequence (both fails please see the screenshots) as in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Executing flash operation 'Program' (Program file into flash: Debug/mculink_pro_lpc804.axf) - Sat Mar 09 09:34:55 ART 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.8 (Jul 12 2023 16:09:15 - 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 D:/Workshop/Sources/MCUXpresso/mculink_pro_lpc804/Debug\LPC804.xml&lt;BR /&gt;( 5) Remote configuration complete&lt;BR /&gt;Reconnected to existing LinkServer process.&lt;BR /&gt;============= SCRIPT: lpc8n04connect.scp =============&lt;BR /&gt;DpID = 0BC11477&lt;BR /&gt;Reset pin state: 01&lt;BR /&gt;DpID = 0BC11477&lt;BR /&gt;APID = 0x04770031&lt;BR /&gt;============= END SCRIPT =============================&lt;BR /&gt;Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V2.241 (NXP Semiconductors)&lt;BR /&gt;Serial Number: NTAI5XLMR5KL1&lt;BR /&gt;VID:PID: 1FC9:0143&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0143&amp;amp;mi_00#8&amp;amp;5187ccc&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;On debug connection - reset using system reset&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 0BC11477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M0+ (CPU ID 00000C60) on DAP AP 0&lt;BR /&gt;number of h/w breakpoints = 4&lt;BR /&gt;number of flash patches = 0&lt;BR /&gt;number of h/w watchpoints = 2&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BC11477. CpuID: 00000C60. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FF000: CID B105100D PID 04000BB4C0 ROM (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)&lt;BR /&gt;NXP: LPC804&lt;BR /&gt;DAP stride is 1024 bytes (256 words)&lt;BR /&gt;Inspected v.2 On-chip Flash Memory LPC80x_32.cfx&lt;BR /&gt;Image 'LPC80x (32K) Jul 25 2023 08:58:39'&lt;BR /&gt;( 65) Chip Setup Complete&lt;BR /&gt;Connected: was_reset=false. was_stopped=true&lt;BR /&gt;( 70) License Check Complete&lt;BR /&gt;Loading 'mculink_pro_lpc804.axf' ELF 0x00000000 len 0x2E68&lt;BR /&gt;Opening flash driver LPC80x_32.cfx&lt;BR /&gt;VECTRESET requested, but not supported on ARMv6-M CPUs. Using SOFTRESET instead.&lt;BR /&gt;Using SOFT reset to run the flash driver&lt;BR /&gt;Flash device supported (32KB = 32*1K at 0x0)&lt;BR /&gt;Writing 11880 bytes to address 0x00000000 in Flash&lt;BR /&gt;1 of 1 ( 0) Writing sectors 0-11 at 0x00000000 with 11880 bytes&lt;BR /&gt;( 0) at 00000000: 0 bytes - 0/11880&lt;BR /&gt;ProgramPage (0x0, 0x10000518, 0x80) status 0x1 - driver reported driver error - ONCHIP driver rc 10 - Source and destination data not equal&lt;BR /&gt;Sectors written: 12, unchanged: 0, total: 12&lt;BR /&gt;Closing flash driver LPC80x_32.cfx&lt;BR /&gt;(100) Writing Flash ended with an error.&lt;BR /&gt;File 'mculink_pro_lpc804.axf' load failure: Ef(49): Flash driver operation gave error.&lt;BR /&gt;(100) Target Connection Failed&lt;BR /&gt;Unable to perform operation!&lt;BR /&gt;Command failed with exit code 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 13:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Debug-fails-on-the-on-board-MCU-Link-Pro/m-p/1824541#M55605</guid>
      <dc:creator>sagonzal</dc:creator>
      <dc:date>2024-03-09T13:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 Debug fails.on the on board MCU-Link Pro</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Debug-fails-on-the-on-board-MCU-Link-Pro/m-p/1824645#M55607</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have tested on my LPCXPResso804(OM40001) board, it is okay to download application code to flash with the default LPC80x_32.cfx.&lt;/P&gt;
&lt;P&gt;Pls change another board and have a try.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1710121181934.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267415iE0AF3BAFE0DD9F70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1710121181934.png" alt="xiangjun_rong_0-1710121181934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 01:41:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Debug-fails-on-the-on-board-MCU-Link-Pro/m-p/1824645#M55607</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-03-11T01:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 Debug fails.on the on board MCU-Link Pro</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Debug-fails-on-the-on-board-MCU-Link-Pro/m-p/1826416#M55629</link>
      <description>&lt;P&gt;Thank you XiangJun Rong for your prompt reply.&lt;/P&gt;&lt;P&gt;Sadly, this seems not to apply to the 804 device on the MCU link Pro since is not flashing the device there; as you can see from my outputs.&lt;/P&gt;&lt;P&gt;Oddly, it is mass erasing it, but not programming:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;Executing flash operation 'Erase' (Erase flash) - Tue Mar 12 13:08:30 ART 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 D:/Workshop/Sources/MCUXpresso/lpcxpresso804_led_blinky_TEST_1/Debug\LPC804.xml&lt;BR /&gt;( 5) Remote configuration complete&lt;BR /&gt;Reconnected to existing LinkServer process.&lt;BR /&gt;============= SCRIPT: lpc8n04connect.scp =============&lt;BR /&gt;DpID = 0BC11477&lt;BR /&gt;Reset pin state: 01&lt;BR /&gt;DpID = 0BC11477&lt;BR /&gt;APID = 0x04770031&lt;BR /&gt;============= END SCRIPT =============================&lt;BR /&gt;Probe Firmware: MCU-LINK Pro (r0CF) CMSIS-DAP V2.241 (NXP Semiconductors)&lt;BR /&gt;Serial Number: NTAI5XLMR5KL1&lt;BR /&gt;VID:PID: 1FC9:0143&lt;BR /&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0143&amp;amp;mi_00#8&amp;amp;39a77476&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 0BC11477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M0+ (CPU ID 00000C60) on DAP AP 0&lt;BR /&gt;number of h/w breakpoints = 4&lt;BR /&gt;number of flash patches = 0&lt;BR /&gt;number of h/w watchpoints = 2&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BC11477. CpuID: 00000C60. 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 E00FF000: CID B105100D PID 04000BB4C0 ROM (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)&lt;BR /&gt;NXP: LPC804&lt;BR /&gt;DAP stride is 1024 bytes (256 words)&lt;BR /&gt;Inspected v.2 On-chip Flash Memory LPC80x_32.cfx&lt;BR /&gt;Image 'LPC80x (32K) Dec 12 2023 17:10:52'&lt;BR /&gt;( 65) Chip Setup Complete&lt;BR /&gt;Connected: was_reset=true. was_stopped=true&lt;BR /&gt;( 70) License Check Complete&lt;BR /&gt;Opening flash driver LPC80x_32.cfx&lt;BR /&gt;VECTRESET requested, but not supported on ARMv6-M CPUs. Using SOFTRESET instead.&lt;BR /&gt;Using SOFT reset to run the flash driver&lt;BR /&gt;Flash device supported (32KB = 32*1K at 0x0)&lt;BR /&gt;Mass Erase flash at 0x0&lt;BR /&gt;Closing flash driver LPC80x_32.cfx&lt;BR /&gt;MassErase completed (in 639ms&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;There is no way I can program/debug the LPC804 on that particular board.&lt;/P&gt;&lt;P&gt;I did try IDE 11.9 and double check the FLASH driver and create a new project "hello world" using the SDK as you can check in my screenshots. No change whatsoever.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 23:27:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Debug-fails-on-the-on-board-MCU-Link-Pro/m-p/1826416#M55629</guid>
      <dc:creator>sagonzal</dc:creator>
      <dc:date>2024-03-12T23:27:28Z</dc:date>
    </item>
  </channel>
</rss>

