<?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>App unusual current draw</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50220/app-unusual-current-draw</link><description>I am facing a strange situation with my app. After turning off all my peripherals and switching to the most minimal code, I see quite a lot of current consumption and that too erratic. 
 My minimal code is this: 
 
 The corresponding current graph observed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jul 2019 22:17:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50220/app-unusual-current-draw" /><item><title>RE: App unusual current draw</title><link>https://devzone.nordicsemi.com/thread/200828?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 22:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7594daba-ec95-44d0-913e-eec6bd01d58a</guid><dc:creator>rookie</dc:creator><description>&lt;p&gt;Hi - I identified this current is coming from a peripheral, not the nrf chip. Closing this ticket. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App unusual current draw</title><link>https://devzone.nordicsemi.com/thread/200807?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 15:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573e4020-5bf9-4162-bfb5-4767c3af5add</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unless you have initialized it in your application, it should not be enabled only by setting that in sdk_config.h. The clock might, however, be enabled by other peripherals that require the clock to run.&lt;/p&gt;
&lt;p&gt;It looks a bit strange that it produces spikes, and that it suddenly stops. If you could provide a project, that would help a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App unusual current draw</title><link>https://devzone.nordicsemi.com/thread/200568?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 14:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f705436d-3475-490d-a7e5-0e0dba8c4b01</guid><dc:creator>rookie</dc:creator><description>&lt;p&gt;I&amp;#39;m running this on a custom board, I will share a smaller project in a bit (but to produce the first graph it&amp;#39;s just the first small snippet). I was going through the sdk_config.h file after you mentioned that the HF clock may be on.&lt;/p&gt;
&lt;p&gt;This is my clock setting part of the config file,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
// &amp;lt;e&amp;gt; CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver
//==========================================================
#ifndef CLOCK_ENABLED
#define CLOCK_ENABLED 1
#endif
// &amp;lt;o&amp;gt; CLOCK_CONFIG_XTAL_FREQ  - HF XTAL Frequency

// &amp;lt;0=&amp;gt; Default (64 MHz)

#ifndef CLOCK_CONFIG_XTAL_FREQ
#define CLOCK_CONFIG_XTAL_FREQ 0
#endif

// &amp;lt;o&amp;gt; CLOCK_CONFIG_LF_SRC  - LF Clock Source

// &amp;lt;0=&amp;gt; RC
// &amp;lt;1=&amp;gt; XTAL
// &amp;lt;2=&amp;gt; Synth

#ifndef CLOCK_CONFIG_LF_SRC
#define CLOCK_CONFIG_LF_SRC 1
#endif
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App unusual current draw</title><link>https://devzone.nordicsemi.com/thread/200548?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 13:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0f14ef9-b5c4-4b9e-aa80-b25f5bf6897a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;5-600 µA sounds like the HFCLK/Timer is running. I would recommend that you try commenting out parts of your application to figure out exactly what peripheral is causing the increased current consumption.&lt;/p&gt;
&lt;p&gt;Are you running this on a nRF52 DK or a custom board? If running on a DK, can you upload the project for debugging?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>