<?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 7.0/7.1 hangs on sd_softdevice_enable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4132/softdevice-7-0-7-1-hangs-on-sd_softdevice_enable</link><description>I am using Eclipse Kepler, gcc and the nrf51 plugin ( sourceforge.net/.../) on OS X. I had an application that worked fine with SDK 5.2 and S110 Softdevice 6.0. I had been building multiple applications for months with no problems. 
 Yesterday, I tried</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Oct 2014 15:46:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4132/softdevice-7-0-7-1-hangs-on-sd_softdevice_enable" /><item><title>RE: Softdevice 7.0/7.1 hangs on sd_softdevice_enable</title><link>https://devzone.nordicsemi.com/thread/14787?ContentTypeID=1</link><pubDate>Fri, 17 Oct 2014 15:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a48fe39c-f3ce-4064-9c60-edaee9a347fd</guid><dc:creator>eric ely</dc:creator><description>&lt;p&gt;I am still having other issues with SD7, I am not getting the BLE_EVT_TX_COMPLETE event anymore either which breaks my custom service. However, this question is answered and so I will open another thread for my other problems.&lt;/p&gt;
&lt;p&gt;I must say, upgrading from one version to another is quite aggravating...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice 7.0/7.1 hangs on sd_softdevice_enable</title><link>https://devzone.nordicsemi.com/thread/14786?ContentTypeID=1</link><pubDate>Fri, 17 Oct 2014 04:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22b1e19b-44ac-4bed-9457-a8f9cd5f81c2</guid><dc:creator>eric ely</dc:creator><description>&lt;p&gt;No, I can&amp;#39;t seem to set a breakpoint anywhere. No matter what I do, it falls into this trap if I have the debugger attached.&lt;/p&gt;
&lt;p&gt;I will try more tomorrow, at least my code can run again. Thanks for all your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice 7.0/7.1 hangs on sd_softdevice_enable</title><link>https://devzone.nordicsemi.com/thread/14785?ContentTypeID=1</link><pubDate>Fri, 17 Oct 2014 03:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96dffe69-c3f4-4b9c-babe-287d8500791f</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Were you able to break at the beginning of main or in the Reset function at all ? There is a different between SD6 and SD7.  It crashes when I first tried SD7 moving from SD6.  So I compared the sample code between both versions and found that init is different. Also bond manage is replaced by device manager.&lt;br /&gt;
Important, must do a clean before recompile in SD7.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice 7.0/7.1 hangs on sd_softdevice_enable</title><link>https://devzone.nordicsemi.com/thread/14784?ContentTypeID=1</link><pubDate>Fri, 17 Oct 2014 03:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eaebaad-bc0b-4cd1-adbe-40bf940592fa</guid><dc:creator>eric ely</dc:creator><description>&lt;p&gt;Ok, that does seem to fix the issue. However, I cannot attach the debugger at all now. If I use your code and just power on the board, things work fine. But if I try to attach the debugger (even with no breakpoints), it will still get caught in this same spot and hang.&lt;/p&gt;
&lt;p&gt;I checked, the old init function still would not work even without the debugger attached. This was also not the same behavior I had in SD6. At least there, I could run with the debugger attached (and generally had issues when I tried to place a breakpoint). Is there something different in SD7 that prevents the debugger from working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice 7.0/7.1 hangs on sd_softdevice_enable</title><link>https://devzone.nordicsemi.com/thread/14783?ContentTypeID=1</link><pubDate>Fri, 17 Oct 2014 03:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58b92429-be21-418b-ae71-7c948a8d01a6</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;This is the new init sequence for SD7&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void ble_stack_init(void)
{
    uint32_t err_code;

    // Initialize the SoftDevice handler module.
    SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, true);

    // Enable BLE stack

    ble_enable_params_t ble_enable_params;
    memset(&amp;amp;ble_enable_params, 0, sizeof(ble_enable_params));
    ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
    err_code = sd_ble_enable(&amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);

    // Register with the SoftDevice handler module for BLE events.
    err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
    APP_ERROR_CHECK(err_code);

    // Register with the SoftDevice handler module for BLE events.
    err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
    APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>