<?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>configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14177/configuration-ble-and-softdevice</link><description>Hello, 
 I&amp;#39;m working with a proprietary chip that has a nRF51822. I want to configure it as a BLE peripheral. I&amp;#39;m using ble_ app_uart example to achieve this. 
 I tried it on the dongle nRF51 and it works fine. Now I&amp;#39;m transferring it to the chip. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Jun 2016 14:49:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14177/configuration-ble-and-softdevice" /><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54175?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2016 14:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce6465ae-432d-438b-9c5a-f20a14a304d8</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I discovered that was using a special IC revision 2 chip, that&amp;#39;s why is not possible to use the S130 v2 and the firmware was not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54174?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 08:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768bd799-a645-4b5e-8f6e-906a3a5aa71c</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I already opened a case on mypage. Thank you for the help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54173?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 07:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6caa994-7344-439b-80c7-5fd4c43bfc22</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Please do not close this case yet. Even though synthesized clock works, it is not a good solution to this problem and most users of the chip will not tolerate the high current draw that comes with it. I will ask you to deselect the answer until we find the root cause of this problem.&lt;/p&gt;
&lt;p&gt;Can you open a case on &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;mypage&lt;/a&gt; so we can take the discussion there? I expect that else this thread will be quite long. Mark the case with my name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54172?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 07:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2cea1ab-5115-49e0-b9c7-de9013f1e5af</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;It seemed that yesterday was fluke... Yesterday I tried with the Synth clock and it appeared on my MCP on the iphone, but today is not working again (without changing anything). I tried to debug it on the Keil and when is getting out of the function ble_advertising_start and tries to printf the status it gives me an error of &amp;quot;***JLink Error: Programming failed @ address 0x00010508 (block verification error)&amp;quot; and it stays on this loop&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    // If printing is disrupted, remove the irq calls, or set the loop variable to 0 in the debugger.

__disable_irq();

while(loop);

__enable_irq();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I tried to put the variable loop to 0 and continue, but after a while it goes back to the same place.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54164?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 15:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c3279e-cbf2-4677-ac81-ed001a12a46f</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;It worked, using the NRF_CLOCK_LF_SRC_SYNTH!! thank you for the help.&lt;/p&gt;
&lt;p&gt;So the LFCLK RC oscillator is not working with this chip? It is strange because it was used with combination of SDK7. If there is any update to use this, where should I find it? Thank you again&lt;/p&gt;
&lt;p&gt;Edit: I tried that configuration, and it didn&amp;#39;t work (the one with the NRF_CLOCK_LF_SRC_RC).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54167?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 15:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0b5f801-e62f-4e59-aca3-1cd25fc92629</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Just tried on a board that use 32MHz crystal and LFCLK RC and it works. I used ble_app_template and changed the changed the LF clock config to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_clock_lf_cfg_t clock_lf_cfg = { .source = NRF_CLOCK_LF_SRC_RC,		\
                                        .rc_ctiv = 4,	\
                                        .rc_temp_ctiv = 1};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And added this at the top of main:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK-&amp;gt;XTALFREQ = 0;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Can you try the same and let me know what you find out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54166?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 14:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bffc8c3-1231-4508-bae8-a121802bdd89</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I&amp;#39;ll try to see this. Before there was a working code on this chip with the SDK 7, I tried to replicate the settings they had but with the differences on the migration of the SDK&amp;#39;s. I will try and then write my findings&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54165?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 14:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61bbab77-865e-4e5e-aa79-22e29d8ddcda</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Just curious: does it work with NRF_CLOCK_LF_SRC_SYNTH? Found &lt;a href="https://devzone.nordicsemi.com/question/71796/migration-from-sdk-11-alpha-to-11-final-advertising-problem/"&gt;this&lt;/a&gt; similar case, but there was no solution other than using synthesized clock. Using synthesized clock is generally a bad idea as it draws much more current than using LFCLK RC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54168?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 14:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:108c7a17-e4ea-4b14-96f5-d03be8631733</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I changed the optimization to level 0 (was using level 1) for Debug, and now I can clearly see th function &lt;code&gt;err_code = ble_advertising_start(BLE_ADV_MODE_FAST);&lt;/code&gt; it&amp;#39;s passed without errors and goes to the power_manage() step, waiting for some event to come. but still can&amp;#39;t see my device anywhere&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54171?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 13:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8cf7043-700d-40a8-bdc9-66ea63aa8b97</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;PS: I try the same software on a Dongle and it works, the only difference from both chips is some pin configurations and the no clock connected to the XL pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54170?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 13:19:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caabd7c7-afd3-480d-9843-16775bbaee93</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I changed my program to be simpler, I deleted all the services I had (SPI, I2C, some buttons implementations) and I&amp;#39;m using the ble_app_uart example on the chip with some minor changes on the configuration of the clock source as explained on the question.&lt;/p&gt;
&lt;p&gt;It is configured for the right chip (one is a nrf51422 and the other is nRF51822, and I&amp;#39;m putting it on the nRF51822) and when I debug it via Keil it goes through all initializing functions without errors and it runs to the advertising status, but then I can&amp;#39;t see it using MCP, or my iphone, or other DK.
The problem is the only way I think I have to debug is to use the Keil debugger, but is really weird to work with (sometimes let me put some breakpoints and other times without changing anything don&amp;#39;t allow the same breakpoints :s)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuration BLE and softdevice</title><link>https://devzone.nordicsemi.com/thread/54169?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 13:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0ce11c7-8ddd-42e1-a9af-d036711469f3</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Is the chip advertising? Check by using Master Control Panel on the computer or a smart phone.&lt;/p&gt;
&lt;p&gt;There should be no problem using nRF51 DK as a programmer, just make sure that it is flashing the correct chip (and not the one on the board). It will flash an external chip if it detects voltage on VTG pin on the debug out interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>