<?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>Softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30981/softdevice</link><description>Hi 
 For some reason I get stuck in the softdevice. I manage to capture the sequence of the addresses 
 J-Link&amp;gt;s 0001B028: DB 68 LDR R3, [R3, #+0x0C] J-Link&amp;gt;s 0001B02A: 18 47 BX R3 J-Link&amp;gt;s 000008C4: 01 4B LDR R3, [PC, #+0x04] J-Link&amp;gt;s 000008C6: 1B 68</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Apr 2018 07:06:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30981/softdevice" /><item><title>RE: Softdevice</title><link>https://devzone.nordicsemi.com/thread/129460?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 07:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c0d4865-0d45-4646-a456-6b4faf0f905c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;In debug mode: when you&amp;#39;re hitting a breakpoint, you&amp;#39;re halting the CPU, but not the peripherals running in the background. This means that all your timers, RTCs, UART, SPI, etc. are all still running and can potentially set events that leads to interrupts.&lt;/p&gt;
&lt;p&gt;This is what the softdevice does as well. it has it&amp;#39;s own timekeeping to ensure things happen in a certain order, and if the order is mixed up; the softdevice will thrown an assertion to the application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s quite a few threads on this subject already. Search for &amp;quot;debug softdevice&amp;quot; in the forum.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice</title><link>https://devzone.nordicsemi.com/thread/129156?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 13:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84ea57eb-5b07-4ae2-91f5-b20b7e620e05</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Maybe I&amp;#39;m missing something but... if we can&amp;#39;t step through the program how are we supposed to debug it?&lt;/p&gt;
&lt;p&gt;All we can do is set breakpoints and inspect the program state. It&amp;#39;s better than nothing but... this sounds like a big deal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice</title><link>https://devzone.nordicsemi.com/thread/122445?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 12:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0efd9730-419c-4438-8875-c26c22244ab5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;re stuck in the assert handling routine in the softdevice.&lt;/p&gt;
&lt;p&gt;Note that if you are in debug mode, and hit a breakpoint, single stepping through will cause a timing related assertion in the softdevice.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If this is an assertion that occurs when running the firmware as normal, you can add the define &amp;quot;DEBUG&amp;quot; to your project and recompile/flash to enable blocking assertions so that you can get more detailed information on what and where the issue occurs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>