<?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>nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127832/nrf52832-power-consumption-when-disabling-twi-driver-i2c</link><description>Good morning, 
 It has been implemented a sleep mode to save battery when the board is not used. 
 To do that we follow the documentation and implemented the SystemOn mode and we&amp;#39;ve seen huge improvement in the power consumption (both in sleep and running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Apr 2026 15:05:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127832/nrf52832-power-consumption-when-disabling-twi-driver-i2c" /><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565258?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 15:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d204aa1-ce78-47b8-955a-28ba21b7ac40</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/haakon-prestegaard"&gt;Håkon&lt;/a&gt;&amp;nbsp;I think I&amp;#39;ve found the reason of the power consumption.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The hfclock need to be released. I though once no peripheral was using it, it was suspended but I was wrong.&lt;/p&gt;
&lt;p&gt;Calling the&amp;nbsp;nrf_drv_clock_hfclk_release when going to sleep fix the issue.&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565257?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 14:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146f7673-3ab8-4709-86f2-c86911025367</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;I can confirm there is no changes in power consumption, compared to the 2 cases above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565254?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 14:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11253af9-fae2-4283-a4ef-8afd04e08e6c</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="Luca Nisti"]Register checked is CLOCK-&amp;gt;HFCLKRUN[/quote]
&lt;p&gt;This shows only if the task has been triggered:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/clock.html#d910e3076"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52832/page/clock.html#d910e3076&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which it will, as the SoftDevice will use the external HFXO (start and stop when finished), as the radio is unable to run on the HF_INT (which has % tolerance)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please test with setting NRF_LOG_ENABLED to &amp;#39;0&amp;#39; and see if this has any impact?&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: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565253?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 13:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d69e0f80-3f70-4fef-a1e2-ab5fe5c7ced7</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;I can confirm the high frequency clock is still running when the i2c is configured and disabled when firmware goes to sleep mode.&lt;/p&gt;
&lt;p&gt;If the i2c is not initialized at all the high speed clock is off when in sleep mode.&lt;/p&gt;
&lt;p&gt;Register checked is CLOCK-&amp;gt;HFCLKRUN&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565240?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 12:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f58c00-592b-45c5-9026-418f4cfb94bf</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;Here the file.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;NRF_LOG_ENABLED&amp;nbsp;is set to 1 but module is not initialized at boot.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How does it explain the consumption when the i2c is initialized or not initialized?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4274.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../4274.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565232?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 12:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52182ef0-8138-414e-b0d2-de299b35a154</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Luca Nisti"]1. We measured the board consumption removing the mcu from the pcb, plus it is consistent with calculation done by the hw engineer.[/quote][quote user="Luca Nisti"]The results are consistent with different boards.[/quote]
&lt;p&gt;Thank you for confirming.&lt;/p&gt;
[quote user="Luca Nisti"]2. I checked the SDA and SCL pin status during the sleep mode and they are set correctly to save power[/quote]
&lt;p&gt;Good to hear.&lt;/p&gt;
[quote user="Luca Nisti"]3. Attached the sdk config file. I can confirm we are using the&amp;nbsp;&lt;span&gt;NRF_TWIM and&amp;nbsp;TWI0_USE_EASY_DMA and&amp;nbsp;TWI1_USE_EASY_DMA&lt;/span&gt;[/quote]
&lt;p&gt;It looks like you have forgotten to attach the .h file?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the log module disabled? Should be sdk_config.h::#define NRF_LOG_ENABLED 0 to disable logging,&amp;nbsp;as uart will cause the peripheral clock tree to run in sleep.&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: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565229?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 11:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:465be891-c48d-4f02-833a-5d882f9900c1</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;The results are consistent with different boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565227?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 11:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fcbc182-cb80-453b-ad11-5ab1a40d7e7d</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;Good morning &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. We measured the board consumption removing the mcu from the pcb, plus it is consistent with calculation done by the hw engineer.&lt;/p&gt;
&lt;p&gt;2. I checked the SDA and SCL pin status during the sleep mode and they are set correctly to save power&lt;/p&gt;
&lt;p&gt;3. Attached the sdk config file. I can confirm we are using the&amp;nbsp;&lt;span&gt;NRF_TWIM and&amp;nbsp;TWI0_USE_EASY_DMA and&amp;nbsp;TWI1_USE_EASY_DMA&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565223?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2026 09:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f067b67-9984-4cc4-87fe-2ac762c65174</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;If custom design; Is this repeatable on all your boards, or just one?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Luca Nisti"]The board without mcu consume around 200uA.[/quote]
&lt;p&gt;Does this mean that you physically remove or power off the nRF?&lt;/p&gt;
[quote user="Luca Nisti"]&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Using the same firmware without initializing the I2C (twi0 an twi1 using easy dma) the consumption is around 250uA as expected and how we should want to have with the i2c disabled.&lt;/p&gt;[/quote]
&lt;p&gt;Could you verify that the SDA and SCL is set high, either by pull-up (via NRF_GPIO-&amp;gt;PIN_CNF register), or externally?&lt;/p&gt;
&lt;p&gt;If these pins are floating, you will see excessive current leaked.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please share your sdk_config.h?&lt;/p&gt;
&lt;p&gt;I want to explicitly see if you are using NRF_TWI or NRF_TWIM, by checking the defines &amp;quot;TWI0_USE_EASY_DMA&amp;quot; and &amp;quot;TWI1_USE_EASY_DMA&amp;quot;.&lt;/p&gt;
&lt;p&gt;If one or both are set to &amp;#39;0&amp;#39;, try setting them to &amp;#39;1&amp;#39; and see if this has any impact.&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: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565187?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2026 15:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd1265d9-4e89-4412-a444-ec9f0095f2fe</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp; I am happy to run a debug session and&amp;nbsp;report o you register status if you need to understand what is the issue.&lt;/p&gt;
&lt;p&gt;Thank you for support&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565180?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2026 13:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d43da1bf-6ad1-48b1-b1f5-33c9fe53aa01</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;The board does not have a pull-up-resistor to the SDA/SCL.&lt;/p&gt;
&lt;p&gt;After disabling/uninit the i2c the consumption is still 550uA.&lt;br /&gt;The board without mcu consume around 200uA.&lt;/p&gt;
&lt;p&gt;The mcu is in SystemOn and adversting, using the&amp;nbsp;Online Power Profiler for Bluetooth LE the mcu shall consume around 50uA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using the same firmware without initializing the I2C (twi0 an twi1 using easy dma) the consumption is around 250uA as expected and how we should want to have with the i2c disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565177?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2026 13:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335fc199-2339-4e90-ac56-e2fec77f84bb</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;Do you still measure 550 uA?&lt;/p&gt;
&lt;p&gt;Have you applied pull-resistors to the SDA/SCL lines after disabling the NRF_TWI instances?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565175?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2026 13:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72366491-f064-4a98-9220-b76cbd0b4f0f</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;Good afternoon, I tried the following code with no success&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    NRF_TWI_MNGR_DEF(nrfTwiMngr0, MAX_PENDING_TRANSACTIONS, TWI_INSTANCE_ID0);
    NRF_TWI_MNGR_DEF(nrfTwiMngr1, MAX_PENDING_TRANSACTIONS, TWI_INSTANCE_ID1);
    static const nrf_twi_mngr_t* const busToTwiInstance[I2C_BUS_N] =
    {
        &amp;amp;nrfTwiMngr0,
        &amp;amp;nrfTwiMngr1
    };
    
    

    nrf_drv_twi_disable(&amp;amp;busToTwiInstance[0]-&amp;gt;twi);
    nrf_twi_mngr_uninit(busToTwiInstance[0]);
    nrf_drv_twi_disable(&amp;amp;busToTwiInstance[1]-&amp;gt;twi);
    nrf_twi_mngr_uninit(busToTwiInstance[1]);

    *(volatile uint32_t *)0x40003FFC = 0;
    *(volatile uint32_t *)0x40003FFC;
    *(volatile uint32_t *)0x40003FFC = 1;
    *(volatile uint32_t *)0x40004FFC = 0;
    *(volatile uint32_t *)0x40004FFC;
    *(volatile uint32_t *)0x40004FFC = 1;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565148?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2026 08:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c915cf9-fe08-4377-9c39-3ee7af347a9c</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;I suspect that this erratum is the root cause of the higher current consumption while in sleep:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF52832_Rev3/page/ERR/nRF52832/Rev3/latest/anomaly_832_89.html#anomaly_832_89"&gt;https://docs.nordicsemi.com/bundle/errata_nRF52832_Rev3/page/ERR/nRF52832/Rev3/latest/anomaly_832_89.html#anomaly_832_89&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to implement this and see if you are able to reach the expected current consumption?&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: nrf52832 power consumption when disabling Twi driver (i2c)</title><link>https://devzone.nordicsemi.com/thread/565121?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2026 16:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fba9a30-e43b-42e5-8cf1-c06c04fbbc5f</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;errata, we use SDK version 17.1.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>