<?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>[100221 SW AL] UART device not going low power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93797/100221-sw-al-uart-device-not-going-low-power</link><description>In out project we have a nRF9160 connected through UART to a nRF52840 that&amp;#39;s used for low power beaconing. 
 In order to configure the advertisement data on the nrf52840 we need to power cycle it, so it will listen on the UART for commands before shutting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Nov 2022 09:09:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93797/100221-sw-al-uart-device-not-going-low-power" /><item><title>RE: [100221 SW AL] UART device not going low power</title><link>https://devzone.nordicsemi.com/thread/395918?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2022 09:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92b28b56-45d6-4717-99a7-a250e1fa65cd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So to summarize then, the problem is&amp;nbsp;about&amp;nbsp;putting the UART in a low power state on the nRF9160 side, when the TX pin is reconfigured either as an output or with pull down enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If this is the case it seems like the UARTE interface is not properly disabled when the UART driver goes into a low power state. Are you able to check the state of the ENABLE register in the UARTE peripheral after you have&amp;nbsp;set it to low power?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to manually set the ENABLE register to 0, and see if it fixes the current consumption issue?&amp;nbsp;&lt;br /&gt;For this fix to work properly, you would have to restore the original value before enabling the driver again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will do some testing on my own side, and also have a closer look at the driver implementation, to see what actually happens when the driver enters the low power state.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [100221 SW AL] UART device not going low power</title><link>https://devzone.nordicsemi.com/thread/395780?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 12:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8557583d-142b-4c05-ab0a-19326e2cf912</guid><dc:creator>SODAQHW</dc:creator><description>&lt;p&gt;We are currently using the sdk v1.6.1, so no pinctrl is used.&lt;/p&gt;
&lt;p&gt;I tried to configure the pin with the pull down resistor instead of configuring it as output, the reset of the nRF52840 works but the power consumption problem remains.&lt;/p&gt;
&lt;p&gt;I see the same power consumption as before putting the UART to low power, ~500uA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [100221 SW AL] UART device not going low power</title><link>https://devzone.nordicsemi.com/thread/395489?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 09:08:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b7ee9b-d5d6-4bc3-9818-f80b3b2db0d9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which version of the nRF Connect SDK are you using?&lt;/p&gt;
&lt;p&gt;If you have&amp;nbsp;&amp;#39;&lt;span&gt;low-power-enable&amp;#39; set in the pinctrl configuration then the pins should be configured to input mode once you set the driver in low power mode.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you then enable the pull down resistor on the pin then this should pull it low, similar to setting it as an output in the low configuration (just with less drive strength).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would you be able to try this out, and see if it solves the issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You would need to disable the pull down before taking the UART driver out of the low power state.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [100221 SW AL] UART device not going low power</title><link>https://devzone.nordicsemi.com/thread/395341?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 14:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94c6cf6e-48a2-4cce-9f42-6a77d1de3ad2</guid><dc:creator>SODAQHW</dc:creator><description>&lt;p&gt;Leaving the TX pin high would not power up the nRF52840 again, but it doesn&amp;#39;t let it shut down.&lt;/p&gt;
&lt;p&gt;The problem is that since the nRF52840 is configured to be low power and uses just few uA while not beaconing, the current coming from the nRF9160 TX pin is enough for it to not shut down quickly and reliably.&lt;/p&gt;
&lt;p&gt;Only a beaconing event in the nRF52840 requires enough power to drain the energy accumulated in the UART lines,&amp;nbsp; resulting in the device shutting down (most likely due to a brownout).&lt;/p&gt;
&lt;p&gt;Having the beaconing interval set to 10 seconds we would have to wait more than 10 seconds to be sure that the nRF52840 is completely powered down, and that is not desirable.&lt;/p&gt;
&lt;p&gt;You should be able to reproduce the issue using development kits and following my description, i will give you a bit more context on the setup.&lt;/p&gt;
&lt;p&gt;- nRF9160 and nRF52840 are connected to each other through UART&lt;/p&gt;
&lt;p&gt;- nRF9160 controls the power of the nRF52840 through a GPIO (i will refer to it as nRF5_EN)&lt;/p&gt;
&lt;p&gt;Initial situation is:&lt;/p&gt;
&lt;p&gt;- nRF9160 has the UART to the nRF52840 enabled, while the nRF52840 is in low power mode (UART disabled)&lt;/p&gt;
&lt;p&gt;if in this situation the nRF9160 removes power to nRF52840, driving the nRF5_EN pin LOW. Now is possible to see that the nRF52840 is still running for some time (at least 1/2 seconds in out tests), unless it does something in order to consume the accumulated current (for example beaconing).&lt;/p&gt;
&lt;p&gt;Our only way to be sure that the nRF52840 is powered down quick is the sequence of actions i described in the original post, so to configure the TX line on the nRF9160 side to OUTPUT.&lt;/p&gt;
&lt;p&gt;I hope i made the situation more clear, please let me know if it&amp;#39;s not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [100221 SW AL] UART device not going low power</title><link>https://devzone.nordicsemi.com/thread/395332?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 13:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfd28d3d-3a9b-439b-b475-dcf28cda995c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why would leaving the TX pin high power up the nRF52840 again?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since this pin would be the RX pin on the nRF52840 side it would seem more intuitive if a low signal would wake it up, since&amp;nbsp;this is typically a sign of UART activity.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need a bit more time to look into the consequences of&amp;nbsp;overriding the TX pin while the driver is running. There is no good way of reassigning pins dynamically in the nRF Connect SDK unfortunately, and it is quite likely that doing this will have some unintended side effects.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume I should be able to reproduce this issue using standard development kits, and by following your description?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>