<?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>nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21</link><description>Dear Nordic Support Team, 
 I am developing an application for the nrf9160 DK version 1.0.x (nrf connect sdk 1.8.0 and modem firmware 1.3.1). The application depends on other hardware periphery connected to the board via UART and SPI interfaces. The periphery</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Jan 2022 12:45:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21" /><item><title>RE: nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/thread/348926?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 12:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09ece0f3-c5c2-4227-86a6-72e7e039e505</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Sebastian,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am glad to hear that you solved the issue!&lt;/p&gt;
[quote user="Sebastian Stein"]&lt;p&gt;I have the impression that we mean different things when we use the notion UART. I am talking about the physical / electronic UART interfaces of the chips (MCU or nrf9160 SiP). I believe that you are referring to the three virtual comports the segger IC provides, which seem to be connected to the three UARTs via the MCU. But I admit that I am getting a little ahead of myself here since I am not an electrical engineer.&lt;/p&gt;
&lt;p&gt;What I am seeing is, that if I supply the nrf9160 DK via P21, connect my periphery to the pins defined as tx an rx of uart3, and use zephyrs UART driver to communicate with my periphery, everything works as expected. Thus, I believe that the physical UARTs are &lt;strong&gt;not&lt;/strong&gt; disabled when supplying the board via P21. This means, that everything is fine on that front.&lt;/p&gt;
&lt;p&gt;It turned out, that my sole problem was, that my periphery wasn&amp;#39;t supplied anymore by the board&amp;#39;s &amp;quot;5 V Pin&amp;quot; when supplying the board via P21. Since you explained to me, that this is the expected behavior of the nrf9160 DK, I consider this case closed.&lt;/p&gt;[/quote]
&lt;p&gt;I am sorry for creating confusion around this topic, that was not my intention.&lt;/p&gt;
&lt;p&gt;You are right, the NRF9160 UART peripherals are not disabled, but the usb-uart bridge on the debugger IC will be, so if you potentially had one uart enabled towards this usb-uart bridge with hardware-flow control enabled, your firmware would have misbehaved (never getting permission to send).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope you have a wonderful weekend, Sebastian! Please feel free to contact us if any new issues should pop up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&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: nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/thread/348898?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 11:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b466b7-82a3-4f37-9210-3c57126cbff8</guid><dc:creator>Sebastian Stein</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;thank you for your answers.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348743#348743"]The three uart&amp;#39;s are effectively disabled, as the segger IC is not connected physically connected over USB. In case you are using one, or more, of the uart instances with hardware flow control, then it will be stuck waiting for the host.[/quote]
&lt;p&gt;I have the impression that we mean different things when we use the notion UART. I am talking about the physical / electronic UART interfaces of the chips (MCU or nrf9160 SiP). I believe that you are referring to the three virtual comports the segger IC provides, which seem to be connected to the three UARTs via the MCU. But I admit that I am getting a little ahead of myself here since I am not an electrical engineer.&lt;/p&gt;
&lt;p&gt;What I am seeing is, that if I supply the nrf9160 DK via P21, connect my periphery to the pins defined as tx an rx of uart3, and use zephyrs UART driver to communicate with my periphery, everything works as expected. Thus, I believe that the physical UARTs are &lt;strong&gt;not&lt;/strong&gt; disabled when supplying the board via P21. This means, that everything is fine on that front.&lt;/p&gt;
&lt;p&gt;It turned out, that my sole problem was, that my periphery wasn&amp;#39;t supplied anymore by the board&amp;#39;s &amp;quot;5 V Pin&amp;quot; when supplying the board via P21. Since you explained to me, that this is the expected behavior of the nrf9160 DK, I consider this case closed.&lt;/p&gt;
&lt;p&gt;Thank you for the insights.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Sebastian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/thread/348743?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 14:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1012bc81-8005-4caa-9635-042e9fc01a46</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="Sebastian Stein"]Can you please further elaborate were you are going with that statement?[/quote]
&lt;p&gt;If you are looking for the input voltage, ie. the main power source input, you have&amp;nbsp;to check this specific pin on pinheader P20.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Sebastian Stein"]&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348561#348561"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Are you saying that only the routing to the virtual COM-ports is disabled if the board is supplied via P21 or are you really meaning that all three UART interfaces are disabled, even if they are routed from pins (say P0.23 and P0.24)&amp;nbsp; to the nrf9160 SiP?&lt;/div&gt;[/quote]
&lt;p&gt;The three uart&amp;#39;s are effectively disabled, as the segger IC is not connected physically connected over USB. In case you are using one, or more, of the uart instances with hardware flow control, then it will be stuck waiting for the host.&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: nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/thread/348726?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 13:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9110f72-eef3-4a92-b83f-d1c541f7d81d</guid><dc:creator>Sebastian Stein</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;thank you for your response.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348687#348687"]The &amp;quot;5V&amp;quot; pin is the VBUS line, so this will only be provided when powering the board through USB.[/quote]
&lt;p&gt;Ok. That is good to know. That means, that I have to change my setup to compensate for this.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348687#348687"]The input voltage to the nRF is provided through the &amp;quot;VDD nRF&amp;quot; pin on pin header P20.[/quote]
&lt;p&gt;Can you please further elaborate were you are going with that statement?&lt;/p&gt;
[quote userid="99411" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348561#348561"]Are you saying that only the routing to the virtual COM-ports is disabled if the board is supplied via P21 or are you really meaning that all three UART interfaces are disabled, even if they are routed from pins (say P0.23 and P0.24)&amp;nbsp; to the nrf9160 SiP?[/quote]
&lt;p&gt;Can you please comment on this question?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Sebastian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/thread/348687?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 12:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:493d9072-f654-4a4a-96b8-05e1e81d0e79</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;Thank you for the detailed description of your setup.&lt;/p&gt;
[quote user="Sebastian Stein"]I use both, a Pin labeled VDD (green arrow in the scenario 1 picture) and a Pin labeled 5 V&amp;nbsp;(red arrow in the scenario 1 picture) to supply the periphery attached to the board. The pin labeled VDD behaves as expected in both scenarios. It provides a power of 3 V. However, the pin labeled 5 V only provides a power of 5 V if the board is supplied via USB. If the board is supplied via P21, the pin labeled 5 V provides a power of 0 V.[/quote]
&lt;p&gt;The &amp;quot;5V&amp;quot; pin is the VBUS line, so this will only be provided when powering the board through USB.&lt;/p&gt;
&lt;p&gt;The input voltage to the nRF is provided through the &amp;quot;VDD nRF&amp;quot; pin on pin header P20.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that &amp;quot;VDD&amp;quot; is 1.8V or 3V depending on the position of the &amp;quot;VDD_IO&amp;quot; switch.&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: nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/thread/348561?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 15:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a716ade-5dff-4022-a087-95f59e507158</guid><dc:creator>Sebastian Stein</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;thank you for your reply.&lt;/p&gt;
&lt;p&gt;I have attached two photos which show the working setup (scenario 1, supply via USB) and the not working setup (scenario 2, supply via P21). These setup only differ with respect to the power supply in use.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348514#348514"]When supplying voltage through P21, it is important that you do not have any other power sources plugged in.[/quote]
&lt;p&gt;Yes. I supply the board either via USB xor via P21.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348514#348514"]Which VDD pin are you measuring?[/quote]
&lt;p&gt;I use both, a Pin labeled VDD (green arrow in the scenario 1 picture) and a Pin labeled 5 V&amp;nbsp;(red arrow in the scenario 1 picture) to supply the periphery attached to the board. The pin labeled VDD behaves as expected in both scenarios. It provides a power of 3 V. However, the pin labeled 5 V only provides a power of 5 V if the board is supplied via USB. If the board is supplied via P21, the pin labeled 5 V provides a power of 0 V.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348514#348514"]and the debugger IC is switched off (no UARTs)[/quote]
&lt;p&gt;Are you saying that only the routing to the virtual COM-ports is disabled if the board is supplied via P21 or are you really meaning that all three UART interfaces are disabled, even if they are routed from pins (say P0.23 and P0.24)&amp;nbsp; to the nrf9160 SiP?&lt;br /&gt;This would be another reason why my firmware fails, since on of the attached peripheral devices tries to communicate with the nrf9160 SiP via UART 2 (tx-pin P0.23, rx-pin = P0.24).&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348514#348514"]Remember that the power switch must be in the &amp;quot;ON&amp;quot; position.[/quote]
&lt;p&gt;Thank you for pointing that out. However, I assure you that I always remember to switch the board on before I expect it to do anything. :-P&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/83796/nrf9160-dk----side-effects-of-external-power-supply-p21/348514#348514"]You could flash the nRF with a simpler fw, like blinky, and see if this blinks an LED when externally powered to eliminate the firmware-aspect.[/quote]
&lt;p&gt;I am confided that this is not a firmware issue since the firmware is well tested and works as expected when the board is powered via USB (weather it is powered by a Laptop or a USB power adapter). However the firmware does behave as expected if the board is powered via P21. Thus I suspect that the hardware behaves different if the power supply changes. This is supported by my power measurement of the pin labeled 5 V and your statement that the UARTs are switched of.&lt;/p&gt;
&lt;p&gt;I hope I could clarify my case. My questions still remains. What can be done to get around the side effects when supplying the nrf9160 DK via P21.&lt;/p&gt;
&lt;p&gt;Scenario 1, everything works, supply via USB:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/scenario1_5F00_working.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Scenario 2, not working, supply via P21:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/scenario2_5F00_notWorking.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 DK -- Side effects of external power supply P21</title><link>https://devzone.nordicsemi.com/thread/348514?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 13:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d7da2bd-8c59-41d0-9c29-395b542b19a8</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;When supplying voltage through P21, it is important that you do not have any other power sources plugged in. Here&amp;#39;s the diagram for the power supply part of the DK:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/hw_power_supply.html?cp=2_0_5_3_2"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/hw_power_supply.html?cp=2_0_5_3_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]However, if I supply the nrf9160 DK via P21, the power between a ground pin and the 5 V pin is close to 0 V. With this fact in mind, it does not surprise me that my application fails, since my periphery isn&amp;#39;t supplied anymore.[/quote]
&lt;p&gt;Which VDD pin are you measuring?&lt;/p&gt;
[quote user=""]&lt;ul&gt;&lt;li&gt;&lt;/li&gt;
&lt;li&gt;What other side effects occur when not supplying the board via its USB interface?&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;One thing is that you are powering the whole DK, meaning that any blinking LEDs will also count towards the total current consumption as seen from the battery source (or in this case, usb charger), and the debugger IC is switched off (no UARTs).&lt;/p&gt;
[quote user=""]What do I have to do when I just want the board to behave the same regardless of the power supply interface in use or rather, how do I disable the side effects and get my application running while supplying the board via P21?[/quote]
&lt;p&gt;If you disconnect the USB cable, then provide &amp;gt;3V to P21, the device should start up. Remember that the power switch must be in the &amp;quot;ON&amp;quot; position.&lt;/p&gt;
&lt;p&gt;You could flash the nRF with a simpler fw, like blinky, and see if this blinks an LED when externally powered to eliminate the firmware-aspect.&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>