<?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>Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128740/unexplained-current-spikes-during-sleep</link><description>I am trying to track down the source of unexplained current spikes visible on the Power Profiler Kit 2 when the nRF52832 should be in sleep mode. 
 I have stripped the project down to as bare bones as possible (see below) and tried every possible solution</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jul 2026 13:55:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128740/unexplained-current-spikes-during-sleep" /><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569522?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2026 13:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22d5b23d-10f2-4e43-83ea-826a9ef2fcc7</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If I recall correctly, I tried to run the application on multiple other MCUs (nRF54L15, nRF52840, ...), and it only happened on the nRF52DK, so I would guess it only happens on the nRF52832 (&lt;em&gt;probably also on nRF52810, nRF52805 as they are based on the same silicon&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;And as you put the nRF52840 as an example, I just re-tried on the nRF52840 DK just to be sure, and I don&amp;#39;t see any spikes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569510?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2026 12:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1b7be82-5736-4301-809f-509315acf369</guid><dc:creator>Will_20241202</dc:creator><description>&lt;p&gt;Huh. That&amp;#39;s unfortunate, but I suppose better to have a fix than the risk of the RTC not functioning properly.&lt;/p&gt;
&lt;p&gt;Is it known whether this same bug affects other controllers (e.g. nRF52840)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569502?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2026 10:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29476a0-f685-459f-a12b-f06684f2a67d</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The spikes are actually expected. They are caused by a fix for a potential HW bug concerning RTC bit corruption in the nRF52832:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;For nRF52832, the default RTC bit width is 15 instead of 24. This is related to some RTC bits being possibly corrupted. This could be overridden by changing &lt;code&gt;CONFIG_NRF_RTC_COUNTER_BIT_WIDTH&lt;/code&gt;, but the Kconfig is not user-selectable intentionally, counter’s oldest bits may not work properly.&lt;br /&gt;&lt;br /&gt;For the default bit width of 15 and RTC prescaler of 0, the counter wrapping happens every 1s. At the same time, RTC driver’s logic limits scheduling to half of counter span because of uint math. Hence, the CPU is awake every 0.5s. The shorter intervals seem like an offset of the one set in main.c, which is in different phase from the steady 0.5s driver’s intervals.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;And if we consider that the spikes are smaller than what they seem (due to the PPK2 switching range) the price to pay for that fix is still quite small and reasonable.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569283?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2026 12:59:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b51b2c0-67d3-4cc0-921a-845c5de32bbe</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Will_20241202"]I can rule out a PPK2 ranging issue since that would appear in both the old and new builds of the software on the same board.[/quote]
&lt;p&gt;The root problem is indeed &lt;strong&gt;not&lt;/strong&gt; a PPK2 ranging issue.&amp;nbsp;I was able to find the commit that introduce the issue (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/a0459930f3cd7393326f35475a93aad9121d074d"&gt;link&lt;/a&gt;) using &amp;quot;git bisect&amp;quot; on the SDK. I&amp;#39;ve reported it internally, I&amp;#39;ll get back to you when I have more information about it.&lt;/p&gt;
&lt;p&gt;But PaKa&amp;nbsp;is&amp;nbsp;also right in the sense that you shouldn&amp;#39;t trust the number that are displayed on the spikes. The fact that you are seeing much higher spikes than me is probably cause by the PPK2 ranging behavior, and the real peak current is likely much lower.&lt;/p&gt;
&lt;p&gt;If you want to check the actual peak current of the spike, then as Paka said previously, you need an shunt resistor and a oscilloscope. The PPK2 is not the right tool for that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569279?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2026 12:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1bcaaa-af1a-4762-a9ca-6a205588c2b5</guid><dc:creator>Will_20241202</dc:creator><description>&lt;p&gt;I do not believe this is the case because the exact same board/hardware, using an older SDK build of the code does NOT exhibit these spikes. So the culprit must lie in the software/firmware/configuration difference between the two, not in a hardware issue.&lt;/p&gt;
&lt;p&gt;I previously tried switching from the DC/DC to the LDO per one of the AI suggestions and saw no change, which also suggests that the spikes are not caused by the capacitor refresh.&lt;/p&gt;
&lt;p&gt;I can rule out a PPK2 ranging issue since that would appear in both the old and new builds of the software on the same board.&lt;/p&gt;
&lt;p&gt;Trying another AI suggestion, I also made sure that the 32kHz source was set to an external crystal _AND_ that the recalibration period was increased from 4 to 64, but the periodicity/amplitude of the pikes was unchanged.&lt;/p&gt;
&lt;p&gt;Per Simon&amp;#39;s post above, it seems to be something introduced in the NCS 3.2.0 that did not exist in prior versions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569272?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2026 08:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee99bfef-2e2d-4978-a93f-30480ae66130</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;Potentially two separate issues here:&lt;/p&gt;
&lt;p&gt;1: When the nRF52 goes into the lowest power mode then the regulator goes into refresh mode. This means it has close to 0 power consumption all the time but when the voltage drops too low it will recharge the external capacitor. This is seen as a very short, high spike in the power consumption. This is normal and not an issue. This spike is in the single digit mAs normally.&lt;/p&gt;
&lt;p&gt;2: When the PPK2 sees very low power consumption it automatically changes it measurement range downwards, this is done by changing the measurement resistor. When you then get the real current spike, this resistor will be changed to accommodate a higher current. This may in some cases make a larger spike than actual show up in the plot, this is an artificial artifact caused by the measurement circuit. It does not impact the average current as it evens out over time, the PPK2 will still be within spec with this.&lt;/p&gt;
&lt;p&gt;If you want to make sure the spike is real and not the artifact then the solution is to use an oscilloscope to check the real height/width of the current spike, remember to use your own shunt resistor for this.&lt;/p&gt;
&lt;p&gt;You can also enable a low pass filter in the PC fronted to remove these spikes, they are in the advanced menu of the Power Profiler app. Note that this is just changing the display and not the data measured and averaged.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569257?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2026 16:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:705bb3a9-7e38-40a4-81af-bd2c6d9c7eb4</guid><dc:creator>Will_20241202</dc:creator><description>&lt;p&gt;Thanks Simon. Unfortunately my spikes are significantly larger, many in the tens of milliamps range so they are not something we can ignore (this is a VERY power sensitive battery project so every wasted joule adds up quickly).&lt;/p&gt;
&lt;p&gt;If I change the main loop code to just sleep for a really long time, then the spikes go back to being periodic at almost exactly 500ms (give or take a few milliseconds). Every once in a while there are two spikes within a millisecond of each other. I notice this phenomenon in the scree capture you posted as well.&lt;/p&gt;
&lt;p&gt;The amplitude I see is still in the milliamp to tens of milliamps range though, so not sure why yours are so much smaller than mine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unexplained current spikes during sleep</title><link>https://devzone.nordicsemi.com/thread/569254?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2026 15:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ce69c1e-ed72-40a4-a224-82b6c33fdee2</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was able to reproduce your isse on a nRF52DK. It seems like this behaviour only appears from NCS v3.2.0 onward.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1784561410623v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I also have the spikes but mine are significantly smaller, and every 500ms exactly. Are you also seeing this frequency ?&lt;/p&gt;
&lt;p&gt;And from what I can see, the difference between having the spikes and not having them is around 0.2uA. So not much.&lt;/p&gt;
&lt;p&gt;And these spikes are already very likely exagerated by the PPK2 as it has to change measurement range and tries its best to output a value. But during the change the PPK2 is known to be very inaccurate and outputs much higher values than they really are.&lt;/p&gt;
&lt;p&gt;Even though, I&amp;#39;ll try to see if I can find anything more on it, and I&amp;#39;ll also ask internally if someone knows something about it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>