<?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>Current optimization</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104803/current-optimization</link><description>Hi, 
 I&amp;#39;ve developed the product, now we need to minimize the current consumption of the device. 
 In order to consume low power, we need to set CONFIG_SERIAL=n (suggested on forum, and I tested in sample code it is minimizing current), but in my project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Oct 2023 11:44:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104803/current-optimization" /><item><title>RE: Current optimization</title><link>https://devzone.nordicsemi.com/thread/451052?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 11:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:527ba440-d1da-43b6-a443-67b84eafa3dd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Generally, disabling any features that is not needed is key to conserve power, including disabling logging in production code. However if you need UART in the application, the UART becomes similar to other&amp;nbsp;peripheral that are power intensive, in the sense that you should ensure that it is only enabled while needed. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/pm/api/index.html"&gt;Power Management API&lt;/a&gt;&amp;nbsp;can be used for that, by&amp;nbsp;changing power state between suspend and resume. See&amp;nbsp;set_uart_power_state() in &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/75adfe8909fbac1c2e0ede465448d1ce2821dfa9/applications/connectivity_bridge/src/modules/uart_handler.c#L237"&gt;nrf/applications/connectivity_bridge/src/modules/uart_handler.c&lt;/a&gt;&amp;nbsp;for an example of that.&lt;/p&gt;
&lt;p&gt;In suspend the UART pins will be changes to the configuration for the sleep state, so you need to make sure this matches what makes sense for your external circuitry. You can see the difference bretween&amp;nbsp;uart0_default and&amp;nbsp;uart0_sleep for the nRF52840 DK board as reference under&amp;nbsp;zephyr/boards/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811-pinctrl.dtsi.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>