<?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>NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29605/nrf52832-in-hard-fault-state</link><description>Hi, 
 We have made a custom PCB using the NRF52832 chip. While it was working fine for a couple of days, it suddenly stopped working and went to a hard fault. We are not able to figure out the reason for this issue. 
 We have debugged the PCB and measured</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 08:59:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29605/nrf52832-in-hard-fault-state" /><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117628?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 08:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7de09b8a-6487-4014-a954-4fc8d5001b7e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Sounds like a faulty IC then. There could be several reasons:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Unfortunately, on rare occasions it happens that faulty ICs slip through the testing at the fabrication houses and reach our customers.&lt;/li&gt;
&lt;li&gt;The chip has been damaged by ESD.&lt;/li&gt;
&lt;li&gt;The chip has been damaged by over voltage.&lt;/li&gt;
&lt;li&gt;I suppose it could also be caused by bad soldering.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you find more faulty ICs, please open a support case in our official support portal,&lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;MyPage&lt;/a&gt;, and we will investigate further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117629?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 05:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53b83818-05a9-4c4a-af26-548b58376e80</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Hey Martin. We got the Nordic chip replaced today and the hard fault error is gone. The code is working fine as usual. We are still not sure what happened. Also, we measured the voltage at DEC1 and now it is coming out to be 1.1V instead of the previous 750mV. Could that be a reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117623?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 04:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a6fbdf4-3b4d-4c83-8e34-b0668e2282d1</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Yes Martin. We were running the same code in the Development Board for the past few months and it has been running smoothly. Even in this custom board, it ran fine for a couple of days only after which it gave a hard fault. It is because of this reason I have been saying that it is an hardware issue rather than FW.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117621?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 15:04:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d05531-5c4d-47af-8f9d-26501a0fea3e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Have you tried the exact same hex file on a development board? If that works it points towards a HW issue. If it doesn&amp;#39;t work it is probably related to FW.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117627?ContentTypeID=1</link><pubDate>Sun, 21 Jan 2018 01:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dec18b4-3ad8-4a91-b2eb-46c0b62396d5</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;no it doesn&amp;#39;t obviously mean anything of the sort. The fact the chip gets to hardfault (are you even sure it is by the way or is that another guess?) means it&amp;#39;s basically working. If the crystal wasn&amp;#39;t working it wouldn&amp;#39;t matter for the HF one (stays on the RC) and I doubt you&amp;#39;ve even got to the point of trying to enable the LF one or probably the HF one come to that.&lt;/p&gt;
&lt;p&gt;You need to actually debug the hardfault. You need to read the registers and you need to work back to find out why you have hardfaulted. Stop guessing and handwaving about bad hardware, hardfaults leave a trail behind them, follow it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117626?ContentTypeID=1</link><pubDate>Sat, 20 Jan 2018 04:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f8b6393-7292-4ba6-8312-5566566dd809</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Thanks RK for the answer. As I mentioned in my question as well, I am just initialising one GPIO pin which has a LED connected and toggling it in a while loop in the main function. The Nordic chip goes to a hard fault state even before initialising a GPIO pin. This obviously means that there is something wrong either in the chip or the crystal circuitry? Is this the correct assumption? I am even trying to read the FICR registers but as it enters main, nordic chip goes to a hard fault state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117622?ContentTypeID=1</link><pubDate>Sat, 20 Jan 2018 04:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:023cffea-4636-430c-b477-39a196522006</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Thanks Dave. As I mentioned in my question as well, I am just initialising one GPIO pin which has a LED connected and toggling it in a while loop in the main function. The Nordic chip goes to a hard fault state even before initialising a GPIO pin. This obviously means that there is something wrong either in the chip or the crystal circuitry?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117625?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2018 23:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d66b4992-093c-44df-9255-22556d123227</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;See my answer to your other (rather similar) question. If you have a reproducible hardfault you are very lucky because all you need to do is stop the board with a debugger, go look at the registers and stack and work your way backwards.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know where you got this bizarre &amp;#39;memory corruption&amp;#39; and &amp;#39;chip replaced&amp;#39; idea from. That&amp;#39;s the absolute least likely reason for hardfault.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 in Hard Fault State.</title><link>https://devzone.nordicsemi.com/thread/117624?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2018 18:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dfd0f53-795e-4953-bee3-0a0d7471257a</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;There are a variety of reason why hardfaults occur.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Most common in interrupt priority violations&lt;/li&gt;
&lt;li&gt;Referencing an uninitialized potiner&lt;/li&gt;
&lt;li&gt;Memory overruns&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you&amp;#39;re certain that your code is fine, id look into your crystal circutry.  Make sure they are designed correctly and initialized correctly in FW.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>