<?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>Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94798/thingy91-change-to-1-9-x-power-usage-baseline-increases</link><description>I was helping an existing customer update their application to a more recent version of NCS (1.9.1). We ran into a showstopper though, the Thingy91 is drawing about 1.2mA at idle. After reviewing the Thingy91 overlays and configuration I made sure our</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jun 2023 14:27:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94798/thingy91-change-to-1-9-x-power-usage-baseline-increases" /><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/430541?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 14:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:100dd702-a4ed-442d-ba8d-3ebc521a4baf</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Solution was:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi, I found the source of the 1.3mA. It&amp;#39;s the HF crystal running. If you add NRF_CLOCK-&amp;gt;TASKS_HFCLKSTOP = 1; in the ble_ready() callback, the current consumption goes down.&lt;/p&gt;
&lt;p&gt;Not yet sure why this happens only after a power on reset, so I will have to dig into the drivers a bit more, but at least stopping the HFXO in the callback should be a good workaround for now.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/402463?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 16:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad8f4358-13e3-4191-a518-7db2129a9c07</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;It&amp;#39;s definitely resetting properly! I&amp;#39;ve noticed that the current spikes once ble_enable is called. Our app otherwise runs as expected when BLE is not enabled. We are advertising and scanning periodically, even with this functionality cut out we&amp;#39;re still seeing the high current.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve uploaded the code to the private ticket. Thanks again for all your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/402137?ContentTypeID=1</link><pubDate>Sun, 25 Dec 2022 13:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aca8a3af-645a-4a01-9ca7-18165bb168f9</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Thank you so much for your feedback &lt;a href="https://devzone.nordicsemi.com/members/stian"&gt;Stian Røed Hafskjold&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;I was using the reset &amp;quot;device&amp;quot; to reset the nRF52. I&amp;#39;ll double check the nRF91 is indeed resetting the nRF52. That may solve it for us right there!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/402082?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 13:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32b2bb22-938d-4860-82c5-42e34cdbd210</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I tried with the hex files and I can see the same behavior. What I noticed is that if I only do a power on reset on the nRF91, the current drops. So it looks to me like the communication between the nRF52 and nRF91 gets stuck when both are reset at the same time. I.e. the nRF52 is not ready to receive/send data when the nRF91 is reset, and then the nRF91 get stuck in some kind of loop, or the UART transaction gets stuck, or something similar. If the nRF52 is already running when the nRF91 resets the current goes down to normal levels.&lt;/p&gt;
&lt;p&gt;I will do some more research and get back to you. This could be an already known bug in the lp_hci_uart sample fixed in later NCS revisions, or it could have been introduced by your code changes. Anyways, if you are able to share the entire project in the private case, it could potentially speed up the process of finding the root cause, if it turns out that this is not caused by faulty drivers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/402014?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 20:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba265a08-7336-4d6d-b2d7-4dce5615ac30</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Re: GPIO register status:&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/pastedimage1671741726322v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;❯ nrfjprog --memrd 0x50000700 --n 0x80 &amp;amp;&amp;amp; nrfjprog --memrd 0x50000A00 --n 0x40
0x50000700: 00000000 00000000 00000000 00000000   |................|
0x50000710: 00000000 00000000 00000000 00000000   |................|
0x50000720: 00000000 00000000 00000000 00000000   |................|
0x50000730: 00000000 00000000 00000000 00000000   |................|
0x50000740: 00000000 00000000 00000000 00000000   |................|
0x50000750: 00000000 00000000 00000000 00000000   |................|
0x50000760: 00000000 00000000 00000000 00000000   |................|
0x50000770: 00000000 00000000 00000000 00000000   |................|
0x50000A00: 00000000 00000000 00000000 00000000   |................|
0x50000A10: 00000000 00000000 00000000 00000000   |................|
0x50000A20: 00000003 00000000 00000000 00000000   |................|
0x50000A30: 00000000 00000000 00000000 00000000   |................|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I reboot it where it goes into the 1.3mA state it produces the same GPIO register output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;❯ nrfjprog --memrd 0x50000700 --n 0x80 &amp;amp;&amp;amp; nrfjprog --memrd 0x50000A00 --n 0x40
0x50000700: 00000000 00000000 00000000 00000000   |................|
0x50000710: 00000000 00000000 00000000 00000000   |................|
0x50000720: 00000000 00000000 00000000 00000000   |................|
0x50000730: 00000000 00000000 00000000 00000000   |................|
0x50000740: 00000000 00000000 00000000 00000000   |................|
0x50000750: 00000000 00000000 00000000 00000000   |................|
0x50000760: 00000000 00000000 00000000 00000000   |................|
0x50000770: 00000000 00000000 00000000 00000000   |................|
0x50000A00: 00000000 00000000 00000000 00000000   |................|
0x50000A10: 00000000 00000000 00000000 00000000   |................|
0x50000A20: 00000003 00000000 00000000 00000000   |................|
0x50000A30: 00000000 00000000 00000000 00000000   |................|&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/402012?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 20:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7882fe91-f330-4166-bdc4-9b7fb1082288</guid><dc:creator>Jared</dc:creator><description>[quote userid="4556" url="~/f/nordic-q-a/94798/thingy91-change-to-1-9-x-power-usage-baseline-increases/401982"]Can you also please post the hex files for your application, both the nRF52 and nRF91 hex files? Then I can try to flash them here and see if I can further narrow down the issue.[/quote]
&lt;p&gt;You can check out the private ticket 300243 to get those files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/402010?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 20:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c3a52a-f048-4488-95a4-0ead42a15cdd</guid><dc:creator>Jared</dc:creator><description>[quote userid="4556" url="~/f/nordic-q-a/94798/thingy91-change-to-1-9-x-power-usage-baseline-increases/401982"]Can you try to measure the current on the nRF91 and nRF52 current measurement headers, just to confirm that the current goes to the nRF91?[/quote]
&lt;p&gt;Yup. Minus a small amount going to the nRF52 the bulk is going to the nRF91. This was one of the first things that I checked.&lt;/p&gt;
[quote userid="4556" url="~/f/nordic-q-a/94798/thingy91-change-to-1-9-x-power-usage-baseline-increases/401982"]When compiling for thingy91, the UART lines are routed to the nRF52, so that the nRF52 can be used as the UART to USB bridge. I&amp;#39;m thinking that maybe something could go wrong with this setup, and then only after a power on reset? Did you change anything on the nRF52 firmware, or did you unintentionally erase the firmware?[/quote]
&lt;p&gt;We&amp;#39;ve been using the same code as the lp_hci_uart for the nRF52 side. See my configuration overlays and CMakeLists.txt&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_HCI_RAW_H4=y
CONFIG_BT_HCI_RAW_H4_ENABLE=y

CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y

# Mitigation for NCSIDB-356
CONFIG_BT_LL_SW_SPLIT=y
CONFIG_ZERO_LATENCY_IRQS=n

CONFIG_THREAD_NAME=y

# Fix scan issues (?)
CONFIG_ISR_STACK_SIZE=4092&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Override prj.conf defaults

CONFIG_BOOTLOADER_MCUBOOT=n
CONFIG_CONSOLE=n

CONFIG_GPIO=y
CONFIG_GPIO_AS_PINRESET=y

CONFIG_BT_CTLR=y
CONFIG_BT_WAIT_NOP=y
CONFIG_BT_MAX_CONN=16
CONFIG_BT_TINYCRYPT_ECC=n
CONFIG_BT_CTLR_ASSERT_HANDLER=y

CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n
CONFIG_UART_1_NRF_HW_ASYNC=y
CONFIG_UART_1_NRF_HW_ASYNC_TIMER=2
CONFIG_NRF_SW_LPUART=y
CONFIG_NRF_SW_LPUART_INT_DRIVEN=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* SPDX-License-Identifier: Apache-2.0 */

&amp;amp;uart1 {
	current-speed = &amp;lt;1000000&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	tx-pin = &amp;lt;25&amp;gt;;
	rx-pin = &amp;lt;32&amp;gt;;
	/delete-property/ rts-pin;
	/delete-property/ cts-pin;
	/delete-property/ hw-flow-control;

	lpuart: nrf-sw-lpuart {
		compatible = &amp;quot;nordic,nrf-sw-lpuart&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		label = &amp;quot;LPUART&amp;quot;;
		req-pin = &amp;lt;22&amp;gt;;
		rdy-pin = &amp;lt;19&amp;gt;;
	};
};

/ {
	chosen {
		zephyr,bt-c2h-uart=&amp;amp;lpuart;
	};
};

&amp;amp;gpiote {
	interrupts = &amp;lt;6 NRF_DEFAULT_IRQ_PRIORITY&amp;gt;;
};

/* Disabling uart rx pin to get low power */
&amp;amp;uart0 {
	tx-pin = &amp;lt;6&amp;gt;;
	/delete-property/ rx-pin;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hci_lpuart)

# NORDIC SDK APP START
target_sources(app PRIVATE ${ZEPHYR_BASE}/samples/bluetooth/hci_uart/src/main.c)
# NORDIC SDK APP END&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/401982?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 15:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9286b2a-c65f-4976-88f9-e206889cfe0f</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Can you try to measure the current on the nRF91 and nRF52 current measurement headers, just to confirm that the current goes to the nRF91?&lt;/p&gt;
&lt;p&gt;When compiling for thingy91, the UART lines are routed to the nRF52, so that the nRF52 can be used as the UART to USB bridge. I&amp;#39;m thinking that maybe something could go wrong with this setup, and then only after a power on reset? Did you change anything on the nRF52 firmware, or did you unintentionally erase the firmware?&lt;/p&gt;
&lt;p&gt;You can also try to read out the GPIO configuration and compare with the schematics to see if any of the pins controlling other external components on the thingy91 have the wrong configuration. Please have a look at my answer &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94117/nrf52840-dongle-and-blinky-example-using-gpio-0-31-draws-8ma/398294"&gt;here&lt;/a&gt;, and post the result from the GPIO register read out. Then I can help to check the configuration.&lt;/p&gt;
&lt;p&gt;Can you also please post the hex files for your application, both the nRF52 and nRF91 hex files? Then I can try to flash them here and see if I can further narrow down the issue.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/401346?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 18:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ba18dba-7500-48e3-9ad3-ebaab9fe8be0</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Physical removal of the power to the Li-on pins, switching off the bench supply or switching off power from the PPK2 if i&amp;#39;m using that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/401327?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 16:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d14c8506-b845-4110-bad4-dddef43dd601</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;How are you resetting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/401137?ContentTypeID=1</link><pubDate>Sat, 17 Dec 2022 15:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08580c14-02d1-434e-956e-eb83db5c5c4b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No I don&amp;#39;t. Power supply only at 4V. Connected directly to the Li-on pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/401100?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 15:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ebf35a2-3577-4922-abe5-970abba6722a</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Do you have USB connected when measuring?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/400953?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 20:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51550600-7c19-456b-8b6f-06e5f72ca23b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Still need some help on this one. I can program the board and it will operate as expected (low current during standby) but if I reset the board something latches and the board draws 1.3mA in the sleep state. Any insights are appreciated.&lt;/p&gt;
&lt;p&gt;Debugger is disconnected during my testing and I&amp;#39;m providing 4.0V to LiON pins via the&amp;nbsp;PPK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/400642?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 13:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fdb6e7f-25de-444f-8543-47305f489d6f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Yep did that too. Still need the console for RTT so I can&amp;#39;t fully disable that but the pm_device APIs are super useful especially for dynamic applications! Thanks &lt;a href="https://devzone.nordicsemi.com/members/achimkraus"&gt;Achim Kraus&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/400537?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 08:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa29bdd5-6a47-4f5b-bdc5-4b4a4f394c92</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;In the meantime I&amp;#39;m used to disable the UART in a dynamic way aligned with the sleep state of the modem.&lt;/p&gt;
&lt;p&gt;CONFIG_PM_DEVICE=y&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;power_manager.h&amp;quot;

static const struct device *const uart0_dev = DEVICE_DT_GET_OR_NULL(DT_CHOSEN(zephyr_console));

if (device_is_ready(uart0_dev)) {
 ret = pm_device_action_run(uart0_dev, PM_DEVICE_ACTION_SUSPEND);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also switch the 3.3V with sleep mode.&lt;/p&gt;
&lt;p&gt;The advantage is, that the logging can still be used in the active times.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 change to 1.9.x power usage baseline increases</title><link>https://devzone.nordicsemi.com/thread/400392?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 13:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c2d1d8-d5a4-46cd-8c31-212fa8033e4d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;After spending some time on this I think it&amp;#39;s from either UART0 getting enabled by the bootloader or SPM. Disabling UART0 in both seemed to have done the trick.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>