<?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>sd_softdevice_enable returns nothing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81592/sd_softdevice_enable-returns-nothing</link><description>Hi Guys, 
 I know there are a lot if topicks about issue with &amp;quot;sd_softdevice_enable&amp;quot;. I read them all and nothing help me. I&amp;#39;m using Eclipse IDE. 
 Im using a nRF52840-DK, pca10056 
 First I program the softdevice (S140) using nRFgo Studio and then debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 14 Nov 2021 16:00:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81592/sd_softdevice_enable-returns-nothing" /><item><title>RE: sd_softdevice_enable returns nothing</title><link>https://devzone.nordicsemi.com/thread/338882?ContentTypeID=1</link><pubDate>Sun, 14 Nov 2021 16:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88114ee0-0bf1-4487-b0e1-96eaf09272b2</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="ArshKhan"]Could it be that I also have to program the softdevice when debugging?[/quote]
&lt;p&gt;Programming the SoftDevice from before is no problem, as long as it (or parts of it) is not deleted when you program/start debugging the application.&lt;/p&gt;
&lt;p&gt;I am not familiar with using Eclipse as IDE in this context, and that is highly configurable so I cannot say how this works on your end or how you have configured it. One thing which sometimes cause problems when using unsupported IDEs / debuggers is that the default configuration is sometimes to start execution at the start address of the application, and not address 0. Could that be the case here? it is key that execution starts form address 0, to initialize the MBR and SoftDevice, even though your app starts at a different address (right after the SoftDevice).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_softdevice_enable returns nothing</title><link>https://devzone.nordicsemi.com/thread/338866?ContentTypeID=1</link><pubDate>Sat, 13 Nov 2021 06:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4244914b-f4a2-444f-ac0a-15792636b418</guid><dc:creator>ArshKhan</dc:creator><description>&lt;p&gt;I have placed multiple breakpoints to get more info but the code just doesn&amp;#39;t go pass&amp;nbsp;&lt;span&gt;sd_softdevice_enable(), the just &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;restarts and&amp;nbsp;gets back to&amp;nbsp;ble_stack_init()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_11_2D00_13-120526.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could it be that I also have to program the softdevice when debugging? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or is it okay to just do it before?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_softdevice_enable returns nothing</title><link>https://devzone.nordicsemi.com/thread/338809?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 13:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b9e47e2-41ba-4519-af5c-5c901bcc7a1e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The typical reason for&amp;nbsp;&lt;span&gt;sd_softdevice_enable() should normally always return except if you configure it to use a 32.768 kHz crystal but that is not present on the board. As you write that you use a DK that should not be a problem, though, as all DKs have the crystal.&lt;/span&gt;&lt;/p&gt;
[quote user=""]And this is where it just restarts[/quote]
&lt;p&gt;&lt;span&gt;Do you men that the device resets, and not just that sd_softdevice_enable() never returns? If so, &lt;em&gt;something&lt;/em&gt; must be causing the reset. Do you for instance have an error or assert handler that runs, which does a soft reset?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PS: You can upload images here using Insert -&amp;gt; Image/video/file, so there is no need to use an external service for that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>