<?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>Floating UART RX Pin causes higher power consumption (pin 23)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106998/floating-uart-rx-pin-causes-higher-power-consumption-pin-23</link><description>Hi, 
 
 I have an issue with an custom board where when i let the UART RX floating the power consumption is higher then when it is connected to my FTDI cable. 
 
 In the attached screenshot you can see the power consumption when the pin is left floating</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jan 2024 09:11:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106998/floating-uart-rx-pin-causes-higher-power-consumption-pin-23" /><item><title>RE: Floating UART RX Pin causes higher power consumption (pin 23)</title><link>https://devzone.nordicsemi.com/thread/462431?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 09:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b352af64-a22a-412e-b8f3-713e3edc6530</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;
[quote user="thijsfranssen"]Best wishes for 2024![/quote]
&lt;p&gt;Thank you, and like-wise to you as well!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="thijsfranssen"]I just noticed it could also be caused by a faulty GPIO power supply. The FTDI cable has a higher voltage on the TX line compared to the VDD_GPIO line. I will&amp;nbsp;further look into this coming week.&amp;nbsp;[/quote]
&lt;p&gt;This will trigger the internal ESD protection diodes if it exceeds VDD_GPIO + 0.3V, and thus leak a bit of current.&lt;/p&gt;
&lt;p&gt;For debugging purposes; you could try to add a series-resistor, in the 1k area, to see if this helps wrt. the higher sleep current.&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: Floating UART RX Pin causes higher power consumption (pin 23)</title><link>https://devzone.nordicsemi.com/thread/462355?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 16:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1e59029-96c9-4091-89f5-96edc7837ad4</guid><dc:creator>thijsfranssen</dc:creator><description>&lt;p&gt;I just noticed it could also be caused by a faulty GPIO power supply. The FTDI cable has a higher voltage on the TX line compared to the VDD_GPIO line. I will&amp;nbsp;further look into this coming week.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Floating UART RX Pin causes higher power consumption (pin 23)</title><link>https://devzone.nordicsemi.com/thread/462342?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 14:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f180ecb5-d7ea-4a45-9816-6075ff3220f2</guid><dc:creator>thijsfranssen</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best wishes for 2024!&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t seem to make a difference. I changed it in the&amp;nbsp;overlay file and also tried to change it in the root file. Even when the pins are not configured at all I see the same power consumption.&lt;/p&gt;
&lt;p&gt;The devicetree files are based on the nrf9160dk files. I removed all the stuff I don&amp;#39;t need such as the uart2 which uses the same pins as I want to use for uart0&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you maybe check my devicetree files?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;This is my pinctrl.dtsi file:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2022 Nordic Semiconductor
 * SPDX-License-Identifier: Apache-2.0
 */

&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 24)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 23)&amp;gt;;
			bias-pull-up;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 24)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 23)&amp;gt;;
			low-power-enable;
		};
	};

	i2c2_default: i2c2_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 30)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 31)&amp;gt;;
		};
	};

	i2c2_sleep: i2c2_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 30)&amp;gt;,
				&amp;lt;NRF_PSEL(TWIM_SCL, 0, 31)&amp;gt;;
			low-power-enable;
		};
	};

};
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This is the common.dtsi file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2018-2020 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */
#include &amp;quot;nrf9160dk_nrf9160_common-pinctrl.dtsi&amp;quot;
#include &amp;lt;zephyr/dt-bindings/input/input-event-codes.h&amp;gt;

/ {
	model = &amp;quot;Nordic nRF9160 DK NRF9160&amp;quot;;
	compatible = &amp;quot;nordic,nrf9160-dk-nrf9160&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
	};

	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		led0: led_0 {
			gpios = &amp;lt;&amp;amp;gpio0 2 0&amp;gt;;
			label = &amp;quot;Green LED 1&amp;quot;;
		};
		led1: led_1 {
			gpios = &amp;lt;&amp;amp;gpio0 3 0&amp;gt;;
			label = &amp;quot;Green LED 2&amp;quot;;
		};
		led2: led_2 {
			gpios = &amp;lt;&amp;amp;gpio0 4 0&amp;gt;;
			label = &amp;quot;Green LED 3&amp;quot;;
		};
		led3: led_3 {
			gpios = &amp;lt;&amp;amp;gpio0 5 0&amp;gt;;
			label = &amp;quot;Green LED 4&amp;quot;;
		};
	};

	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led0: pwm_led_0 {
			pwms = &amp;lt;&amp;amp;pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL&amp;gt;;
		};
	};

	buttons {

		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button 1&amp;quot;;
			zephyr,code = &amp;lt;INPUT_KEY_0&amp;gt;;
		};
		button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button 2&amp;quot;;
			zephyr,code = &amp;lt;INPUT_KEY_1&amp;gt;;
		};
		button2: button_2 {
			gpios = &amp;lt;&amp;amp;gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Switch 1&amp;quot;;
			zephyr,code = &amp;lt;INPUT_KEY_2&amp;gt;;
		};
		button3: button_3 {
			gpios = &amp;lt;&amp;amp;gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Switch 2&amp;quot;;
			zephyr,code = &amp;lt;INPUT_KEY_3&amp;gt;;
		};
	};



	/* These aliases are provided for compatibility with samples */
	aliases {
		led0 = &amp;amp;led0;
		pwm-led0 = &amp;amp;pwm_led0;
		sw0 = &amp;amp;button0;
		sw1 = &amp;amp;button1;
		bootloader-led0 = &amp;amp;led0;
		mcuboot-button0 = &amp;amp;button0;
		mcuboot-led0 = &amp;amp;led0;
		watchdog0 = &amp;amp;wdt0;
	};
};

&amp;amp;adc {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


&amp;amp;i2c2 {
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


&amp;amp;flash0 {

	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x00000000 0x10000&amp;gt;;
		};
		slot0_partition: partition@10000 {
			label = &amp;quot;image-0&amp;quot;;
		};
		slot0_ns_partition: partition@50000 {
			label = &amp;quot;image-0-nonsecure&amp;quot;;
		};
		slot1_partition: partition@80000 {
			label = &amp;quot;image-1&amp;quot;;
		};
		slot1_ns_partition: partition@c0000 {
			label = &amp;quot;image-1-nonsecure&amp;quot;;
		};
		/* 0xf0000 to 0xf7fff reserved for TF-M partitions */
		storage_partition: partition@f8000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x000f8000 0x00008000&amp;gt;;
		};
	};
};

/ {

	reserved-memory {
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;
		ranges;

		sram0_s: image_s@20000000 {
			/* Secure image memory */
		};

		sram0_modem: image_modem@20016000 {
			/* Modem (shared) memory */
		};

		sram0_ns: image_ns@20020000 {
			/* Non-Secure image memory */
		};
	};
};

/* Include partition configuration file */
#include &amp;quot;nrf9160dk_nrf9160_partition_conf.dtsi&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is the project dts file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2018-2020 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/dts-v1/;
#include &amp;lt;nordic/nrf9160ns_sica.dtsi&amp;gt;
#include &amp;quot;nrf9160dk_nrf9160_common.dtsi&amp;quot;

/ {
	chosen {
		zephyr,flash = &amp;amp;flash0;
		zephyr,sram = &amp;amp;sram0_ns;
		zephyr,code-partition = &amp;amp;slot0_ns_partition;
	};
};

/* Disable UART1, because it is used by default in TF-M */
&amp;amp;uart1 {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and this is the overlay file:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2023 Golioth, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	aliases {
		golioth-led = &amp;amp;led0;
        sw5 = &amp;amp;switch0;		
	};

	switches {
		compatible = &amp;quot;gpio-keys&amp;quot;;

		switch0: switch_0 {
			gpios = &amp;lt;&amp;amp;gpio0 19 0&amp;gt;;
			label = &amp;quot;5V Switch&amp;quot;;
		};
	};		
};


&amp;amp;i2c2 {  
	tfluna: tfluna@10{
		compatible = &amp;quot;i2c-device&amp;quot;;
		reg = &amp;lt; 0x10 &amp;gt;;
		label = &amp;quot;tfluna&amp;quot;;
	};
};	

&amp;amp;adc {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Floating UART RX Pin causes higher power consumption (pin 23)</title><link>https://devzone.nordicsemi.com/thread/462112?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2023 14:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47f03366-8f16-4d68-bde6-a37bb32300aa</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;Could you try to enable the internal pull on the RXD pin?&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how you set that in DT:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.4.99-ncs1-1-rc1/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common-pinctrl.dtsi#L15"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.4.99-ncs1-1-rc1/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common-pinctrl.dtsi#L15&lt;/a&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></channel></rss>