<?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>Hard fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58159/hard-fault</link><description>Hi, 
 I&amp;#39;m working on a project using a custom pcb with a 52832 chip. It has worked good for several months, but I got a Hard Fault during flashing today. Flashed it 3 times before doing a &amp;quot;erase all&amp;quot; in SEGGER. Next time I flashed it, it fails to run</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Feb 2020 13:50:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58159/hard-fault" /><item><title>RE: Hard fault</title><link>https://devzone.nordicsemi.com/thread/236573?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 13:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e2a38e2-e14e-47a2-ace1-b032b34ff7d9</guid><dc:creator>Steri</dc:creator><description>&lt;p&gt;Yes, I will, thanks for all help so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault</title><link>https://devzone.nordicsemi.com/thread/236446?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 08:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ac7eb2-7bd4-4c58-b5df-55534e6df6f7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;most likely it seems like some floating or shorted wires. Please come back to us if you can reproduce it and we will try to figure out from there.&lt;/p&gt;
&lt;p&gt;In any case double checks the schematics and connections of your kits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault</title><link>https://devzone.nordicsemi.com/thread/236344?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 16:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dec1cc7f-0143-47ab-ba8b-315e690b27e1</guid><dc:creator>Steri</dc:creator><description>&lt;p&gt;I tried to reproduce the hard fault today, but it works like before now. I am not sure what caused the hard fault problems. The most likely explanation is that some of the wires or connectors were bad and made some weird connection. When I was debugging it seemed like it stopped around the initialization of the IMU which is connected to a I2C bus, but I measured that it was no shorting on the bus while it failed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault</title><link>https://devzone.nordicsemi.com/thread/236147?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57543d80-026f-4c5f-b4a7-fa2f47dfc972</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Steri,&lt;/p&gt;
&lt;p&gt;I took this case, since it seems a bit interesting.&lt;/p&gt;
&lt;p&gt;It seems very strange that you have not changed the code and the app starting failing randomly. And disconnecting some external PCB and sensors made it work. Can you be absolutely sure if it was the external PCB&amp;#39;s and sensors that caused it by connecting them back and see if it causes the fault.&lt;/p&gt;
&lt;p&gt;We need to get a direction to debug here and based on the behavior of the app that you mentioned, it seems very confusing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault</title><link>https://devzone.nordicsemi.com/thread/236096?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 22:37:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b97ff2ce-8db3-49e8-9ea5-7776cd94be75</guid><dc:creator>Steri</dc:creator><description>&lt;p&gt;In some strange way the system started working again and I dont know why. Disconnected some external pcb&amp;#39;s and sensors and&amp;nbsp; ran a blinky example with no faults. Connected it back up and flashed the original software and it runs like before. Could some bad connections or shortings cause this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault</title><link>https://devzone.nordicsemi.com/thread/236021?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 14:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce48b8b1-4068-4ce5-8b83-b86e27d4fc08</guid><dc:creator>Steri</dc:creator><description>&lt;p&gt;I tried again today, but now it says that the fault occurs at 0x2A8E2. Yes, it seems like the last bit of the PSR is always 0xE. The system is running freeRTOS.&lt;/p&gt;
&lt;p&gt;I noticed that some of the prints from nrfx_ppi is cut and it is only printing some of the last characters.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/DebugTerminalLeitheKode.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hard fault</title><link>https://devzone.nordicsemi.com/thread/235940?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 12:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6570ee4c-80ed-4802-80eb-2a345c08a866</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Arild,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see you have already included the hardfault handling library, which is a good start. The log indicates that the fault occurred at address 0x2a912 (is unaligned) and that this happened&amp;nbsp;while being inside the PendSV_IRQn interrupt.&amp;nbsp; Have you tried to repeat this to see if it always triggered in this interrupt context (ie last byte of PSR==0xe)? Also, do you have an RTOS that uses the&amp;nbsp;&lt;span&gt;PendSV_IRQn, or is it something else?&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>