<?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>Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90294/strange-current-consumption-events-during-sleep-using-ibeacon-example</link><description>Hi, 
 
 I am compiling the iBeacon example from Zephyr (nrf-sdk 1.9.0), with only one modification to increase the advertising interval to 5000-6000ms. I have a custom nrf52811 board that has no semiconductors other than the nrf52811, and I am measuring</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Aug 2022 09:29:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90294/strange-current-consumption-events-during-sleep-using-ibeacon-example" /><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/381318?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 09:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d05f48e6-1522-4b44-8417-18953ea01d12</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the late reply Jeremy. Was away for few days.&lt;/p&gt;
&lt;p&gt;There was a bug in the RC calibration in Zephyr in SDK version 1.9.0 which is fixed in SDK version 2.0.0.&lt;/p&gt;
&lt;p&gt;We&amp;nbsp;have also backported this fix to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.2/nrf/releases/release-notes-1.9.2.html#highlights"&gt;SDK 1.9.2&lt;/a&gt;. You need to use our softdevice controller for this and not Zephyr Controller.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/379698?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 11:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff99e434-f6d2-4bd9-8e53-c82acd1a60ae</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Yes, I understand that it works in terms of providing a clock source, but the problem is that it draws more than 100x more current than the power profiler states it should, even on the nrf52840dk which is supposed to be a reference design. Could you help me understand why that is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/379265?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 09:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd2084dd-4701-4396-b442-32672a77bc98</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;RC 32k is usable but it is less accurate and needs more power to calibrate it constantly from hfclk crystal for the BLE protocol to work. The calibration time varies and can be power intensive over time. There are lots of discussion in this forum regarding using Rc 32k instead of XTAL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/378591?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 21:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cea2972a-e3d7-4da8-8317-164de6fc2955</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;In this case, I am using a device to test if I can remove the 32k XTAL and what the consequences would be. But this is not the consequence I expected... It seems that the RC oscillator is completely unusable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/378555?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 13:30:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:867b383b-afb9-4b99-912c-aabfe3824f6a</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="jeremyherbert"]then the events go away on the nrf52840dk_nrf52811. So it seems like this is probably the RC oscillator calibration loop, except it is taking way too long to calibrate or not returning to sleep correctly after calibration[/quote]
&lt;p&gt;It seems like the calibration of the RC is taking much longer than expected. We have seen this on devices that have a wrong PPM setting given to the calibrating module, But if you already have an XTAL on your device, why use RC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/378396?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 23:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfd0ff2-fc75-4064-9d0f-f66f2d4a8fcb</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;Some more testing reveals that if I remove&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and add&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;then the events go away on the nrf52840dk_nrf52811. So it seems like this is probably the RC oscillator calibration loop, except it is taking way too long to calibrate or not returning to sleep correctly after calibration. I think this is a bug in the calibration loop code, because if I use the online power estimator:&amp;nbsp;&lt;a id="" href="https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le&lt;/a&gt;&amp;nbsp;the LF clock calibration current should only be 1uA, not the 50uA I measured on my custom board:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3487.power_5F00_profiler.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/378393?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 23:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead88e24-540c-4d80-b890-b5bbeb09d824</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;If I build for the nrf52840dk_nrf52811 the same events still appear (the floor current is different though because I haven&amp;#39;t optimised any GPIO levels or anything like that). I only changed the config to&amp;nbsp;CONFIG_BOARD_ENABLE_DCDC=n so that the switching noise would go away.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;5s interval:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nrf52840dk_5F00_nrf52811_5F00_5000.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1s interval:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nrf52840dk_5F00_nrf52811_5F00_1000.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/378392?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 23:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c9df37-3ca2-4b51-8492-f7e556575bd0</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;I have just tried changing the advertising interval to 1 second, and the spikes still persist but they are much shorter than before (note that the x axis is now 10s instead of 1 minute):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ppk2_5F00_second.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/378299?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 12:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ca515e8-2b84-4eea-bb72-8f86e3d777f3</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;Hi Susheel,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;yes, the sample was &amp;ldquo;ibeacon&amp;rdquo; and I only changed a single line which increases the advertising interval. I did tinker with some settings in the prj.conf around disabling the console and logging, but they didn&amp;rsquo;t make a difference.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;rsquo;t had a chance to try to reproduce on the DK, but also I am not sure if it is equivalent because it has an nrf52840, not the 52811.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current consumption events during sleep using iBeacon example</title><link>https://devzone.nordicsemi.com/thread/378297?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 12:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e56fe7c4-0e2c-487b-8e10-35f0a58f4fe0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I haven&amp;#39;t looked into your code yet but it looks like the spikes are in regular interval.&amp;nbsp;Have you tested this on the DK? If not can you test it?&lt;/p&gt;
&lt;p&gt;Also can you briefly explain which example you took as example and what changes you did?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>