<?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>Single float division causing ~7x higher current draw</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23242/single-float-division-causing-7x-higher-current-draw</link><description>Hi, I&amp;#39;m facing an extremely strange problem with a product I&amp;#39;m developing. 
 I&amp;#39;ve been getting significant idle current measurements (around 7 mA), and I couldn&amp;#39;t for the love of me figure out what was causing it. I stripped the application code down</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2017 10:32:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23242/single-float-division-causing-7x-higher-current-draw" /><item><title>RE: Single float division causing ~7x higher current draw</title><link>https://devzone.nordicsemi.com/thread/91401?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 10:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321e640c-424a-4272-acbd-1237b384aa5d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You seem to be running into errata &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_87.html?cp=2_2_1_0_1_24"&gt;[87] CPU: Unexpected wake from System ON Idle when using FPU&lt;/a&gt;. Add the workaround to the &lt;code&gt;power_manage()&lt;/code&gt; function, and the problem should be solved:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; void power_manage(void)
{
  #if (__FPU_USED == 1)
  __set_FPSCR(__get_FPSCR() &amp;amp; ~(0x0000009F)); 
  (void) __get_FPSCR();
  NVIC_ClearPendingIRQ(FPU_IRQn);
  #endif
  uint32_t err_code = sd_app_evt_wait();
  APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Single float division causing ~7x higher current draw</title><link>https://devzone.nordicsemi.com/thread/91400?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 10:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beeca8a6-c0c0-4b4c-b3e7-7fdfdee70f53</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;Should have dug around a bit more. I found the solution in this answer: &lt;a href="https://devzone.nordicsemi.com/question/87838/high-power-consumption-when-using-fpu/?answer=87847#post-id-87847"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It seems that just invoking the FPU and not clearing the interrupt, the nRF52 chip couldn&amp;#39;t sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>