<?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>HardFault Handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127040/hardfault-handler</link><description>I am dealing with a HardFault occuring in my code, and I am unable to trace the error. The output when the HardFault occurs is &amp;lt;error&amp;gt; hardfault: HARD FAULT at 0xD0D0D02A &amp;lt;error&amp;gt; hardfault: R0: 0x20007A8C R1: 0x00000000 R2: 0x00000000 R3: 0x20007ACF </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Feb 2026 16:27:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127040/hardfault-handler" /><item><title>RE: HardFault Handler</title><link>https://devzone.nordicsemi.com/thread/561389?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 16:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4e5007e-13d5-47c2-a139-c7ad5372e867</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;Global Memory&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HardFault Handler</title><link>https://devzone.nordicsemi.com/thread/561388?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 16:25:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cadc0486-198a-4644-b39b-dbdd7e8d805c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;Great to hear! Was this buffer on the stack or in static (global) memory?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HardFault Handler</title><link>https://devzone.nordicsemi.com/thread/561387?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 16:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82b77f79-2bc5-4e22-aedb-750d615517b6</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;Found a buffer overflow. Thanks guys!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HardFault Handler</title><link>https://devzone.nordicsemi.com/thread/561386?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 16:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e0e87b-5721-4e07-90f2-38e72bfd77bc</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="116423" url="~/f/nordic-q-a/127040/hardfault-handler/561380"]I enter the LR address (&lt;span&gt;0x00044343)&lt;/span&gt; into the memory search and my Segger Embedded Studio crashes.&amp;nbsp;[/quote]
&lt;p&gt;That sounds like a bug in Segger embedded studio. Not sure what version you are using, but I haven&amp;#39;t experienced this&amp;nbsp;myself.&lt;/p&gt;
[quote userid="18935" url="~/f/nordic-q-a/127040/hardfault-handler/561381"]Does not mean much. Stack based buffer overflow can also destroy the LR saved on the stack - we have no idea if that value was vaild or not.[/quote]
&lt;p&gt;&lt;span&gt;I didn&amp;#39;t suspect a stack buffer overrun in this case because it&amp;#39;s only the stacked PC value that is obviously corrupted, so I think checking the LR or inspecting the full call stack is a good first step.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HardFault Handler</title><link>https://devzone.nordicsemi.com/thread/561381?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 15:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df2c753-6288-45e9-addc-38bcfb488484</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Does not mean much. Stack based buffer overflow can also destroy the LR saved on the stack - we have no idea if that value was vaild or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HardFault Handler</title><link>https://devzone.nordicsemi.com/thread/561380?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 15:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb28140c-b822-4157-aec7-8a89af012a23</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;I enter the LR address (&lt;span&gt;0x00044343)&lt;/span&gt; into the memory search and my Segger Embedded Studio crashes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HardFault Handler</title><link>https://devzone.nordicsemi.com/thread/561317?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 08:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9883a1e8-e683-4bae-bafe-540c491575b5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, the PC address explains why the fault exception was raised. Did you try looking at the stack trace to trace back to where the error occurred? You can also check the LR address. Hopefully, that will show where the branch to this address was made. It&amp;#39;s possible that a corrupted function pointer is being called.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>