<?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>High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111245/high-power-consumption-after-uninit-of-libuarte</link><description>Hi, 
 currently I&amp;#39;m facing an issue with the power consumption of my pcb. The idle power consumption is at about 20 &amp;#181;A. After initialising the UART it goes up to over 1 mA. If I uninitialise the UART again, the power consumption stays at about 280 &amp;#181;A</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 May 2024 11:53:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111245/high-power-consumption-after-uninit-of-libuarte" /><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485389?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 11:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c17d1611-f02b-411e-a178-369837ba418a</guid><dc:creator>ilockit_CFR</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for your support. I tried the code snippet, but nothing changes. So I initialised the UART with two different pins and that led to the correct result. The power consumption was reduced to the expected value after uninit. Obviously, there&amp;#39;s&amp;nbsp;an issue with our pcb but that&amp;#39;s something I have to discuss with our team.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your time and your help.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485382?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 11:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e82053f-1a34-4019-a5a4-ef1d4382380a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Christian,&lt;/p&gt;
&lt;p&gt;Thanks for sharing the project. Unfortunately, I&amp;#39;m currently unable to build Keil projects as I&amp;#39;m running Ubuntu, but I did look at the code and did not spot any errors.&lt;/p&gt;
&lt;p&gt;Please try to add the code snippet below after libuarte uninit and see if it makes any difference. This will help confirm if the UARTE peripheral is the culprit or not.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    /* Power-cycle UARTE0 to force release of HF clock request */
    *(volatile uint32_t *)(NRF_UARTE0_BASE + 0xFFC) = 0;
    *(volatile uint32_t *)(NRF_UARTE0_BASE + 0xFFC);
    *(volatile uint32_t *)(NRF_UARTE0_BASE + 0xFFC) = 1;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485354?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 10:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea2a5b5-f60c-4e95-a549-fbe298d5971e</guid><dc:creator>ilockit_CFR</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;thanks for the hint. I prepared a minimal example. Unfortunately, I have no dev-kit here at the moment, so that I could only test with our custom pcb. I hope it works on your side.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485315?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 08:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e7f90e-6bad-4800-a395-0e9b738a6183</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Christian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can use the&amp;nbsp;&lt;a title="nrf_drv_clock_hfclk_request" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__drv__clock.html?cp=9_1_6_8_0_4_0_8#ga425c8dc0508bb9c0777da123b7c66f3d"&gt;nrf_drv_clock_hfclk_request&lt;/a&gt;() function to start up the crystal oscillator, and&amp;nbsp;&lt;a title="nrf_drv_clock_hfclk_release" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__drv__clock.html?cp=9_1_6_8_0_4_0_7#ga5ca3bff3e9a29a62561329f71277800d"&gt;nrf_drv_clock_hfclk_release&lt;/a&gt;() when you no longer need it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you able to share a minimal version of your project so I can try to replicate this issue on a DK?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485292?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 07:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2107a021-7c3f-49e6-a7fa-7ca04a90b6cd</guid><dc:creator>ilockit_CFR</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;we only have one other pin to activate/deactivate the modem part, but for the tests this pin is set to LOW the whole time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The application does not request the HF oscillator when initialising the UART. How would I do that? I checked it with&amp;nbsp;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__drv__clock.html#gae25988638664f2e4da8512b221adfdfd"&gt;nrf_drv_clock_hfclk_is_running&lt;/a&gt;&amp;nbsp;and it always returned false.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485281?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 06:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66000d1c-fcde-4edb-a799-c794ca7eda0e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Christian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for confirming. Is your application requesting the HF crystal oscillator when it enables the UARTE as recommended in the PS? Are there any other pins being used for interfacing with the GSM modem apart from the RX and TX pins? A current draw of 2-300 &amp;micro;A often indicates that there is a floating input or that the crystal oscillator is left running.&lt;/p&gt;
&lt;p&gt;&lt;img style="font-family:inherit;max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1716359145494v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485278?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 06:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48047342-cdf4-431a-83da-261e8edeada1</guid><dc:creator>ilockit_CFR</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;at the moment the GSM modem is completely disconnected. We observed higher current consumption after using the modem so we investigated where it comes from. We could break it down to the initialisation and uninitialisartion of the UART after we disconnected the whole modem part. So I guessed&amp;nbsp;that there&amp;#39;s an issue with the configuration or usage of the UART library, bubt I couldn&amp;#39;t find any solution in your examples or the devzone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power consumption after uninit of libuarte</title><link>https://devzone.nordicsemi.com/thread/485148?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 13:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:053a9016-ec50-4b1b-9ffb-685c32af19a1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Christian&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Based on the pin naming, I assume that you are connected to a GSM modem. Is the current going into the modem part of the measurement, or do you power it off after disabling the UART?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>