<?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>power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124025/power-consumption----zephyr-vs-bare-metal</link><description>having just seen the announcment about the bare-metal SDK, i gave it a try using my &amp;quot;hello world&amp;quot; of BLE -- a minimal beacon app which i actually use to benchmark BLE platforms from multiple silicon vendors.... 
 for sure, my bare-metal program image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Sep 2025 14:38:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124025/power-consumption----zephyr-vs-bare-metal" /><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/548772?ContentTypeID=1</link><pubDate>Mon, 15 Sep 2025 14:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad270155-73d7-455a-a788-c43b22b4cca0</guid><dc:creator>Joel Kauppo</dc:creator><description>&lt;p&gt;Hi, just to explain here the large difference between the code sizes: The bare metal footprint should always include the SoftDevice NVM usage, which is 107.0 kB for&amp;nbsp;&lt;span&gt;s115_9.0.0-3.prototype as per the release notes (&lt;a href="https://docs.nordicsemi.com/bundle/nrf-bm-latest/page/s115_9.0.0-3.prototype_release-notes.main.html#s115-9-0-0-3-prototype"&gt;s115 release notes&lt;/a&gt;). So, the corresponding difference would be 149.0 kB vs ~180 kB, which is still notable but not as significant.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not entirely sure about the power consumption differences in your latest reply, but I would recommend&amp;nbsp;testing&amp;nbsp;the differences with the Power Profiling sample, as these are kept similar between nRF Connect SDK and the Bare Metal Option and the sample is optimized for lowest possible power consumption. This can be used to rule out some accidental differences in e.g., peripherals being powered in one version but not the other. &lt;br /&gt;&lt;br /&gt;You can also use the Board Configurator app from nRF Connect for Desktop to disable VCOMs to ensure they are not drawing power.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547529?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 15:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77336ffd-736e-4310-bef5-52da83bf9285</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here&amp;#39;s 10 advertising events from the bare-metal app captured with a 3V3 source....&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bare.ppk2"&gt;devzone.nordicsemi.com/.../bare.ppk2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the duration of the advertising events seems &amp;quot;better&amp;quot; now (around 2.7-2.8 ms)....&lt;/p&gt;
&lt;p&gt;but this is quite different from the 2.0 ms shown in the capture you show above....&lt;/p&gt;
&lt;p&gt;i&amp;#39;m also struck by how &amp;quot;fast&amp;quot; you return to deep-sleep after the last TX.... i wouldn&amp;#39;t have expected this....&lt;/p&gt;
&lt;p&gt;several questions:&lt;/p&gt;
&lt;p&gt;my DK is PCA10156 | 0.9.2 | 2025.71057719565&amp;nbsp; .... don&amp;#39;t know if this is the &amp;quot;latest&amp;quot; or whether that even matters???&lt;/p&gt;
&lt;p&gt;and like you, i&amp;#39;ll forget to load the softdevice....&amp;nbsp; i&amp;#39;ll often be switching between the zephyr and bare-metal app on the *same* board, reloading their images through vscode....&amp;nbsp; does zephyr itself program the &amp;quot;softdevice area&amp;quot;, and if so perhaps i was running my bare-metal app with the wrong system firmware???&lt;/p&gt;
&lt;p&gt;still, i&amp;#39;m seeing **more** current consumption (per event, per second) in the bare-metal capture versus my zephyr capture:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zeph.ppk2"&gt;devzone.nordicsemi.com/.../zeph.ppk2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;why is bare-metal higher than zephyr???&amp;nbsp; and why don&amp;#39;t is see 2s events like the one you showed above???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547506?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 13:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2037c2e7-2482-4a92-b943-f150c97a90a9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I was doing 3.3V source mode.&amp;nbsp;&lt;br /&gt;You can flash the hex file using&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;nrfjprog --program file.hex --sectorerase&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; or use the nrf Connect for Desktop -&amp;gt; Programmer application.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Make sure you flash the softdevice as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547499?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 13:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9e73d7c-56b0-4b93-a4c0-2475cc14af0a</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;i&amp;#39;m sourcing 1V8 through the PPK....&amp;nbsp; higher current but lower power....&lt;/p&gt;
&lt;p&gt;what mode are you in???&lt;/p&gt;
&lt;p&gt;silly question, but how should i load the hex file???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547469?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 12:27:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2820155-5e2d-425b-a5d7-90011f0dae0e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you send us your trace so we can take a look. Here is my trace when build and flash the&amp;nbsp;bluejoule_bm project:&amp;nbsp;&lt;br /&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/bm.png" /&gt;&lt;br /&gt;&lt;br /&gt;I attached the hex file here.&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7723.zephyr.hex"&gt;devzone.nordicsemi.com/.../7723.zephyr.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547453?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 11:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5717af44-70fe-47f2-a3b6-a41722a95d0b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please ignore the question above. I&amp;nbsp;forgot to flash the softdevice :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547412?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 08:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:931c35e1-a7e1-4bc3-8b34-ed8a3ee5928e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bob,&amp;nbsp;&lt;br /&gt;Could you please check the binary in bluejoule_bm&amp;nbsp; ? I flashed it on a nRF54L15DK but it doesn&amp;#39;t seem that it can run on the DK. &lt;br /&gt;&lt;br /&gt;The other .zip for Zephyr I can see that the binary run. Could you tell which measuring mode did you use&amp;nbsp; ?I did a quick check here with source mode 3.3V:&lt;br /&gt;&lt;br /&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/pastedimage1756801286200v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547358?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 14:25:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3905be5e-bb3f-4075-8ac4-028f10f357c5</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3465.beacon_5F00_advertiser.zip"&gt;devzone.nordicsemi.com/.../3465.beacon_5F00_advertiser.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this project uses common zephyr code, and has been built for nRF52 as well as nRF54....&amp;nbsp; the `build54` should contain the actually `.hex` file plus other build artifacts....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bluejoule_5F00_bm.zip"&gt;devzone.nordicsemi.com/.../bluejoule_5F00_bm.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this project uses the bare-metal SDK....&amp;nbsp; again, the `build` folder should have all of the expected binary artifacts....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547356?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 14:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e26ecde4-9431-4934-a1d4-c31114d2c800</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bob,&amp;nbsp;&lt;br /&gt;It does look like longer payload on the 2nd figure. It&amp;#39;s strange that they have the same raw packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If possible can you possible a simple project or hex file in both case so we can test here ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547351?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2025 13:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dee1915-a87e-4226-b1ea-e390b3ce0917</guid><dc:creator>bios-bob</dc:creator><description>&lt;p&gt;yes....&amp;nbsp; if i receive the packet (say) using nRF Connect on my mobile, the raw packets are absolutely identical!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: power consumption -- zephyr vs bare-metal</title><link>https://devzone.nordicsemi.com/thread/547237?ContentTypeID=1</link><pubDate>Sat, 30 Aug 2025 11:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12695036-a786-43e1-9ef9-f3271326b91c</guid><dc:creator>knutel</dc:creator><description>&lt;p&gt;Hi. Is the length of the adv data the same in both cases?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;k&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>