<?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>DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79659/dfubuttonless-consume-power</link><description>Hi, 
 I&amp;#39;m using NRF52832 with s132 softdevice for a low power project. I notice that when running firmware with DFU Buttonless, the SoC consume more power than without it. 
 I refer ble_app_buttonless_dfu example for my firmware. From my understanding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Nov 2022 14:31:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79659/dfubuttonless-consume-power" /><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395590?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 14:31:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e2926a1-9c2c-4fa5-9c91-4730888155c7</guid><dc:creator>Sophisti</dc:creator><description>&lt;p&gt;Thank you &lt;a href="https://devzone.nordicsemi.com/members/srac"&gt;srac&lt;/a&gt;&amp;nbsp; we have turned of all logging so UART should also be off. Perhaps it is another issue then.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8081.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../8081.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395573?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 13:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e498d48-a7c9-4129-bbb9-3f6ccc28ec18</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. However, the SDK bootloader should always reset the UART before entering the main app(). Also, the idle current with UART RX enabled should be in the 1 mA range, not &amp;gt;2 mA as shown in your measurement.&lt;/p&gt;
&lt;p&gt;Do you continue to receive data from BMA400 as before? I&amp;#39;m asking because your idle current is similar to what it would be if the TWIM was stuck in receive mode for some reason (with LDO regulator).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395571?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 13:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49ad4200-825d-4ff1-b180-e0877d3c7d66</guid><dc:creator>srac</dc:creator><description>&lt;p&gt;I blieve problem was the bootloader&amp;#39;s UART. I forgot to change bootloader&amp;#39;s sdk_config.h according to project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395570?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 13:28:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1fc6fef-5174-421a-9c45-798386363b3e</guid><dc:creator>Sophisti</dc:creator><description>&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/3108.MicrosoftTeams_2D00_image.png" /&gt;&lt;br /&gt;It is the idle current draw that is the problem. The &amp;#39;spikes&amp;#39; you see is&amp;nbsp;are&amp;nbsp;BMA400 I2C event. But without Buttonless firmware the nRF52805&amp;nbsp;goes to sleep and draws 10-20 uA.&lt;br /&gt;&lt;br /&gt;UART and Debug is turned off.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395559?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 13:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a9f580-6c5d-457c-8cf5-e306dc4a26ff</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;SVCI&lt;/span&gt; interface allows the main application to make calls to functions inside the bootloader. It is currently used to let the application change the adv. name to be used when the bootloader starts up in DFU mode: &lt;span&gt;&lt;a title="Setting new advertisement name" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/service_dfu.html?cp=8_1_3_3_5_4_1#secure_dfu_buttonless_operations_name"&gt;Setting new advertisement name&lt;/a&gt;. But I don&amp;#39;t see how this could lead to the increased current consumption.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is 2mA the average current draw, or is it the idle current? Also, did you make sure to exit&amp;nbsp;&lt;a title="Debug Interface mode" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/dif.html?cp=4_0_0_3_7_3#debuginterfacemode"&gt;Debug Interface mode&lt;/a&gt; before you conducted the measurements (you can power-cycle the board after programming to ensure this)?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395542?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 12:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d638779e-3fd8-4ff3-8f90-aa282aaa0010</guid><dc:creator>Sophisti</dc:creator><description>&lt;p&gt;The firmware without&amp;nbsp;buttonless&amp;nbsp;is around 20 uA and with buttonless is around 2 mA. But in both situations the firmware works as intended. Logging is off that is certain.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What is the VSCI interface they mention maybe that is the solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395522?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 11:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b8d409-c67f-40f3-a01f-c7b1638db7c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;There can be a number of reasons for the increased current consumption. Anything from forgetting to turn off logging over UART to having an assertion in the code. Have you measured the idle current in your case? If so, did it increase after you enabled the buttonless service?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/395520?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 10:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06dff11e-e6da-448d-b5ae-e061daa88a52</guid><dc:creator>Sophisti</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/nghia"&gt;nghia&lt;/a&gt;&amp;nbsp; and &lt;a href="https://devzone.nordicsemi.com/members/srac"&gt;srac&lt;/a&gt;&amp;nbsp; we have the same problem. Have either of you been able to solve this issue and if so how?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/330910?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 16:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6314e219-8379-4d6d-9354-74d767dfb4dd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/srac"&gt;srac&lt;/a&gt;, please create a new ticket and describe the problem you are seeing.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/330898?ContentTypeID=1</link><pubDate>Thu, 23 Sep 2021 14:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db21cb5e-fb1b-4df0-8812-5685f6fa19c2</guid><dc:creator>srac</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have the same problem. Did you find anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/329919?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 06:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b11feec2-8b36-4ffe-b7b5-977dc6ba1a60</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No, it does not run in the background.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/329909?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 02:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08df5818-a976-4ed3-a87e-1fa291d9c806</guid><dc:creator>nghia</dc:creator><description>&lt;p&gt;&lt;span&gt;bleDfuButtonlessAsyncSvciInit() call to&amp;nbsp;ble_dfu_buttonless_async_svci_init() in ble_dfu_unbonded.c. I digged into this function and found that&amp;nbsp;NRF_SVCI_ASYNC_FUNC_DEFINE init async SVCI interface. Does this interface run in the background and consume power?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/329637?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 13:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f570f3f0-6fed-4914-b3f3-de62fa3857ca</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The bootloader will not consume power&amp;nbsp; when the app is running.&lt;/p&gt;
&lt;p&gt;Is the implementation of your bleDfuButtonlessAsyncSvciInit() function identical to the ble_dfu_buttonless_async_svci_init() function used in the template example? What happens if you don&amp;#39;t call bleDfuButtonlessAsyncSvciInit() in your new application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/329606?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 12:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23720da7-ba62-446b-be43-255cb38e4ce2</guid><dc:creator>nghia</dc:creator><description>&lt;p&gt;The idle current for #1 and #2 is about 10uA and 2mA. I debugged, both scenario work correctly. Is it possible that the bootloader consumes power while SoC is running main()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/329582?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 11:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f33cf1dd-674c-4b19-9591-9dbb3ee6513f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How much current are you measuring for scenario #1 and #2? The buttonless mechanism should not have any impact on the idle current, but maybe there is an issue with the integration that causes your program to crash? Have you tried to debug the new application to see if that might be the case?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/329570?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 10:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18ee3501-1ca1-4ab6-8c86-31db5114acf8</guid><dc:creator>nghia</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for supporting.&lt;/p&gt;
&lt;p&gt;I will describe my prj so you can get the idea. I have a firmware using BLE to connect with mobile. I enable dfu butonless service, ble nus and ble bas service in the firmware.&lt;/p&gt;
&lt;p&gt;I flash the firmware in 2 way:&lt;/p&gt;
&lt;p&gt;#1: I erase the chip and flash hex file using Segger IDE&lt;/p&gt;
&lt;p&gt;#2: I flash the bootloader, compress firmware to a zip file and flash using buttonless example.&lt;/p&gt;
&lt;p&gt;The firmware in 2 above cases are almost the same, in #2, I just add&amp;nbsp;bleDfuButtonlessAsyncSvciInit() at the begining of main().&lt;/p&gt;
&lt;p&gt;The result is firmware in #2 consumes more power than #1.&lt;/p&gt;
&lt;p&gt;I wonder if bootloader of&amp;nbsp;&lt;span&gt;bleDfuButtonlessAsyncSvciInit() consumes power?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFUButtonless consume power?</title><link>https://devzone.nordicsemi.com/thread/329560?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 09:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b095801-f768-484f-8a8f-c92dd52534ed</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The buttonless service itself will not have any impact on the idle current. The buttonless template application does however enable logging over UART which will increase the current consumption some. If you want to measure the idle (System ON) current I suggest you disable logging over UART by setting NRF_LOG_BACKEND_UART_ENABLED to &amp;#39;0&amp;#39; and also comment the call to advertising_start() in main().&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>