<?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 s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17095/softdevice-s110-and-sdk-v6-1</link><description>Hello, I have device with nrf51822-qfab and I need to run ble_app_template (use softdevice s110). What version of SoftDevice I must to use with SDK v6.1? About problem: It can&amp;#39;t complete SOFTDEVICE_HANDLER_INIT;
SDK 6.1 and SoftDevice s110 v7.3.0.
Newest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Oct 2016 07:18:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17095/softdevice-s110-and-sdk-v6-1" /><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65571?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 07:18:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e5cace7-9856-4a34-b5ce-d7910772d47a</guid><dc:creator>OlegT</dc:creator><description>&lt;p&gt;Yeah, You are right here. I haven&amp;#39;t.
Now I chose NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION and this stage is done.
Device connected.
Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65564?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 15:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a5fd4dd-9bb9-4e8c-a21a-383948ddaced</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you have an external crystal on the custom board ? What CLOCK_SOURCE do you use when calling &lt;code&gt;SOFTDEVICE_HANDLER_INIT(CLOCK_SOURCE ,USE_SCHEDULER)&lt;/code&gt; ? Try to call &lt;code&gt;SOFTDEVICE_HANDLER_INIT()&lt;/code&gt; with the interal crystal &lt;code&gt;CLOCK_LFCLKSRC_SRC_RC&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65570?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 14:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f1564c-aafe-4d66-866c-60d22b972838</guid><dc:creator>OlegT</dc:creator><description>&lt;p&gt;No, I don&amp;#39;t hit. I go to SOFTDEVICE_HANDLER_INIT() and that&amp;#39;s all, I never hit to next line.
In uint32_t softdevice_handler_init() I go to line 231 and that&amp;#39;s all, I can&amp;#39;t hit to 232 line breakpoint. And if I stop program when I&amp;#39;m in softdevice_handler_init() in call stack I don&amp;#39;t see nothing, only main() function;
IROM1 0x16000 start, size 0x9000; IRAM1 0x20002000 start, size 0x2000;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65569?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 14:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb197d01-8185-42e8-b046-4fce7772ef12</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;How do you know that the code is stopping at SOFTDEVICE_HANDLER_INIT?
If you add a breakpoint in line 508 in main.c &lt;code&gt;ble_enable_params_t ble_enable_params;&lt;/code&gt;, do you hit that breakpoint?&lt;/p&gt;
&lt;p&gt;Also, what IROM/IRAM settings are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65568?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 13:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f15fb6-0f63-440b-b68a-66bbf03dde24</guid><dc:creator>OlegT</dc:creator><description>&lt;p&gt;Done.
I don&amp;#39;t get to this function and to this line too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65567?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 13:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828c96b6-7e5e-42f1-8e08-88042c07cb71</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Uncomment line 123 in main.c: &lt;code&gt;ble_debug_assert_handler(error_code, line_num, p_file_name);&lt;/code&gt;
And add a breakpoint in ble_debug_assert_handler line 52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65566?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 13:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9485c55e-61c5-4d2e-86d8-1fe344f06840</guid><dc:creator>OlegT</dc:creator><description>&lt;p&gt;I had level 0 optimization.
We can&amp;#39;t do break point in &amp;quot; .h&amp;quot;.
I place break point in app_error_handler() in main.c (it called from APP_ERROR_HANDLER (it called from APP_ERROR_CHECK)) and it didn&amp;#39;t get to this break point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65563?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 13:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a5f6e0-0b2c-4c1c-a9b8-bfae774a7e09</guid><dc:creator>Sigurd</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Set optimization level 0 in target options -&amp;gt; C/C++ and define DEBUG in the preprocessor symbols.&lt;/li&gt;
&lt;li&gt;Place a break point next to while(loop)(line 59) and line 57, in app_error.h&lt;/li&gt;
&lt;li&gt;What for the error to happen, and read the value.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65565?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 12:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d7a17f8-0c40-46de-a2cb-553dda5f5a64</guid><dc:creator>OlegT</dc:creator><description>&lt;p&gt;I sayd it.
231: err_code = 0;
234: err_code - don&amp;#39;t know because it can&amp;#39;t perform sd_softdevice_enable() function
and then when I press Stop I see only &amp;quot;main&amp;quot; in call stack.
Board is custom, but in SDK I try template from nrf6310.
There is disassembly, last command that mcu do -  0x00018CF6 DF10      SVC      0x10
after it - nothing.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  231:     err_code = sd_softdevice_enable(clock_source, softdevice_assertion_handler); 
0x00018CF2 4937      LDR      r1,[pc,#220]  ; @0x00018DD0
0x00018CF4 9801      LDR      r0,[sp,#0x04]
0x00018CF6 DF10      SVC      0x10
0x00018CF8 4605      MOV      r5,r0
   232:     if (err_code != NRF_SUCCESS)
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65562?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 10:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93a34b05-c652-4833-8d4d-7b82e1ed9bf0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What board are you using? The board code starts with PCA + number.&lt;/p&gt;
&lt;p&gt;Could you insert a breakpoint in softdevice_handler.c, line 231 and 234, and see what the return code is when debugging?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65572?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 10:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:265dba54-185e-4f09-a1af-2b1eb1e6d294</guid><dc:creator>OlegT</dc:creator><description>&lt;p&gt;No error returning.
It go softdevice_handler_init() -&amp;gt; then calling function sd_softdevice_enable(clock_source, softdevice_assertion_handler);
clock_source = 0x00000008;
softdevice_assertion_handler = 0x00018c00;
and this function didn&amp;#39;t return any error code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice s110 and SDK v6.1</title><link>https://devzone.nordicsemi.com/thread/65561?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 09:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b24d5e-e1f6-433a-93b9-45c3b07dcb35</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;According to the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51422_nRF51822_ic_rev_sdk_sd_comp_matrix.html?cp=3_0_4"&gt;compatibility matrix&lt;/a&gt;, you are using the correct SoftDevice version (7.3.0). This SoftDevice version uses 88 kB.&lt;/p&gt;
&lt;p&gt;In SDK v6.1 the example called ble_app_template is setup to be used with the nRFgo Motherboard (nRF6310), is this the board you are using? Is the softdevice_handler_init(..) function returning any error codes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>