<?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>DFU Example hardfaults</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18041/dfu-example-hardfaults</link><description>After spending substantial time without luck I will drop my question here. 
 Setup 
 
 nRF5_SDK_12.1.0_0d23e2a -&amp;gt; bootloader_secure debug target 
 nRF51 &amp;amp; nRF52 
 IAR 7.60.2 
 nRFgo Studio 1.21.1.3 
 Segger 6.10m 
 Tried SD s132_nrf52_3.0.0_softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Nov 2016 09:23:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18041/dfu-example-hardfaults" /><item><title>RE: DFU Example hardfaults</title><link>https://devzone.nordicsemi.com/thread/69538?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 09:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f7d1426-a89d-4c11-b485-8f4552672ed7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Joep,&lt;/p&gt;
&lt;p&gt;when the softdevice is enabled and there is BLE activity then it is difficult to debug an application since the softdevice interrupts have the highest priority. Thus, when a softdevice interrupt triggers the real-time requirements will be broken by the breakpoint you set in your application, it will assert immediately and this is an unrecoverable fault unless you reset chip.&lt;/p&gt;
&lt;p&gt;It is possible to set the PRIMASK bit, which allows you to debug until the next sd_ - function call, you can read more about it in the posts I have linked to below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/1489/can-i-debug-ble-program/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/53488/application-debug-with-softdevice/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Example hardfaults</title><link>https://devzone.nordicsemi.com/thread/69536?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 11:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d54d1e-51c8-46b6-a515-2d269d7d4517</guid><dc:creator>Joep</dc:creator><description>&lt;p&gt;That is going back 10y in time... When we debug an application not using a bootloader we can debug w/o problems, also using the Softdevice. Ofcourse stopping the program while SD is busy may cause communication issues due to timeouts, but hardfaults?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Example hardfaults</title><link>https://devzone.nordicsemi.com/thread/69535?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 10:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fbcd2fa-f7fe-471c-a1c2-9961d1a19c5b</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;RTT debug output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Example hardfaults</title><link>https://devzone.nordicsemi.com/thread/69534?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 10:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcac7459-2bf2-4d4a-a0b0-1d35dbcfe9dc</guid><dc:creator>Joep</dc:creator><description>&lt;p&gt;Thanks for your answer Alex, but how on earth I would debug a program then???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Example hardfaults</title><link>https://devzone.nordicsemi.com/thread/69537?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 09:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2b30ac6-bd1f-47bf-89f5-89da9d01e982</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;You can&amp;#39;t run after break if SD started. It is how it works. So if you put break point before SD started you can continue without hard fault. After SD started it is impossible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>