<?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>NCS on-demand LFCLK calibration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111979/ncs-on-demand-lfclk-calibration</link><description>We have a custom board based on the nRF52805 that does not have a LFXO, instead relying on the RC. We are using NCS 2.6.1. 
 We see current spikes every 4 and 8 seconds that raise the average System ON sleep current from about 2 uA to about 3.5 uA. These</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2024 13:39:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111979/ncs-on-demand-lfclk-calibration" /><item><title>RE: NCS on-demand LFCLK calibration</title><link>https://devzone.nordicsemi.com/thread/488353?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 13:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31c3458a-c42b-4b6b-9b29-bd41150b2ebf</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Glad I could help Graham &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS on-demand LFCLK calibration</title><link>https://devzone.nordicsemi.com/thread/488349?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 13:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f65db9e4-fbcd-4bd4-a1c4-9e226c10e7d1</guid><dc:creator>grahamm</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;Torbj&amp;oslash;rn, this is the guidance I needed!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS on-demand LFCLK calibration</title><link>https://devzone.nordicsemi.com/thread/488291?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 11:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7fe7bf0-9d64-4534-a4ac-69169532990b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Graham&lt;/p&gt;
&lt;p&gt;What you are seeing here is the LF clock calibration, yes. It seems the calibration is running continuously, regardless of any activity in the SoftDevice controller (SDC), as the clock calibration is handled by the MPSL module and not the SDC.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is no official way to change this behavior unfortunately, but the code controlling the calibration is available in the MPSL source files, and you could change this yourself if you want to.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Essentially all you have to do is to comment out &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/309c0f2b50180f8dae9ec1a13c652e1c58c7a676/subsys/mpsl/init/mpsl_init.c#L466"&gt;this line&lt;/a&gt;, to avoid the calibration task being triggered repeatedly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you need to call the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/309c0f2b50180f8dae9ec1a13c652e1c58c7a676/subsys/mpsl/init/mpsl_init.c#L340"&gt;mpsl_calibration_timer_handle()&lt;/a&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;function manually, which allows you to call it whenever you want. Just make sure that you call it often enough when a Bluetooth connection is active.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>