<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Stuck in &amp;quot;Hard fault Debug event&amp;quot; after debug session</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125239/stuck-in-hard-fault-debug-event-after-debug-session</link><description>Hello, 
 
 I encountered a strange behaviour on a nrf52832 : - I flash a a debug firmware (with debug optim in build config) : I can run debugger and add breakpoints - I stop debugger, switch to normal build (without debug optim) and flash - When program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Jan 2026 08:55:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125239/stuck-in-hard-fault-debug-event-after-debug-session" /><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/558966?ContentTypeID=1</link><pubDate>Mon, 19 Jan 2026 08:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb4cf61-75cd-4c2f-8255-784b954f3248</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/nick_5f00_bike"&gt;nick_bike&lt;/a&gt;&amp;nbsp; , thank you for sharing your findings! I think we may be able to avoid or mitigate this problem in the extension. I will relay this to the team.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/558954?ContentTypeID=1</link><pubDate>Mon, 19 Jan 2026 08:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ae1393f-c0a7-441f-91bd-a27a40f1570a</guid><dc:creator>vincent_itk</dc:creator><description>&lt;p&gt;If you can&amp;#39;t remove battery, maybe you can erase or recover the DUT before trying to debug again ?&lt;/p&gt;
&lt;p&gt;You should consider further upgrading your DUT with a removable or at least disconnectable power source to be able to power cycle it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/558935?ContentTypeID=1</link><pubDate>Sun, 18 Jan 2026 00:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c70d8d70-11bd-4afc-930a-b529f487ae72</guid><dc:creator>nick_bike</dc:creator><description>&lt;p&gt;I&amp;#39;m also having ghost debug events but can&amp;#39;t power cycle as the battery is soldered on the DUT. Solution appears to be to enter debug mode and run the code, at which point it&amp;#39;ll stop on one of your debug lines - but you won&amp;#39;t see the breakpoint as active. Enable the breakpoint on the line, run code again, observe it stops on the same line. Delete breakpoint. Observe it doesn&amp;#39;t stop on that line - it might stop on another, which means you have multiple ghost breakpoints. Continue until the code runs without breakpoints. Then exit debug gracefully and reflash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/553669?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 12:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d94c70f3-de10-41c7-90ea-419b6309c342</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for the update. It&amp;#39;s good to have a workaround for this. I will try to find the root cause for this if I find a way to reproduce this on my end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/553571?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2025 14:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3641e9ca-1653-4cb3-85b9-a46232e73350</guid><dc:creator>vincent_itk</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Got the same behaviour and power-cycle the board make it working properly.&lt;/p&gt;
&lt;p&gt;I was able to get rid of the hard this way.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/552585?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2025 06:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf06e441-9877-401b-a644-233cdedeea50</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you. Yes, it would be good to know how to reproduce this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/552539?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 16:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a60311c-eb1c-4125-b706-e79034607156</guid><dc:creator>vincent_itk</dc:creator><description>&lt;p&gt;Thanks for the tip.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Gonna try it when the case occurs again. Will let you know in this thread.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stuck in "Hard fault Debug event" after debug session</title><link>https://devzone.nordicsemi.com/thread/552527?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 15:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89fcb6d7-12a2-4b7d-b03e-6ee7eb2fa054</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I need to investigate this to understand why&amp;nbsp;this fault happens. As a test, please try to power-cycle the board (+ disconnect and re-connect debug probe if you are using an external one) and see if this clears the breakpoint at this address.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>