<?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 after starting SAADC and softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36612/high-power-after-starting-saadc-and-softdevice</link><description>Hi everyone, 
 after a few days of analysis, I was able to find out what is the problem making my board consume a lot when idle. 
 I use SDK 15.0.0, softdevice S132 and a custom board with a few hardware (TWI and SAADC). BLE is not advertising for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jul 2018 16:50:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36612/high-power-after-starting-saadc-and-softdevice" /><item><title>RE: High power after starting SAADC and softdevice</title><link>https://devzone.nordicsemi.com/thread/141407?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 16:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d94ae3a-bd2a-4f64-8edb-6902b6e3dcd1</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad you figured out a solution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you use two (or more) buffers the SAADC driver utilizes&amp;nbsp;&lt;a title="EasyDMA" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_5#saadc_easydma"&gt;EasyDMA&lt;/a&gt;&amp;nbsp;to be able to take multiple samples without bothering your CPU with interrupts for each sample. EasyDMA requires certain HW resources, like e.g. the HF clock, to work and these resources draw more current.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power after starting SAADC and softdevice</title><link>https://devzone.nordicsemi.com/thread/141165?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 13:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:825f29fe-d023-4f5c-ba7c-2cf59743a645</guid><dc:creator>lbe</dc:creator><description>&lt;p&gt;Hi Martin, thanks for your reply.&lt;/p&gt;
&lt;p&gt;I found a solution and it was not the logger module; it is not clear to me but maybe you can understand why this is working.&lt;/p&gt;
&lt;p&gt;In my original post I forgot to mention that I was using 2 channels and a double buffer: following indications here in the forum, I was using one buffer for one channel and the other one for the second channel.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It turned out that for some reason the double buffering was causing the extra consumption. I now use a single buffer and I initialize the saadc to measure a first time from one channel and inside the saadc_callback I re-initialize the saadc to measure from the second channel (I use a shared variable to select first a channel then the other).&lt;/p&gt;
&lt;p&gt;It is not important for my application to have both values at exactly the same time, so this solution is fine for me.&lt;/p&gt;
&lt;p&gt;In any case, even if it works, I am curious to understand why the double buffer causes an extra consumption....do you have any idea about this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: High power after starting SAADC and softdevice</title><link>https://devzone.nordicsemi.com/thread/141158?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 13:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1bc865d-54cd-413b-820d-e08cca03b758</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, that is probably the HFCLK running.&amp;nbsp;Have you enabled the&amp;nbsp;Logger module? &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33316/power-profiler-kit---ble_app_beacon---current/128032#128032"&gt;It is also known to draw ~500 uA&lt;/a&gt;. Can you share your project files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>