<?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 LPC5528 cannot halt processor in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042484#M3335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a project that uses the LPC5528 processor. When starting a debug session i encounter the following issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ErrorPopUp.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114170i4B0290026141C588/image-size/large?v=v2&amp;amp;px=999" role="button" title="ErrorPopUp.png" alt="ErrorPopUp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console output:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MCUXpresso IDE RedlinkMulti Driver v11.1 (Feb 24 2020 13:54:38 - crt_emu_cm_redlink build 11)&lt;BR /&gt;Found part description in XML file LPC5528_internal.xml&lt;BR /&gt;Reconnected to existing LinkServer process.&lt;BR /&gt;Using memory from core 0 after searching for a good core&lt;BR /&gt;debug interface type = Cortex-M33 (DAP DP ID 6BA02477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M33 (CPU ID 00000D21) 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: 00000D21. 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 E00FE000: CID B105100D PID 0000095000 ROM (type 0x1)&lt;BR /&gt;ROM 1 E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)&lt;BR /&gt;ROM 2 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined&lt;BR /&gt;ROM 2 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined&lt;BR /&gt;ROM 2 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined&lt;BR /&gt;ROM 2 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus&lt;BR /&gt;ROM 1 E0040000: CID B105900D PID 04000BBD21 CSt type 0x11 Trace Sink - TPIU&lt;BR /&gt;NXP: LPC5528&lt;BR /&gt;DAP stride is 1024 bytes (256 words)&lt;BR /&gt;Inspected v.2 On chip Flash memory using IAP lib LPC55xx.cfx&lt;BR /&gt;Image 'LPC55xx Feb 17 2020 13:57:00'&lt;BR /&gt;Opening flash driver LPC55xx.cfx&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;warning - watchpoint hit but none found set&lt;BR /&gt;Flash variant 'LPC55xx (512KB)' detected (512KB = 16*32K at 0x0)&lt;BR /&gt;Closing flash driver LPC55xx.cfx&lt;BR /&gt;Connected: was_reset=true. was_stopped=false&lt;BR /&gt;Awaiting telnet connection to port 3330 ...&lt;BR /&gt;GDB nonstop mode enabled&lt;BR /&gt;Opening flash driver LPC55xx.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Flash variant 'LPC55xx (512KB)' detected (512KB = 16*32K at 0x0)&lt;BR /&gt;Writing 23024 bytes to address 0x00000000 in Flash&lt;BR /&gt;Sectors written: 0, unchanged: 1, total: 1&lt;BR /&gt;Erased/Wrote sector 0-0 with 23024 bytes in 81msec&lt;BR /&gt;Closing flash driver LPC55xx.cfx&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Flash Program Summary: 23024 bytes in 0.08 seconds (277.58 KB/sec)&lt;BR /&gt;Starting execution using system reset and halt target with a stall address&lt;BR /&gt;Retask read watchpoint 1 at 0x50000040 to use for boot ROM stall&lt;BR /&gt;Waiting for target to stop...&lt;BR /&gt;Warning - processor did not halt - gave up waiting&lt;BR /&gt;flash - system reset failed - Ep(04). Cannot halt processor.&lt;BR /&gt;Target error from Commit Flash write: Ep(04). Cannot halt processor.&lt;BR /&gt;GDB stub (crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This prevents me from debugging the target on my desktop PC for almost&amp;nbsp; 90% of the time. There are some cases that it does start the debug session correctly. Unfortunately i could not find a solution to maken the debugging more stable on this system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When is use the same hardware target and debugger on my laptop it works flawless and debugging works like a charm.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my laptop i have version 11.1.0 of MCUXpresso installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my desktop i started with version 11.1.1. I also installed the older version 11.1.0 to see if this solved my issue but unfortunately i get the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both machines run on windows 10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I alsready tried to "Clean up debug" data but this did not resolve my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to solve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2020 08:12:55 GMT</pubDate>
    <dc:creator>fruitmans</dc:creator>
    <dc:date>2020-06-30T08:12:55Z</dc:date>
    <item>
      <title>LPC5528 cannot halt processor</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042484#M3335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a project that uses the LPC5528 processor. When starting a debug session i encounter the following issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ErrorPopUp.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114170i4B0290026141C588/image-size/large?v=v2&amp;amp;px=999" role="button" title="ErrorPopUp.png" alt="ErrorPopUp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console output:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MCUXpresso IDE RedlinkMulti Driver v11.1 (Feb 24 2020 13:54:38 - crt_emu_cm_redlink build 11)&lt;BR /&gt;Found part description in XML file LPC5528_internal.xml&lt;BR /&gt;Reconnected to existing LinkServer process.&lt;BR /&gt;Using memory from core 0 after searching for a good core&lt;BR /&gt;debug interface type = Cortex-M33 (DAP DP ID 6BA02477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M33 (CPU ID 00000D21) 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: 00000D21. 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 E00FE000: CID B105100D PID 0000095000 ROM (type 0x1)&lt;BR /&gt;ROM 1 E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)&lt;BR /&gt;ROM 2 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined&lt;BR /&gt;ROM 2 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined&lt;BR /&gt;ROM 2 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined&lt;BR /&gt;ROM 2 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus&lt;BR /&gt;ROM 1 E0040000: CID B105900D PID 04000BBD21 CSt type 0x11 Trace Sink - TPIU&lt;BR /&gt;NXP: LPC5528&lt;BR /&gt;DAP stride is 1024 bytes (256 words)&lt;BR /&gt;Inspected v.2 On chip Flash memory using IAP lib LPC55xx.cfx&lt;BR /&gt;Image 'LPC55xx Feb 17 2020 13:57:00'&lt;BR /&gt;Opening flash driver LPC55xx.cfx&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;warning - watchpoint hit but none found set&lt;BR /&gt;Flash variant 'LPC55xx (512KB)' detected (512KB = 16*32K at 0x0)&lt;BR /&gt;Closing flash driver LPC55xx.cfx&lt;BR /&gt;Connected: was_reset=true. was_stopped=false&lt;BR /&gt;Awaiting telnet connection to port 3330 ...&lt;BR /&gt;GDB nonstop mode enabled&lt;BR /&gt;Opening flash driver LPC55xx.cfx (already resident)&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;Flash variant 'LPC55xx (512KB)' detected (512KB = 16*32K at 0x0)&lt;BR /&gt;Writing 23024 bytes to address 0x00000000 in Flash&lt;BR /&gt;Sectors written: 0, unchanged: 1, total: 1&lt;BR /&gt;Erased/Wrote sector 0-0 with 23024 bytes in 81msec&lt;BR /&gt;Closing flash driver LPC55xx.cfx&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Flash Program Summary: 23024 bytes in 0.08 seconds (277.58 KB/sec)&lt;BR /&gt;Starting execution using system reset and halt target with a stall address&lt;BR /&gt;Retask read watchpoint 1 at 0x50000040 to use for boot ROM stall&lt;BR /&gt;Waiting for target to stop...&lt;BR /&gt;Warning - processor did not halt - gave up waiting&lt;BR /&gt;flash - system reset failed - Ep(04). Cannot halt processor.&lt;BR /&gt;Target error from Commit Flash write: Ep(04). Cannot halt processor.&lt;BR /&gt;GDB stub (crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This prevents me from debugging the target on my desktop PC for almost&amp;nbsp; 90% of the time. There are some cases that it does start the debug session correctly. Unfortunately i could not find a solution to maken the debugging more stable on this system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When is use the same hardware target and debugger on my laptop it works flawless and debugging works like a charm.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my laptop i have version 11.1.0 of MCUXpresso installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my desktop i started with version 11.1.1. I also installed the older version 11.1.0 to see if this solved my issue but unfortunately i get the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both machines run on windows 10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I alsready tried to "Clean up debug" data but this did not resolve my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to solve this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 08:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042484#M3335</guid>
      <dc:creator>fruitmans</dc:creator>
      <dc:date>2020-06-30T08:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 cannot halt processor</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042485#M3336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/fruitmans"&gt;fruitmans&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had this situation with MCUXpresso (as well as CodeWarrior) and there are a couple of things you can check.&amp;nbsp; You don't mention the programm/debugger that you are using, what are the circumstances and my experiences are Kinetis based but I would expect that the debug processes are very similar, if not identical.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure that the debugger has stopped from a previous debugging session instance?&amp;nbsp;&amp;nbsp;I found situations where both stop buttons in MCUXpresso were not both disabled (greyed out) after the previous debug session and when I tried a new debug session I got one similar to what you're getting - it seems like the indications that the programming operation occurred normally is not accurate which confuses the situation.&amp;nbsp; By clicking on the "Terminate All Debug Sessions" button the debugger is reset and you can restart debugging.&amp;nbsp; This is the easy case.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, if that doesn't work, open up&amp;nbsp;Windows Task Manager (Ctril-Alt-Delete) and select "DE.exe" in "Processes and click "Exit Process" (Windows 7) or "End Task": (Windows 10).&amp;nbsp; In this case, when you ended the last debugging session the GDB task didn't end.&amp;nbsp; It may not end and you have to exit out of MCUXpresso at which point it may end automatically or you have to try again to end it with Task Manager.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The worst case is that DE.exe will not end, requiring you to shut down the PC and start it back up before the debugger will work again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I work with Segger JLink Plus, P&amp;amp;E Multilink Universal and OpenSDA and I have seen these problems in all these programmers &lt;STRONG&gt;BUT&lt;/STRONG&gt; I should point out that generally when there is a problem it's because something extraordinary happened, ranging from pulling the USB cable from the programmer/debugger while debugging was still active or shorting something on the processor with a 'scope probe or (referencing a previous question from today)&amp;nbsp;passing EZ_CS_b&amp;nbsp;to an input or driver with&amp;nbsp;while&amp;nbsp;using the JTAG programmer/debuggers listed above.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put in this final caveat here because generally MCUXpresso is very reliable and you generally have to do something electrical and/or stupid to get it into a state where it refuses to restart a debugging session.&amp;nbsp; If you're not doing any of the things that I'm listing then you should be looking at your circuit for something that would cause the programmer/debugger to lock up.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, re-reading your question and one more thing I've discovered - if you're good with your laptop, what kind of USB cable are you using between the systems?&amp;nbsp; I've found that with my (Linux) desktop it won't work with a USB cable longer than 5' (1.5m) but I have three laptops (Lenovo - Windows 10, Acer Windows 7 and&amp;nbsp;HP Ubuntu 18.04) that work with 10' (3m) USB cables.&amp;nbsp; This is with my JLink Plus and OpenSDA (I haven't experimented with the Multilink Unversal).&amp;nbsp; I have no idea of what the (electrical) differences are between the laptops and the desktop, especially since the laptops are somewhat decrepit and the desktop is a fairly new and Xeon system/motherboard.&amp;nbsp; It probably sounds crazy, but try a shorter USB cable (3' or 1m or shorter) on your desktop.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 19:32:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042485#M3336</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2020-06-30T19:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 cannot halt processor</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042486#M3337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Myke,&lt;/P&gt;&lt;P&gt;Thank you for the replay and sorry for the delayed response. Ha had to wait for the momente that i could take the development board with me to my non functioning work station. As i said it some systems work fine and some do not...&lt;/P&gt;&lt;P&gt;For debugger is use the LPC-LINK2 which is usually working fine for me. How is you experience with different debuggers and debug session stability? Are there big differences?&lt;/P&gt;&lt;P&gt;I am sure that i stopt all debugging sessions and still encounter this issue during development. Even de use of the button "Clean up debug" in MCUXpresso doesn't help.&lt;/P&gt;&lt;P&gt;For the "DE.exe" there is no process active with this name. I scanned through all the tastks to check if there is any process that could be it but didn't find it. So i could not try this.&lt;/P&gt;&lt;P&gt;For the hardware relate issue indeed this can be the case but we use the same circuit compared to the development boad schematics. During these debugging sessions i did not use any "floating" measustment tools like scope probes. For all signals we want to measure we use fixed measurement connectors on this board. But even multiple power off/on cycles and system reboots did not solve the issue.&lt;/P&gt;&lt;P&gt;When i did the experiment why it was working on my laptop and not on my desktop i used all the same cables etc. I just plugged 1 usb cable which goes to a USB hub from my desktop back an forth. One thin i did not try is to connect the debugger directly to on of the desktops USB ports without the addition of a USB hub. I wil try this later this week and keep you posted on this. If you have any other thought please let me now.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Rik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 06:11:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042486#M3337</guid>
      <dc:creator>fruitmans</dc:creator>
      <dc:date>2020-07-13T06:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 cannot halt processor</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042487#M3338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Rik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen differences in debuggers - they're more pronounced in CW than in MCUXPresso but they're still there.&amp;nbsp; I find my Segger J-Link Plus works best and provides the fastest single stepping and TAD information updates (but is marginal with 10'/3m USB cables) and my P&amp;amp;E Multilink Universal is somewhat problematic but there's been a number of updates that seem to be making it more reliable.&amp;nbsp; The OpenSDA on Freedom &amp;amp; Tower boards seems to work fine in all cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've never found "Clean Up Debug" to do anything.&amp;nbsp; I'm not really sure what it's for.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you wiring&amp;nbsp;you board's power and how are your USB hub, desktop and laptop powered?&amp;nbsp; Are you connecting the laptop thorugh the USB hub?&amp;nbsp; I'm wondering if you have a ground issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how things work without the USB hub.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 18:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC5528-cannot-halt-processor/m-p/1042487#M3338</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2020-07-13T18:09:28Z</dc:date>
    </item>
  </channel>
</rss>

