<?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>nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21184/nrf52-sdk12-2-fails-softdevice_handler_init-when-debugging</link><description>Trying to get the debugger working with Eclipse on SDK 12.2 using the nrf52832. Using the ble_app_hrs example, I can flash the application and the &amp;quot;Nordic HRM&amp;quot; device shows up on my phone. However if I try to debug the application, I end up in the app_error_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2017 15:20:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21184/nrf52-sdk12-2-fails-softdevice_handler_init-when-debugging" /><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82904?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 15:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df65015f-ca8f-4c23-a26b-b414ab86f93c</guid><dc:creator>jcormier</dc:creator><description>&lt;p&gt;Understood.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82903?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 11:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9230c646-27f7-4e10-9439-118cc8620b6a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am afraid that I do not have any ideas to why this is an issue or any possible solution. My suggestion is that you put a link to this question and a small decription of the issue  in the comment section of the &lt;a href="https://devzone.nordicsemi.com/tutorials/7"&gt;Eclipse Tutorial&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82902?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 14:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf6c2da0-6354-45c9-8986-eab25553e140</guid><dc:creator>jcormier</dc:creator><description>&lt;p&gt;I&amp;#39;ve continued to use the no &amp;quot;Load Executable&amp;quot;.  If I re-enable it then the sd_softdevice_enable starts failing again.  Let me know if there are any tests you want me to run.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82895?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 14:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9dcee7-8c8b-4133-bb9b-64638e052398</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@jcormier: I apologize for the late reply. I have not been able to reproduce this. Have you made any progress?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82899?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 15:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be691c47-1b47-4ce6-a6a4-3c5b193b9d5b</guid><dc:creator>jcormier</dc:creator><description>&lt;p&gt;Note that this is running on Eclipse Mars on Ubuntu 16.04&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82898?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 14:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b71e28d-342d-46cd-996d-f8fb8882e400</guid><dc:creator>jcormier</dc:creator><description>&lt;p&gt;@bjorn-spockeli. Agreed I found no mention of it myself, just stumbled upon it when i was trying to debug an already running unit...  It seems odd though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82897?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 14:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ddfe2a-65c8-4a53-bbac-a78eb0f0e717</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hmm, cant find any reference to that in our &lt;a href="https://devzone.nordicsemi.com/tutorials/7/"&gt;tutorial&lt;/a&gt;, but I guess it will work if you manually flash the device before you start the debugging session.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82901?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 12:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd86d84-ae83-43b2-9bad-0cbeb0215ebb</guid><dc:creator>jcormier</dc:creator><description>&lt;p&gt;I was just playing around with settings, and if I edit debug configurations, go to Startup tab, and uncheck &amp;quot;Load executable&amp;quot;. sd_softdevice_enable now returns 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82900?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 12:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d426d1fa-542e-4212-8067-21293774f315</guid><dc:creator>jcormier</dc:creator><description>&lt;p&gt;Yes the error code returned is 8 from sd_softdevice_enable().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 SDK12.2 fails SOFTDEVICE_HANDLER_INIT when debugging</title><link>https://devzone.nordicsemi.com/thread/82896?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 06:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d6c8745-7a62-48fa-a998-0f1132edebf9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Error code 8 is NRF_ERROR_INVALID_STATE  Can you step into softdevice_handler_init in softdevice_handler.c and place a breakpoint after&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_softdevice_enable(p_clock_lf_cfg, softdevice_fault_handler);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;e.g. at  &lt;code&gt;if (err_code != NRF_SUCCESS)&lt;/code&gt;, and check the error code to verify that this is the function that returns NRF_ERROR_INVALID_STATE.&lt;/p&gt;
&lt;p&gt;Keep in mind that you cannot step through a sd_-call or after you have enabled the Softedevice as this vil halt the CPU and cause the SoftDevice to assert since this breaks its real-time requirements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>