<?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>Changes needed to start developing Laird BL652 the old way (NRF+Keil)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30764/changes-needed-to-start-developing-laird-bl652-the-old-way-nrf-keil</link><description>Hello fellows, 
 
 I did my master&amp;#39;s thesis with the nrf51 and now some years later I need some help setting up a Laird BL652 to work with my beloved NRF+Keil tools. 
 
 Here&amp;#39;s what I did and what&amp;#39;s working so far: 
 
 nrf52840 DK Preview connected to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 16 Jun 2018 11:08:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30764/changes-needed-to-start-developing-laird-bl652-the-old-way-nrf-keil" /><item><title>RE: Changes needed to start developing Laird BL652 the old way (NRF+Keil)</title><link>https://devzone.nordicsemi.com/thread/136426?ContentTypeID=1</link><pubDate>Sat, 16 Jun 2018 11:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f99c5a9-30aa-45cd-b416-5413dc3084bc</guid><dc:creator>Joao Teixeira</dc:creator><description>&lt;p&gt;Hi Keton,&lt;/p&gt;
&lt;p&gt;the better way to change the values of&amp;nbsp;clock source is to change only the&amp;nbsp;sdk_config.h in the respective example. this file is located in the respective config directory (i.e.&amp;nbsp;nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\my_ble_app_blinky\pca10040\s132\config).&lt;/p&gt;
&lt;p&gt;Change the&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;SoftDevice clock configuration&lt;/span&gt; to the values specified in the LAIRD documentation like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration

//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_ACCURACY_20_PPM 
// &amp;lt;8=&amp;gt; NRF_CLOCK_LF_ACCURACY_10_PPM 
// &amp;lt;9=&amp;gt; NRF_CLOCK_LF_ACCURACY_5_PPM 
// &amp;lt;10=&amp;gt; NRF_CLOCK_LF_ACCURACY_2_PPM 
// &amp;lt;11=&amp;gt; NRF_CLOCK_LF_ACCURACY_1_PPM 

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 7
#endif

// &amp;lt;/h&amp;gt; 
&lt;/pre&gt;&lt;/p&gt;
&lt;div&gt;The relevant lines are:&lt;/div&gt;
&lt;div&gt;#define NRF_SDH_CLOCK_LF_SRC&lt;strong&gt; 0&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;#define NRF_SDH_CLOCK_LF_RC_CTIV&lt;strong&gt; 16&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV&lt;strong&gt; 2&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;#define NRF_SDH_CLOCK_LF_ACCURACY&lt;strong&gt; 7&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;So, you do not need to change the SDK.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changes needed to start developing Laird BL652 the old way (NRF+Keil)</title><link>https://devzone.nordicsemi.com/thread/121713?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 15:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a6be6e7-008d-4681-84f4-aac1a364b415</guid><dc:creator>Keton</dc:creator><description>[quote userid="6596" url="~/f/nordic-q-a/30764/changes-needed-to-start-developing-laird-bl652-the-old-way-nrf-keil/121645#121645"]nRF5_SDK\components\softdevice\common\nrf_sdh.c[/quote]
&lt;p&gt;I&amp;#39;m routinely using BL652 in my projects ant all I&amp;#39;ve always needed was chip erase from nRF Go studio. Are you sure that modifying the SDK is necessary?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changes needed to start developing Laird BL652 the old way (NRF+Keil)</title><link>https://devzone.nordicsemi.com/thread/121645?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 11:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59761422-6e0e-4aeb-b796-4de4287714c3</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;So... after Lunch I found out that I had to follow this: &lt;a href="https://assets.lairdtech.com/home/brandworld/files/Using%20the%20DVK-BL652%20and%20Nordic%20SDK%20v14.0.0%20with%20Eclipse%20and%20GCC%20v1_0.pdf"&gt;https://assets.lairdtech.com/home/brandworld/files/Using%20the%20DVK-BL652%20and%20Nordic%20SDK%20v14.0.0%20with%20Eclipse%20and%20GCC%20v1_0.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and change the clock values in&lt;/p&gt;
&lt;div style="font-family:sans-serif;font-size:18.3px;left:654.067px;top:826.042px;"&gt;nRF5_SDK\components\softdevice\common\nrf_sdh.c&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>