<?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>nrf52 &amp;gt; nrf51 power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15943/nrf52-nrf51-power</link><description>I have looked around but have been unable to find doc explaining this. If there&amp;#39;s something around, I&amp;#39;d truly appreciate a pointer. 
 I have an existing (solar powered) device that has been built using the nRF51822 + sdkv11 + s130. 
 In the stable test</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Aug 2016 23:59:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15943/nrf52-nrf51-power" /><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60830?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 23:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c8ab77-e01b-4709-8ec0-cf13ac76192e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;There aren&amp;#39;t many gotchas in the nRF series, things you &amp;quot;just have to know&amp;#39;, but this perhaps counts as one. But that&amp;#39;s why the dev forums exist, so people can suggest things you may not have seen.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been a little hazy on why the FPU exception is different from others in that it keeps causing wfe() to return. I&amp;#39;d expect it to raise an exception which would return wfe() once, but not continually, and just the pending disabled exception shouldn&amp;#39;t cause it to return immediately either.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also not sure what Nordic can do about it. They could add logic to clear the FP flags if, for instance, the interrupt was not enabled before sleeping, however that&amp;#39;s going to trip someone up in the future who doesn&amp;#39;t have the interrupt enabled, but cares about FP exceptions. Perhaps sd_app_evt_wait() needs a parameter ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60829?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 23:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a35088d8-4959-4e84-b747-c74c3fd6e044</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;Unbelievable.  Yes indeed, that fixed the problem.  THANK YOU.&lt;/p&gt;
&lt;p&gt;I certainly have no reason to complain at this point because the problem is FIXED, but I must say I don&amp;#39;t know how I would have avoided this.  In searching the SDK for FPU_EXCEPTION_MASK (which is referenced by the code in the other thread), I found the entire explanation of the problem in the documentation/release_notes.txt, line 204 under ** FPU **.&lt;/p&gt;
&lt;p&gt;I will now do a much more careful reading of the release notes on every SDK update.&lt;/p&gt;
&lt;p&gt;(I am truly shocked that this isn&amp;#39;t hitting the vast majority of users of the nRF52.  I mean, using a float data type is likely a very, very common thing - and all these apps must certainly use sd_app_evt_wait().  It could in fact be that many, many apps are spinning in that loop and people just haven&amp;#39;t noticed yet.  Sigh!)&lt;/p&gt;
&lt;p&gt;In any case, my deep appreciation for your assistance in wrangling this to the ground.&lt;/p&gt;
&lt;p&gt;Now, only 1 incompatibility left; I can&amp;#39;t quite get nRF52 DFU working yet.  Well, ... that&amp;#39;s for another day.&lt;/p&gt;
&lt;p&gt;Thanks again and have a great holiday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60828?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 23:01:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f96956-d556-425f-941a-405b726a9811</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;quot;sd_app_evt_wait() never waits&amp;quot; is new information. Are you doing any floating point work, any at all? If you are have you seen &lt;a href="https://devzone.nordicsemi.com/question/92719/twi-causing-nrf52-not-to-sleep/"&gt;this thread&lt;/a&gt; from yesterday where, after a bit of digging, as suspected right at the start, the FPU exception was keeping the device from sleeping.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60827?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2016 20:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17cfdad0-be40-4b3c-96a4-aa3c92cf47e4</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;Einar, FYI I did indeed file a support case ID 31290 in case you wish to track it.&lt;/p&gt;
&lt;p&gt;You may be interested in knowing that I spent quite a bit of time reducing both the hardware config and my source code to the bare minimum required to repro the problem - all attached to the support request.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s quite interesting in that immediately upon executing the very first TWI transaction, the reason the current consumption jumps to 7mA is that sd_app_evt_wait() never waits!  When I put an event counter in the main loop, and display the event count/rate every 5 seconds, this is what I see.  Pretty dramatic.  In any case, I&amp;#39;m shifting my attention to the support case and am just pasting this here FYI.  Thanks again for your help thus far.&lt;/p&gt;
&lt;p&gt;sd_ble_enable: RAM START at 0x20002600&lt;/p&gt;
&lt;p&gt;Events 26 rate 312/min &amp;lt;-- power draw stabilizes at &amp;lt;750uA&lt;/p&gt;
&lt;p&gt;Events 24 rate 288/min&lt;/p&gt;
&lt;p&gt;Events 24 rate 288/min&lt;/p&gt;
&lt;p&gt;Events 891976 rate 10703712/min &amp;lt;-- power draw increases to &amp;gt;7mA&lt;/p&gt;
&lt;p&gt;Events 892171 rate 10706052/min&lt;/p&gt;
&lt;p&gt;Events 892008 rate 10704096/min&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60823?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 10:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c6658bc-4c17-452d-8201-5110ec5e0ce7</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;I will first reduce a scratch copy of the source code to the simplest repro, then will do exactly /sys you suggest.  Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60826?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2016 05:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:322d5fe5-8b44-47ef-96bd-6b3f789c1b10</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I do not see anything in what you describe that should explain the high current consumption, so we should probably dig further. As you had almost identical code for the nRF51 without any issue, I am tempted to think that you may have triggered some errata, but I cannot say for sure. If you would like more direct support and share your code with Nordic in confidentiality, I suggest you open a support case in &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;My page&lt;/a&gt; and refer to this thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60825?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 12:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7af91863-fecd-4939-bf9c-ad3d41b188ac</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;The model of the application is fairly straightforward:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;During init in main(), including doing things such as TWI_INIT, the app scheduler and timer are initialized as follows:&lt;/p&gt;
&lt;p&gt;APP_SCHED_INIT(SCHED_MAX_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE);&lt;/p&gt;
&lt;p&gt;APP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, true);&lt;/p&gt;
&lt;p&gt;app_timer_create(&amp;amp;main_timer, APP_TIMER_MODE_REPEATED, main_timer_handler);&lt;/p&gt;
&lt;p&gt;app_timer_start(main_timer, TIMER_INTERVAL_15_SECONDS, NULL);&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Main() perpetually enters this loop.&lt;/p&gt;
&lt;p&gt;for (;;) {&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  sd_app_evt_wait();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;  app_sched_execute();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Everything in the app is driven off that 15s timer.  Meaning,&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Sometimes that timer callback will call a method that does a twi_schedule to measure a sensor, whose callback does nothing but to set a static variable with the measured value&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sometimes that 15s timer handler will create other one-shot timers to do temporary work at a smaller interval than 15s&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sometimes that timer callback (but NOT in this limited test) will sample the measurements stored in statics, and will use UART (using AT-like commands) to asynchronously initite communications of those measurements to a service, via a state machine.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sometimes (but NOT in this limited test program) the UART interrupt handler will call app_sched_event_put() to continue advancing the communications state machine safely outside the interrupt handler.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Even though there are many sensors etc, &lt;em&gt;structurally&lt;/em&gt; is really overall a very simple app, and as you can see above it relies upon timers and the app scheduler to do all work, and relies upon the softdevice&amp;#39;s event wait to wait for an event and to sleep when there is no event pending.&lt;/p&gt;
&lt;p&gt;I hate to reiterate this, but this app is working fine on S130 and is failing on S132, so respectfully I find it unlikely that this issue is related to my app&amp;#39;s overall structure - which I believe is conformant to the app design pattern that Nordic&amp;#39;s examples suggest that I should use.  (I may be using them wrong, but I believe that they are done correctly.)&lt;/p&gt;
&lt;p&gt;Einar, may I propose something?  If there is someone who is willing to work through this with me, can we take this offline and interact more directly?  We can post the result here after we figure out the source of the issue.&lt;/p&gt;
&lt;p&gt;I have been called out of town and can&amp;#39;t do work until the first week of Sept, but at that time I am open to using/reducing my source code to create a small sample app that exhibits the problem - if indeed someone on the Nordic side is willing to work directly with me to wrangle this.&lt;/p&gt;
&lt;p&gt;If this might work for you and Nordic, can we take this to email?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60824?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 11:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f07163fc-3200-45fa-8d15-a82f099bc9e3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;What do you do in your application after the TWI transfer? Could it be that you don&amp;#39;t enter sleep (system ON low power mode)? Can you verify if that is the case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60817?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 14:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8330bbe6-ccf3-477c-9964-91c6c0d2ff62</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;I should also add that I tried adding pullups to the TWI bus, which is a 3 inch pair of jumpers on a breadboard with the nRF52.  The current draw is the same with or without the jumpers.&lt;/p&gt;
&lt;p&gt;Finally, when the condition is occuring (the 6mA draw), I manually pulled ALL wires from the breadboard except power/gnd - including TWI wires - and the 6mA draw remains.  This (obviously) shows that the 6mA draw is completely within the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60822?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 14:20:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52bf8ca7-ba4f-47ff-88ae-59a31dfd2dcd</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;Well, I&amp;#39;ve done further debugging.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I disabled GPIOTE completely thru conditional compilation.  This had no effect.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I disabled app_uart completely thru conditional compilation.  This brought my idle power down, as expected.  So now, in the case where it is working well, the steady-state current draw of my test is approximately 1-2 microamps.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I removed all peripherals from the TWI bus except a single trivial peripheral, this one which is a MAX17043, and ensured that this is the only one that the software is trying to access.  &lt;a href="https://www.sparkfun.com/products/10617"&gt;www.sparkfun.com/.../10617&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I did an A/B test, where A initializes TWI but doesn&amp;#39;t do any transactions, and B which initializes TWI but does a single transaction to the fuel gauge.  In A, the battery voltage is 1-2 microamps.  In B, the battery voltage increases to 6 milliAmps upon execution of the transaction.  Note that the transaction is successful.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60816?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 13:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4325e533-1909-4fd4-9eeb-edacd8705074</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;TWIM is a new TWI master peripheral in the nRF52. Erratum 89 relates to that, and is not relevant in your case. If your code is indeed as complex as you write I think we would need more information in order to debug. The fact that the current consumption is as high as 5.5mA makes me wonder if the CPU is active (the CPU alone will typically use 3.7 - 3.9 mA when you have a DC/DC)?&lt;/p&gt;
&lt;p&gt;Do you have an overview of which other peripherals and resources are active at the time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60818?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 13:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:197c95b5-293a-49ed-8b54-d7631f3ff2c4</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;Two questions:  First, I have never heard of TWIM; is this something that you think would solve my issue? I will look into it if so.&lt;/p&gt;
&lt;p&gt;Second, the code is complicated (asynchronous tasks; many), and there are many sensors.  The only way I can imagine doing what you suggest, from a pragmatic perspective, is to keep a master TWI refcnt that is used by all the handlers, and to enable/disable TWI on the 0/1 and 1/0 transition of the refcnt (ie before the transfer and after the final outstanding callback).  I can do this - it is just code - but I want to make sure I do it the right way.  What are the specific Enable/Disable calls that you recommend using that would synchronously disable and enable the TWI subsystem?  thx&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60821?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 13:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a674dd4e-dc78-4cd7-a3f9-dd344a1d7d28</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;From your nrf_drv_config.h it seems like you are using the TWI peripheral rather than the TWIM (which was introduced for nRF52), so it is not relevant after all. In any case I would recommend you to disable all peripherals which you do not need. You write that you will request sensor data every N minutes (i.e. very seldom). The I would try to disable the TWI peripheral between each time you use it to retrieve data from the sensors. The general idea is to keep as much of the chip resources disabled for as much of the time as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60820?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 12:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:039a6194-9ac7-4996-b516-d6cbefd5ea02</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;I am about to leave on travel which suddenly got scheduled, but would of course like to pursue this and appreciate your engagement.  I am sitting here right now at the bench and will try it.  Can you just give me a little more info about the workaround?  Meaning, this erratum seems to imply that the TWI is &amp;quot;disabled&amp;quot; under some circumstance.  I need TWI to be constantly ON because there are sensors attached to the bus, and there are several timer/app-sch tasks that asynchronously request sensor values every N minutes.  I&amp;#39;m just trying to understand at what exact point am I conceptually supposed to disable it / re-enable it? thx&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60819?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 12:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f2e71f0-264e-404d-a505-13cab20d862c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Can you try the workaround and see if it helps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60815?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 12:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a082e4e-2f5e-4803-98e6-744f9c1ff9e1</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;Thank you for your helpful and constructive answer.  Indeed, the current consumption is 10x what it was in that errata.&lt;/p&gt;
&lt;p&gt;Indeed I am initializing GPIOTE, but in this test case (where I minimize the complexity of the configuration so that I get stable test results) the GPIOTE is initialized but no interrupts are actually configured to be active.&lt;/p&gt;
&lt;p&gt;However, unlike the errata, I am not using EASY DMA for TWI.&lt;/p&gt;
&lt;p&gt;What I am measuring in this instance is the low-side current measured passing through the nRF52&amp;#39;s ground pin (and also the nRF51 when I test that chip.)  That is, the current here is just that of the CPU and not of the entire system.&lt;/p&gt;
&lt;p&gt;And yes, it was kind of shocking to see the 5mA draw from just the CPU - which is why I began this hours-long quest to start turning things off until I could figure out the source of the drain.&lt;/p&gt;
&lt;p&gt;(BTW - unrelated - the reason that the current draw from the CPU is as high as it is - that is, in the half-a-mA range rather than in the nA - is because of my need to use the UART.  I have worked very hard to get UART usage down to the point where it was less than 1ma just by itself, but it is quite difficult.  I am using hardware flow control, and now have easy DMA turned off. I had been hopeful when I saw easy_dma because of this issue, and I so wish Nordic could do some innovation in truly low-power UART because so many peripherals out there leave no alternative but to interface via UART and this causes a massive current drain in what would otherwise be a system whose draw would be in the 10&amp;#39;s of nA.)&lt;/p&gt;
&lt;p&gt;I can assure you that there are zero high-current loads attached to the GPIO pins.  Please note as a reminder that in doing this A/B test, using the exact same software built from exactly the same makefile (but obviously with different .ld and compile params for cpu &amp;amp; -DNRF5*),&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf51 hardware + s130 + sdkv11 w/TWI == ~0.475mA current draw steady state&lt;/li&gt;
&lt;li&gt;nrf52 hardware + s130 + sdkv11 w/TWI == ~0.475mA current draw steady state&lt;/li&gt;
&lt;li&gt;nrf52 hardware + s132 + sdkv11 wo/TWI == ~0.475mA current draw steady state&lt;/li&gt;
&lt;li&gt;nrf52 hardware + s132 + sdkv11 w/TWI == ~5.5mA current draw steady state&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;FWIW, so that I don&amp;#39;t leave out any details, here are the exact header files so that you may see precisely the configuration:
&lt;a href="https://www.dropbox.com/sh/7r2gg4elxgjcs5b/AACRhe9wzuNnvtAQe_PTpcIba?dl=0"&gt;www.dropbox.com/.../AACRhe9wzuNnvtAQe_PTpcIba&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Again, thank you for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 &gt; nrf51 power</title><link>https://devzone.nordicsemi.com/thread/60814?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 07:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0b9f488-6e5d-4087-80ad-0a64616d5cf4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The current consumption numbers you write are higher than I would expect, even with the known errata. What other chip resources are active when you measure power? Is the CPU active or is the chip in a low power mode? Are you measuring the current consumption of only the chip, or does your measurements also include current consumption of other components on the board?&lt;/p&gt;
&lt;p&gt;Are you using GPIOTE? The fact that you see an issue the moment you start the first TWI transfer leads me to think this is due to &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_89.html?cp=2_2_1_0_1_26"&gt;erratum 89&lt;/a&gt;. If that is the case, the following workaround should do the trick:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Turn the TWI off and back on after it has been disabled. To do so, write 0 followed by a 1 to the POWER register (address 0xFFC) of the TWI that needs to be disabled. Reconfiguration of TWI is required before next usage.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>