<?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>CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61412/cli-example-runs-into-hard-fault-as-soon-as-started</link><description>Hi, 
 
 I&amp;#39;m trying to debug CLI example contained into nRF5_SDK_for_Thread_and_Zigbee_v4.0.0_dc7186b by flashing it on my nRF52840 DK (PCA10056). 
 First of all I&amp;#39;m using SES and I&amp;#39;d like to run project into examples\thread\cli\ftd\usb\pca10056\blank</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2020 08:59:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61412/cli-example-runs-into-hard-fault-as-soon-as-started" /><item><title>RE: CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/thread/250629?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 08:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c6786e3-b168-48f7-b340-f22000b2af24</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I have tested with a 2.0.0 DK now, but I still don&amp;#39;t see the same as you. Can you please test the attached .hex file?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to test it you need the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download" rel="noopener noreferrer" target="_blank"&gt;nRF Command Line Tools&lt;/a&gt;, and use the commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfjprog -e
nrfjprog --program thread_cli_ftd_usb_pca10056.hex --verify
nrfjprog --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Does that hex file work as expected?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c902614e407a47c88782721df6e2ed83/thread_5F00_cli_5F00_ftd_5F00_usb_5F00_pca10056.hex"&gt;devzone.nordicsemi.com/.../thread_5F00_cli_5F00_ftd_5F00_usb_5F00_pca10056.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/thread/250389?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 09:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b398f1-ebc4-47b2-a6e7-7cde0b5c711d</guid><dc:creator>Simone Lombardo</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;No way. I didn&amp;#39;t place any breakpoint.&lt;br /&gt;After building whole project, I&amp;#39;m going to debug and after clicking on Debug-&amp;gt;Go this window shows up:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Cattura1.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;II click on &amp;quot;Yes&amp;quot; and debug should start but it&amp;#39;s going on is the following:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Cattura2.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Of course, system continuously runs into Hard Faulr if I press Run or Reset.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot for your support,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Simone.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/thread/250378?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 08:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50a8bc3c-0e25-4c95-8954-5b8b4649b202</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Simone,&lt;/p&gt;
&lt;p&gt;Does this mean that you are breaking (breakpoints or pausing the execution) before it runs into the hardfault? Can you describe in detail what you do before you run into the hardfault, and a screenshot of what your hardfault looks like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/thread/250359?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 07:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d769f549-97ca-4a0e-9333-397523d574ea</guid><dc:creator>Simone Lombardo</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did it but it seems like some example could be debugged and others not.&amp;nbsp;&lt;br /&gt;I also tried with nRF SDK&amp;nbsp;v.16.0.0. in order to test some NFC examples and issue is the same: I&amp;#39;m able to debug some example but others runs into Hard Fault.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Simone.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/thread/250262?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 16:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b7c15a-25de-4f03-94cf-1863cfd15bb6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I didn&amp;#39;t know that version existed.&lt;/p&gt;
&lt;p&gt;Can you please try to unzip an unmodified version of the SDK and compile the project again? Perhaps you changed some common files from another project? It is at least worth a go if you have not tried it yet. In the meantime I&amp;#39;ll check if I can get hold of a 2.0.0 DK and replicate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/thread/250248?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 15:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f589633-22c4-44fc-b4ed-fd40b6be7e30</guid><dc:creator>Simone Lombardo</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;well what is written is:&lt;/p&gt;
&lt;p&gt;PCA10056&lt;br /&gt;2.0.0&lt;br /&gt;2020.2&lt;br /&gt;(s.n.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI example runs into Hard Fault as soon as started</title><link>https://devzone.nordicsemi.com/thread/250243?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 15:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94bfa913-8eab-4b7d-9af7-29d5ae1115a5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tested this example without any modifications&amp;nbsp;on the nRF52840 DK now, but it doesn&amp;#39;t hard fault (or run into any other errors either).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]After click on Debug, programming is performed and before starting debuggin I&amp;#39;m asked if I want to skip searching some .c files (I think because only objects files are provided).[/quote]
&lt;p&gt;&amp;nbsp;This pops up for me as well from time to time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What DK do you have? What version? What does it say on the line beneath PCA10056? On mine it says&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PCA10056&lt;/p&gt;
&lt;p&gt;1.1.0&lt;/p&gt;
&lt;p&gt;2019.42&lt;/p&gt;
&lt;p&gt;&amp;lt;serial number&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>