<?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>Same codes and project file, but hardfault on other PCs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80043/same-codes-and-project-file-but-hardfault-on-other-pcs</link><description>Hello Devzome Users, 
 
 I have a problem with running my codes on other computers. The project runs on my PC very well which I coded original. 
 I would like to test it on other computers. I got always hardfault problem. If I want to debug it, I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Sep 2021 12:43:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80043/same-codes-and-project-file-but-hardfault-on-other-pcs" /><item><title>RE: Same codes and project file, but hardfault on other PCs</title><link>https://devzone.nordicsemi.com/thread/331512?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 12:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf466c8d-2eb9-448e-baf5-dd1b6081aff5</guid><dc:creator>it0406</dc:creator><description>&lt;p&gt;It&amp;nbsp;is just my example project, but based on a SDK example. I just added some lines for my work.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t try it with default SDK examples.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;it0406&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Same codes and project file, but hardfault on other PCs</title><link>https://devzone.nordicsemi.com/thread/331503?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 12:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40d9d0ef-cf7b-4277-b6b3-839b70aadd24</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I agree with &lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt;. If the stack is indeed okay, adding a hardfault handler of your own should help debugging here. Does default SDK examples also hardfault on this one computer or is it just your specific example project?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Same codes and project file, but hardfault on other PCs</title><link>https://devzone.nordicsemi.com/thread/331393?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 18:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5a48e02-9329-455f-8972-b9ea5a770deb</guid><dc:creator>it0406</dc:creator><description>&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="18935" url="~/f/nordic-q-a/80043/same-codes-and-project-file-but-hardfault-on-other-pcs/331362#331362"]Add your own&lt;code&gt;&lt;span class="nb"&gt; &lt;/span&gt;&lt;/code&gt;HardFault_Handler() to your code. This way the code won&amp;#39;t end up in the default Handler. Can help debugging if - and only if - the stack was still OK.[/quote]
&lt;p&gt;As I know, hardfault means&amp;nbsp;unrecoverable system failures.&lt;/p&gt;
&lt;p&gt;Can I ignore it just with a hardfault handler? Or do you mean some hardfault cases in the handler and should the debug be stopped in this handler?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="18935" url="~/f/nordic-q-a/80043/same-codes-and-project-file-but-hardfault-on-other-pcs/331362#331362"]The default handler for faults (and undefined interrupts) resides in thumb_crt0.s source file IIRC.[/quote]
&lt;p&gt;Should I modify something in the file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Same codes and project file, but hardfault on other PCs</title><link>https://devzone.nordicsemi.com/thread/331362?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912776f1-85a2-458a-92db-aae1f94a08d7</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Add your own&lt;code&gt;&lt;span class="nb"&gt; &lt;/span&gt;&lt;/code&gt;HardFault_Handler() to your code. This way the code won&amp;#39;t end up in the default Handler. Can help debugging if - and only if - the stack was still OK.&lt;/p&gt;
&lt;p&gt;The default handler for faults (and undefined interrupts) resides in thumb_crt0.s source file IIRC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>