<?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>Calibration period compilation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33985/calibration-period-compilation</link><description>hi, 
 
 When working with Keil are the NRF_SDH_CLOCK_LF_RC_TEMP_CTIV &amp;amp; NRF_SDH_CLOCK_LF_RC_CTIV compiled as part of the nrf52810_xxaa project? 
 
 if not how can I compile the softdevice, as the default projects that comes with the SDK fails to compile</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 May 2018 07:58:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33985/calibration-period-compilation" /><item><title>RE: Calibration period compilation</title><link>https://devzone.nordicsemi.com/thread/130739?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 07:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:689219ac-1bf3-4bd6-bfe7-e9680b6a29a2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;2) You can&amp;#39;t compile the softdevice. The softdevice is a closed source application. I suspect that if you try to make/compile the softdevice target, then the softdevice .hex-file is actually deleted (I may be wrong). If the softdevice is no longer found in the folder SDK\components\softdevice\s112\hex\*.hex, then you need to unzip a fresh copy of the SDK to get it again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) I don&amp;#39;t think that this question is really relevant, but I will try to answer it. These variables is used when you use the RC oscillator instead of the LFXTAL. **RC_CTIV decides how many 1/4 seconds &amp;quot;ticks&amp;quot; that should pass before you consider(!) to calibrate the RC Oscillator. This is called the calibration interval. Whenever a calibration interval has passed it checks if the temperature has changed. If it has, then it will calibrate. If it hasn&amp;#39;t changed, it will wait for **RC_TEMP_CTIV number of calibration intervals before it does a calibration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These are explained in nrf_sdm.h, on line 229 (in SDK15).&lt;/p&gt;
&lt;p&gt;The more often you do a calibration, the more accurate your RC oscillator will be, but keep in mind that a calibration also costs a bit more power (more frequent calibration means shorter battery life). However, the more frequently you calibrate, the more accurate your clock is, and the less time the device has to keep the radio on listening mode (while in a connection), so a more accurate oscillator will also save some power. Note that you have to specify the accuracy (just as you specify the RC_CTIV and RC_TEMP_CTIV.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So how does it affect the softdevice? You will be able to compile and run a project with a &amp;quot;bad&amp;quot; configured RC oscillator, but it will cause weird behaviour in the BLE part of your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I think the&amp;nbsp;issue in your case is that you tried to compile over the softdevice target, deleting the softdevice. unzip the SDK again, and grab the softdevice from there and include it in your current SDK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calibration period compilation</title><link>https://devzone.nordicsemi.com/thread/130660?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 16:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7671005b-e2e8-4999-a763-7d51ef502024</guid><dc:creator>Yaniv Reibenbach</dc:creator><description>&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kindly clarify, my question is related to these two varibles, I am aware of the &amp;quot;target device&amp;quot; option.&lt;/p&gt;
&lt;p&gt;1) are these two varibles(NRF_SDH_CLOCK_LF_RC_TEMP_CTIV &amp;amp;&amp;nbsp;NRF_SDH_CLOCK_LF_RC_CTIV ) effecting the softdevice?&lt;/p&gt;
&lt;p&gt;2) if they are affecting, how to I compile the softdevice?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Yaniv&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calibration period compilation</title><link>https://devzone.nordicsemi.com/thread/130612?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afdbe420-e48e-49e0-988b-ba5530be1e14</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That is, select the one that is not the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calibration period compilation</title><link>https://devzone.nordicsemi.com/thread/130611?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639a7bdb-ac40-49f2-94ff-7423896aa3a0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It seems like you have changed the target file to the softdevice. If you use Keil µVision, this is easily (maybe too easily) in the upper left corner. See the attached picture. Change it back to the project file.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-14990ffdc11f403c8033848dd8310049/change_5F00_target.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>