<?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>nRF Connect SDK PWM on nRF52811 produces high power consumption with huge spikes not seen on nRF5 SDK PWM on the same MCU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125724/nrf-connect-sdk-pwm-on-nrf52811-produces-high-power-consumption-with-huge-spikes-not-seen-on-nrf5-sdk-pwm-on-the-same-mcu</link><description>Nordic support, 
 We are experiencing unexpectedly high and noisy power consumption when using PWM with nRF Connect SDK v2.9.2 on a nRF52811-based custom board, which is problematic because our use case for the nRF52811 is a board that is both ultra-low</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Dec 2025 16:40:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125724/nrf-connect-sdk-pwm-on-nrf52811-produces-high-power-consumption-with-huge-spikes-not-seen-on-nrf5-sdk-pwm-on-the-same-mcu" /><item><title>RE: nRF Connect SDK PWM on nRF52811 produces high power consumption with huge spikes not seen on nRF5 SDK PWM on the same MCU</title><link>https://devzone.nordicsemi.com/thread/556796?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2025 16:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b2d3a0c-77b5-4ecf-932f-4a01adcca8b8</guid><dc:creator>ntennies</dc:creator><description>&lt;p&gt;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you again for your help on this. I wanted to close the loop on it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We did a comparison of nRF5211 registers settings between the nRF5 SDK and the Zephyr version and were able to source of the difference in behavior, which was due to a few things:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;First, the difference in behavior was caused by a code error on the nRF5 SDK version of the code, which was that although we were enabling the DCDC regulator, we were doing so incorrectly (that call was accidentally getting made _before_ the SoftDevice had been inited). With the DCDC regulator enabled, we were seeing the same high, spikey power consumption on nRF5 SDK that we were seieng on Zephyr.&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Of course, power consumption with DCDC enabled will be more spikey, but should be lower. We think the magnitude of the spikes and therefore the higher power consumption were due entirely auto-ranging artifacts on the nRF5 SDK. When we applied caps to the board, obviously the power spikes went away but also the power consumption ended up being lower than we DCDC disabled, as expected.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;So we&amp;#39;re all good here.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK PWM on nRF52811 produces high power consumption with huge spikes not seen on nRF5 SDK PWM on the same MCU</title><link>https://devzone.nordicsemi.com/thread/555218?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 12:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d72ca28-767b-466c-aa8c-257223773556</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just want to re-iterate:&lt;/p&gt;
[quote user="mojosam"]You can instantly see a dramatic difference between this and the capture you made on the nRF52DK. In your capture, you never see current spikes above maybe 1.3 mA once PWM was enabled, but here we&amp;#39;re getting current spikes over 10 mA. In addition, the noise in your capture was evenly centered the 952 uA average, but in this capture from an actual nRF52810, we see spikes going down close to zero uA.[/quote]
&lt;p&gt;All my posted&amp;nbsp;measurements are performed on actual nRF52810 and nRF52811 silicon, mounted on a nRF52-DK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And please note that spikes are in-nature, expected, from any nRF5x device, due to the regulator refresh mode.&lt;/p&gt;
&lt;p&gt;This is entered in various states of sleep, automatically by the hardware, in which &amp;quot;regulator refresh mode&amp;quot; will monitor the voltage output over a external capacitor.&lt;/p&gt;
&lt;p&gt;When the voltage level goes to whatever &amp;quot;minimum value&amp;quot; is required for the sleep mode, the hardware will automatically re-charge the capacitor. This will then emit itself as a current spike in the mA area.&lt;/p&gt;
&lt;p&gt;PPK2 will have a hard time to accurately show the exact spike (average current will be fine), as you are then switching between two (or even more) accuracy modes within the PPK2, which are listed here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_ppk2/page/UG/ppk/ppk_measure_accuracy.html"&gt;https://docs.nordicsemi.com/bundle/ug_ppk2/page/UG/ppk/ppk_measure_accuracy.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PPK2 source meter is usually more accurate.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: Could you&amp;nbsp;verify your findings with another multimeter source?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is to ensure this is not artefacts of the PPK2 switching levels or something similar.&lt;/p&gt;
&lt;p&gt;Please, with a multimeter or something like that, measure the avg. current (or dynamic current drawn), and compare the exact same test case against ppk2.&lt;/p&gt;
&lt;p&gt;PPK2 can, in some scenarios, have issues with certain chipsets/PCs, like the AM4/AM5 platform:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-ppk/issues/318"&gt;https://github.com/NordicSemiconductor/pc-nrfconnect-ppk/issues/318&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Such a data loss is less noticeable if the current draw is constant (+/ small variations)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your setup, that you explicitly state is equal in terms of nRF setup, however; there is a difference in avg measured current.&lt;/p&gt;
&lt;p&gt;It is important to establish what the expected current is for both your scenarios.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q2: Did you run the firmware that I shared with you?&lt;/p&gt;
&lt;p&gt;Please share plots and also; please share any changes that you performed on the firmware to replicate any unwanted behavior (as a .diff or .zip).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q3: Can you please address the former questions, related to your test setup?&lt;/p&gt;
[quote user="hkn"]&lt;p&gt;The issue is not the average, but the dynamic form of the current profile?&lt;/p&gt;
&lt;p&gt;It does sound like there&amp;#39;s less capacitance in your custom board, as compared to a DK. If you add a capacitor, lets say a 100 uF, does this improve the peaks?&lt;/p&gt;[/quote][quote user="hkn"]&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please share your exact changes if this issue is related to firmware behavior?&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q4: Do you use PPK2 in source meter mode, or in ampere meter mode?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To address your comments:&amp;nbsp;&lt;/p&gt;
[quote user="mojosam"]There is a difference in PWM peripheral controller configuration between nRF Connect SDK and nRF5 SDK, even when we use the nrfx_pwm module directly in both cases with identical configuration (as we have tried). As I mentioned, we attempted to address this possibility by porting the version of nrfx_pwm from nRF5 SDK -&amp;gt; nRF Connect SDK, and we still the same difference in behavior on nRF Connect SDK. So we don&amp;#39;t believe this is due to a difference in PWM peripheral controller configuration.[/quote]
&lt;p&gt;PWM hardware module does not draw additional current if the hardware is setup equal in both projects.&lt;/p&gt;
&lt;p&gt;Please see my other comments, such as the above comments about the ppk2 in general, as well as which mode you placed the PPK2 into, and please answer questions that are asked.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mojosam"]We don&amp;#39;t believe there is a difference in DCDC regulator configuration. We are calling&amp;nbsp;sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE) on the nRF5 SDK version of the app, and all of these builds have&amp;nbsp;regulator-initial-mode = &amp;lt; 0x1 &amp;gt; set in the zephyr.dts, which means DCDC is enabled (correct?)[/quote]
&lt;p&gt;Correct:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/include/zephyr/dt-bindings/regulator/nrf5x.h#L22"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/include/zephyr/dt-bindings/regulator/nrf5x.h#L22&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And as per my former measurements (and above explanation on how nRF regulators work); you shall see spikes in sleep modes.&lt;/p&gt;
[quote user="mojosam"]We have a call to&amp;nbsp;sd_power_mode_set(NRF_POWER_MODE_LOWPWR) in our nRF5 SDK code, so I added&amp;nbsp;nrf_power_task_trigger(NRF_POWER, NRF_POWER_TASK_LOWPWR) to our nRF Connect SDK test, but I we still have the high, spikey power consumption.[/quote]
&lt;p&gt;This is the default mode of the nRF52 device, so unless it was explicitly overridden, this shall not need to be set.&lt;/p&gt;
[quote user="mojosam"]We have a call to SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;in our nRF5 SDK code, so I added&amp;nbsp;it to our nRF Connect SDK test, but I we still have the high, spikey power consumption.[/quote]
&lt;p&gt;This is&amp;nbsp;not required in our devices, as per this thread:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90910/nrf_pwr_mgmt_run-impact-of-scb_scr_sleepdeep_msk/381524"&gt;RE: nrf_pwr_mgmt_run impact of SCB_SCR_SLEEPDEEP_Msk&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mojosam"]Are there other MCU settings that could be affecting system power behavior when PWM is enabled? For instance, other power regulator settings?[/quote]
&lt;p&gt;Short answer is &amp;quot;not directly&amp;quot; - long answer is that some modules will place the SoC in a different internal power mode, but again; this highly depend on what other feature(s) are currently active in your test setup.&lt;/p&gt;
&lt;p&gt;HFXO running? Radio running? SAADC running?&lt;/p&gt;
[quote user="mojosam"]And this isn&amp;#39;t simply academic. We are seeing a significant increase in power consumption on average on the version of our app built on nRF Connect SDK than we are on the version built with nRF5 SDK + embOS, even though we see lower power consumption in the nRF Connect SDK version in some phases of our code.&amp;nbsp;The only place we are seeing increased power consumption is when PWM is running, which led us to focus on this difference in behavior between the two software platforms.[/quote]
&lt;p&gt;I believe we need to take a step back, and evaluate external factors to the measurements, to rule out other potential error sources, as per the above questions.&lt;/p&gt;
&lt;p&gt;All tests that I have performed, on target silicon nRF52810/811, are unable to reproduce the scenario, which indicate that this is either an artifact of the measurement itself, or some other issue related to setup difference.&lt;/p&gt;
&lt;p&gt;As previously pointed out, the way you measure is relevant, and especially when testing on custom board(s), as there will be differences in external decoupling and overall power draw as compared to a DK from us.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK PWM on nRF52811 produces high power consumption with huge spikes not seen on nRF5 SDK PWM on the same MCU</title><link>https://devzone.nordicsemi.com/thread/555078?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 16:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ce6e43f-b194-4007-b342-1269a7970efd</guid><dc:creator>ntennies</dc:creator><description>&lt;p&gt;&lt;span&gt;H&amp;aring;kon, thank you for your response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;While the things you&amp;#39;ve highlighted might explain why you are not seeing the problem we are seeing when you test this on the nRF52810, that doesn&amp;#39;t address our core question: why are we seeing this&amp;nbsp;dramatic difference in behavior&amp;nbsp;between nRF Connect SDK&amp;nbsp;and&amp;nbsp;nRF5 SDK + embOS, running on the same hardware, and being tested in exactly the same way?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;difference in behavior here has to be caused by a difference in what software is doing. That&amp;#39;s the only explanation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But the problem here is that PWM used for clock generation does not require software to&amp;nbsp;do anything once the PWM is configured and started. PWM clock generation happens entirely in hardware on the nRF52 MCU. It doesn&amp;#39;t require interrupts to service anything (correct?).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So this means that if the PWM peripheral controller is configured and started in exactly the same way on nRF Connect SDK as on nRF5 SDK, we should see the hardware produce exactly the same power consumption profile on the same hardware tested in the same way. Correct?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But we&amp;#39;re not, so I think there are only three general possibilities here:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;There is a difference in PWM peripheral controller configuration between nRF Connect SDK and nRF5 SDK, even when we use the nrfx_pwm module directly in both cases with identical configuration (as we have tried). As I mentioned, we attempted to address this possibility by porting the version of nrfx_pwm from nRF5 SDK -&amp;gt; nRF Connect SDK, and we still the same difference in behavior on nRF Connect SDK. So we don&amp;#39;t believe this is due to a difference in PWM peripheral controller configuration.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There is a difference in the configuration of some other part of the MCU:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;We don&amp;#39;t believe there is a difference in DCDC regulator configuration. We are calling&amp;nbsp;sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE) on the nRF5 SDK version of the app, and all of these builds have&amp;nbsp;regulator-initial-mode = &amp;lt; 0x1 &amp;gt; set in the zephyr.dts, which means DCDC is enabled (correct?)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;We have a call to&amp;nbsp;sd_power_mode_set(NRF_POWER_MODE_LOWPWR) in our nRF5 SDK code, so I added&amp;nbsp;nrf_power_task_trigger(NRF_POWER, NRF_POWER_TASK_LOWPWR) to our nRF Connect SDK test, but I we still have the high, spikey power consumption.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;We have a call to SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;in our nRF5 SDK code, so I added&amp;nbsp;it to our nRF Connect SDK test, but I we still have the high, spikey power consumption.&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Are there other MCU settings that could be affecting system power behavior when PWM is enabled? For instance, other power regulator settings?&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There is a difference in the behavior of non-PWM interrupts or tasks other than main while PWM is running. In other words, enabling PWM&amp;nbsp;is causing some non-PWM interrupts to fire periodically or a system thread is running periodically. Does VSCode / Zephyr provide a way to monitor which interrupts and threads are running so we can rule out this option?&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Our goal here is to understand why we&amp;#39;re seeing this fundamental difference in power consumption behavior while PWM is enabled between nRF Connect SDK and nRF5 SDK + embOS, while running on the same hardware, and while being tested in an identical way.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;And this isn&amp;#39;t simply academic. We are seeing a significant increase in power consumption on average on the version of our app built on nRF Connect SDK than we are on the version built with nRF5 SDK + embOS, even though we see lower power consumption in the nRF Connect SDK version in some phases of our code.&amp;nbsp;The only place we are seeing increased power consumption is when PWM is running, which led us to focus on this difference in behavior between the two software platforms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK PWM on nRF52811 produces high power consumption with huge spikes not seen on nRF5 SDK PWM on the same MCU</title><link>https://devzone.nordicsemi.com/thread/555031?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 11:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b890b410-d6bb-41da-9a6d-7425f242b044</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Nathan,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mojosam"]something that I think Nordic may be missing because you are using the nRF52832DK and nRF52840DK to emulate the nRF52810 and nRF52811.[/quote]
&lt;p&gt;Sorry for not being explicit. Even when the board variant is the nRF52-DK; I&amp;nbsp;did run tests&amp;nbsp;on a nRF52810 target.&lt;/p&gt;
&lt;p&gt;And the below screenshots are from running the same fw as previously shared, on a nRF52811 target.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="mojosam"]As we indicated, when we built our test using the nrf52840dk_nrf52811 board, and we ran this code on our nRF52811-based custom board, we see the problem. Without making any modifications, if we run this on our nRF52840 board, we do not see the problem, even though the nRF52840 can be used to emulate the nRF52811. I believe there is something about how Zephyr is treating the actual nRF52811 -- even if the&amp;nbsp;&lt;span&gt;nrf52840dk_nrf52811 board definition is used -- that is different than how this works with the actual nRF52840.&lt;/span&gt;[/quote]
&lt;p&gt;If I understand you correctly, you are pointing towards this define in nrf52840dk board definition:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/boards/nordic/nrf52840dk/CMakeLists.txt#L9"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/boards/nordic/nrf52840dk/CMakeLists.txt#L9&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;or the equivalent for nrf52dk/nrf52810:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/boards/nordic/nrf52dk/CMakeLists.txt#L7"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.0/boards/nordic/nrf52dk/CMakeLists.txt#L7&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please share your exact changes if this issue is related to firmware behavior?&lt;/p&gt;
[quote user="mojosam"]&lt;p&gt;&lt;span&gt;As an example of this, it just so happens we have an older version of the nRF52811 board we&amp;#39;re using that is based on the nRF52810. Again, this board is essentially just an nRF52810 with power circuitry (it&amp;#39;s a devkit we created with a daughterboard connector, so if we don&amp;#39;t have the daughterboard connected, it&amp;#39;s just the nRF52810 with no peripherals attached).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We took the code you provided and&amp;nbsp;&lt;/span&gt;&lt;span&gt;made a single modification to it, changing which pad was used for PWM output (to 0,14). We then created a build config for the nRF52dk_nrf52810, just as I assume you did (BTW, we always select &amp;quot;Optimize for Debugging&amp;quot; in the build config to prevent optimization). PWM output works as expected, but here&amp;#39;s what the PPK2 output looks like:&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Are you testing with the PPK2 in ampere meter mode, or in source mode?&lt;/p&gt;
[quote user="mojosam"]You can instantly see a dramatic difference between this and the capture you made on the nRF52DK. In your capture, you never see current spikes above maybe 1.3 mA once PWM was enabled, but here we&amp;#39;re getting current spikes over 10 mA. In addition, the noise in your capture was evenly centered the 952 uA average, but in this capture from an actual nRF52810, we see spikes going down close to zero uA.[/quote]
&lt;p&gt;The issue is not the average, but the dynamic form of the current profile?&lt;/p&gt;
&lt;p&gt;It does sound like there&amp;#39;s less capacitance in your custom board, as compared to a DK. If you add a capacitor, lets say a 100 uF, does this improve the peaks?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also see smaller differences when using ampere mode:&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/pastedimage1763723402313v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As compared to source meter:&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/pastedimage1763723503933v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I believe the direct reason why you are seeing a difference in the dynamic measurement is due to LDO vs. DCDC. Try disabling the DCDC:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;reg {
	regulator-initial-mode = &amp;lt;NRF5X_REG_MODE_LDO&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then the ampere mode will look like this due to less dynamic current consumption (but higher overall current consumption..) draw from the chip:&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/pastedimage1763723938607v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK PWM on nRF52811 produces high power consumption with huge spikes not seen on nRF5 SDK PWM on the same MCU</title><link>https://devzone.nordicsemi.com/thread/554989?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 07:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8faeef49-16e9-4b83-b0e9-cf807fbc1a25</guid><dc:creator>ntennies</dc:creator><description>&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;&amp;gt; It almost looks like there is something asserting or reseting on your end?&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t believe this is the case. Maybe I didn&amp;#39;t make this clear, but when we see this high power consumption with huge current spikes after turning on PWM on the nRF52811 using nRF Connect SDK, we can see that the PWM output is working correctly on our digital logic analyzer, producing the required 3.2 MHz clock.&amp;nbsp;So the MCU is definitely not resetting.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have support for printk logging via serial set up -- we&amp;#39;ve been using a custom logging mechanism based on Segger RTT -- and we don&amp;#39;t have assertions enabled, so we don&amp;#39;t think an assertion is causing this issue. But the point is, nothing is affecting the correct output of the PWM signal, despite the high power consumption and current spikes.&lt;/p&gt;
&lt;p&gt;Furthermore, in our actual application firmware, we turn on PWM for about 100ms toward the beginning our app -- and we see the same high power consumption and current spikes -- but our application continues to run correctly. So if there is a problem with a thread, it&amp;#39;s definitely not the main thread.&lt;/p&gt;
&lt;p&gt;&amp;gt;&lt;span&gt;I used nrf52dk/nrf52810 as the board for testing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As we indicated, when we built our test using the nrf52840dk_nrf52811 board, and we ran this code on our nRF52811-based custom board, we see the problem. Without making any modifications, if we run this on our nRF52840 board, we do not see the problem, even though the nRF52840 can be used to emulate the nRF52811. I believe there is something about how Zephyr is treating the actual nRF52811 -- even if the&amp;nbsp;&lt;span&gt;nrf52840dk_nrf52811 board definition is used -- that is different than how this works with the actual nRF52840.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As an example of this, it just so happens we have an older version of the nRF52811 board we&amp;#39;re using that is based on the nRF52810. Again, this board is essentially just an nRF52810 with power circuitry (it&amp;#39;s a devkit we created with a daughterboard connector, so if we don&amp;#39;t have the daughterboard connected, it&amp;#39;s just the nRF52810 with no peripherals attached).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We took the code you provided and&amp;nbsp;&lt;/span&gt;&lt;span&gt;made a single modification to it, changing which pad was used for PWM output (to 0,14). We then created a build config for the nRF52dk_nrf52810, just as I assume you did (BTW, we always select &amp;quot;Optimize for Debugging&amp;quot; in the build config to prevent optimization). PWM output works as expected, but here&amp;#39;s what the PPK2 output looks like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:428px;max-width:590px;" height="428" src="https://devzone.nordicsemi.com/resized-image/__size/1180x856/__key/communityserver-discussions-components-files/4/Figure3.png" width="590" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can instantly see a dramatic difference between this and the capture you made on the nRF52DK. In your capture, you never see current spikes above maybe 1.3 mA once PWM was enabled, but here we&amp;#39;re getting current spikes over 10 mA. In addition, the noise in your capture was evenly centered the 952 uA average, but in this capture from an actual nRF52810, we see spikes going down close to zero uA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Furthermore, I demonstrated that our code is continuing to run correctly even while this high power consumption and current spikes are occurring: I did this by modding your test code to turn PWM on for 500ms and then off for 500ms, looping forever. I see the expected output on the logic analyzer, and here&amp;#39;s what I see in PPK2:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="height:408px;max-height:408px;max-width:564px;" height="408" src="https://devzone.nordicsemi.com/resized-image/__size/1128x816/__key/communityserver-discussions-components-files/4/Figure6.png" width="563" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Furthermore, you can see exactly how strange the behavior of the power consumption is if we zoom on the end of the 100ms delay and the start of PWM:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="height:409px;max-height:409px;max-width:567px;" height="409" src="https://devzone.nordicsemi.com/resized-image/__size/1134x818/__key/communityserver-discussions-components-files/4/Figure4.png" width="566" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;I have spent a lot of time looking at PPK2 output from the nRF52840, nRF52810, and nRF52811 over the last several years using the nRF5 SDK, and I have never seen anything that looks like that when the MCU is in Sleep mode (as it should be in this case, after PWM is started). Furthermore, when I run the same code based on nRF5 SDK + embOS on this nRF52810 board, we again do not see this high power consumption or huge current spikes:&lt;/p&gt;
&lt;p&gt;&lt;img style="height:457px;max-height:457px;max-width:633px;" height="457" src="https://devzone.nordicsemi.com/resized-image/__size/1266x914/__key/communityserver-discussions-components-files/4/Figure5.png" width="632" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;It seems to me that there is something about the nRF Connect SDK implementation for the nRF52810 and nRF52811 that is not working properly, something that I think Nordic may be missing because you are using the nRF52832DK and nRF52840DK to emulate the nRF52810 and nRF52811.&lt;/p&gt;
&lt;p&gt;Please let me know what you think is happening. Thank you!&lt;/p&gt;
&lt;p&gt;Nathan Tennies&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK PWM on nRF52811 produces high power consumption with huge spikes not seen on nRF5 SDK PWM on the same MCU</title><link>https://devzone.nordicsemi.com/thread/554932?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 14:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ea280a7-28f5-41f9-b63b-6ad46fa1f3b2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It almost looks like there is something asserting or reseting on your end? What does the log output look like?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the sample that I used for testing, which yielded this result in ppk2:&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/pastedimage1763650126497v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And 3.2 MHz (HFINT sourced, which is why its a bit off on my end) output:&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/pastedimage1763650177568v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the sample as a .zip for your convenience:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0488.blinky_5F00_pwm.zip"&gt;devzone.nordicsemi.com/.../0488.blinky_5F00_pwm.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I used nrf52dk/nrf52810 as the board for testing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>