<?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>Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27219/unable-to-enable-the-softdevice-on-custom-board</link><description>Hi, 
 I&amp;#39;m using a nrf52 custom board based out of the telit bluemod s42. I&amp;#39;m trying to port the ble_app_uart example of the SDK14 onto the custom board.
The code seems to be getting stuck at the function nrf_sdh_enable_request(void) present in the ble_stack_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2017 09:09:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27219/unable-to-enable-the-softdevice-on-custom-board" /><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107375?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 09:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a06f7ed5-e7e0-4250-b1bb-4e92434ba298</guid><dc:creator>Sourabh</dc:creator><description>&lt;p&gt;The issue was with the RAM settings, i made the appropriate change referring to the softdevice specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107370?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 15:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9e520b-f423-4e6b-a6a0-275a42a9b817</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sorry, that should have been included in my comment. Edited now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107368?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 15:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0a7aa85-227f-41fa-aec0-5c9f22e8998e</guid><dc:creator>reva</dc:creator><description>&lt;p&gt;Thank you for your answer. I set NRF_SDH_CLOCK_LF_RC_CTIV to 16 and it works now. And one more question: if my board will be contain XTAL 32.768 kHz, can I set NRF_SDH_CLOCK_LF_SRC to 1 and CLOCK_CONFIG_LF_SRC to 1 simultaneously?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107369?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 15:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa65745e-90f7-4247-badb-1058ab4a3cc4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;NRF_SDH_CLOCK_LF_RC_CTIV can&amp;#39;t be 0, for nRF52 1-32 is valid. 16 recommended.&lt;/p&gt;
&lt;p&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2 is recommended.&lt;/p&gt;
&lt;p&gt;NRF_SDH_CLOCK_LF_XTAL_ACCURACY should be set to NRF_CLOCK_LF_ACCURACY_500_PPM = 1&lt;/p&gt;
&lt;p&gt;NRF_SDH_CLOCK_LF_SRC 2 -&amp;gt; LFCLK Synthesized from HFCLK is according to SoftDevice release notes not recommended:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Synthesized low frequency clock source is not tested or intended for use with the BLE stack.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107371?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 14:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0242effd-6436-4395-89e8-d5c430178a56</guid><dc:creator>reva</dc:creator><description>&lt;p&gt;I can enable softdevice successfully now if NRF_SDH_CLOCK_LF_SRC=2. But I get  	NRF_ERROR_INVALID_PARAM error from sd_softdevice_enable() if NRF_SDH_CLOCK_LF_SRC=0 (NRF_SDH_CLOCK_LF_RC_CTIV=0, NRF_SDH_CLOCK_LF_RC_TEMP_CTIV=0, NRF_SDH_CLOCK_LF_XTAL_ACCURACY=1). Why can it be so?
ps: I have no 32.768 kHz crystal on my board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107372?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 09:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6920706-274e-4f2f-8300-14567a29b192</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So how far do you get? Where do you get &amp;quot;stuck&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107367?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 17:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd295238-7208-41cd-aafd-cf79ec8a1304</guid><dc:creator>reva</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m going through sd_state_evt_handler() in nrf_drv_clock.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107366?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 16:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47dc98b0-c452-48ce-bdd7-193460b4d5fd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Then I recommend you to try to debug a bit more. Turn off optimizations. You are both saying that you are not getting past sdh_state_observer_notify(NRF_SDH_EVT_STATE_ENABLED);?&lt;/p&gt;
&lt;p&gt;sdh_state_observer_notify() should notify sd_state_evt_handler() in nrf_drv_clock.c and nrf_fstorage_sdh_state_handler() in nrf_fstorage_sd.c&lt;/p&gt;
&lt;p&gt;If you put breakpoints in these? Are they hit? If they are, are you getting through the function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107365?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 13:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae84e71d-83b1-44e7-b835-93820b5dac6c</guid><dc:creator>reva</dc:creator><description>&lt;p&gt;No, it doesn&amp;#39;t help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107364?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 12:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8bcd699-daed-4e5a-bc2c-2c6fdd6ff96a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What if you set NRF_SDH_CLOCK_LF_XTAL_ACCURACY to 1 (NRF_CLOCK_LF_XTAL_ACCURACY_500_PPM)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107374?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 20:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed3f5914-72e1-4650-9eee-83565b5d8f49</guid><dc:creator>reva</dc:creator><description>&lt;p&gt;I have the same problem with my BMD-300 on nRF52832 (s132 5.1.0, nRF5 SDK 14.2.0) and simple ble_app_ blinky_c example. And it doesn&amp;#39;t matter what value set for CLOCK_CONFIG_LF_SRC parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107373?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 15:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b81dd7ca-d6cd-4ef3-9bd6-104a6e7a8268</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You didn&amp;#39;t really answer my other questions. What if you set CLOCK_CONFIG_LF_SRC 0? Does that help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107362?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 14:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6923b8-1ab6-4a2f-83db-d136445878bf</guid><dc:creator>Sourabh</dc:creator><description>&lt;p&gt;Yes the code is working fine on the nRF52 DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107361?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 13:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d238b6b3-995c-40d9-a159-0c5b5ebf2d00</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Does the code work on the nRF52 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107360?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 13:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e496de8b-86df-4cad-b651-4836b1bb7d52</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The module should include a 32MHz crystal, are you talking about the 32kHz crystal? The 32kHz crystal is not mandatory, the 32MHz crystal is mandatory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107359?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 06:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76bb4221-f525-4ede-ae11-7cd616fd67de</guid><dc:creator>Sourabh</dc:creator><description>&lt;p&gt;APP_ERROR_CHECK() is not called.
We do not have a external 32MHz crystal, is it mandatory. But according to the , &lt;a href="https://devzone.nordicsemi.com/tutorials/35/"&gt;nRF52 PCB guidelines&lt;/a&gt; it states that the 32MHz crystal is mandatory. Could this be the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to enable the softdevice on custom board.</title><link>https://devzone.nordicsemi.com/thread/107363?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2017 15:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d08d78-10fb-4b03-b63f-55e447318dfb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do mean by stuck? Where exactly are you stuck? Are you sure that APP_ERROR_CHECK() isn&amp;#39;t called with an error somewhere? That would cause a reset. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this&lt;/a&gt; for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>