<?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>SAADC nRF52832 SDK15.2 with BLE (SD 132): at what point can initialise the ADC using  SoftDevice?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43937/saadc-nrf52832-sdk15-2-with-ble-sd-132-at-what-point-can-initialise-the-adc-using-softdevice</link><description>I run into problem, I think for now resolved, but questions remain: Do I have to stop BLE whenever changing ADC config? What did not work? 
 
 I don&amp;#39;t know why it does not work. In ble_app_proximity example, ADC config was placed after ble_stack_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Feb 2019 09:56:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43937/saadc-nrf52832-sdk15-2-with-ble-sd-132-at-what-point-can-initialise-the-adc-using-softdevice" /><item><title>RE: SAADC nRF52832 SDK15.2 with BLE (SD 132): at what point can initialise the ADC using  SoftDevice?</title><link>https://devzone.nordicsemi.com/thread/172469?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 09:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09782ca6-660e-441a-a85b-2f167c95ca58</guid><dc:creator>Tomasz</dc:creator><description>&lt;p&gt;I used this Q&amp;amp;A as inspiration:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34702/regarding-nrf-52832-power-consumption-saadc-ppi-timer"&gt;34702/regarding-nrf-52832-power-consumption-saadc-ppi-timer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and moved all initialisation code to main(), before&amp;nbsp;&amp;nbsp;ble_stack_init();&lt;br /&gt;whilst separating all the the turn on and turn off instructions&amp;nbsp;&lt;br /&gt;for each peripheral to use&amp;nbsp; within&amp;nbsp;&amp;nbsp;&amp;nbsp;ble_evt_handler(..)&lt;/p&gt;
&lt;p&gt;This works and device is using only single microamps &lt;br /&gt;in advertising phase, which I find acceptable. &lt;br /&gt;&lt;br /&gt;Before that I experienced device reset any time when&lt;br /&gt;trying to initialise ADC or any PPI in&amp;nbsp;&lt;span&gt;ble_evt_handler(..)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;This has to be an acceptable solution for now. &lt;br /&gt;Trying to debug and separate offending lines &lt;br /&gt;of code would be beyond my capabilities &lt;br /&gt;and time limits (for now).&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Tom&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC nRF52832 SDK15.2 with BLE (SD 132): at what point can initialise the ADC using  SoftDevice?</title><link>https://devzone.nordicsemi.com/thread/172439?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 08:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab6fbb8a-97eb-4282-87f6-65ef6f5cc2cc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There shouldn&amp;#39;t be an issue using ADC with the Softdevice. We have en example on GitHub that integrates the Softdevice with the ADC, you can find it &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/blob/sdk_15.2.0_migration/ble_app_uart__saadc_timer_driven__scan_mode/main.c"&gt;here&lt;/a&gt;. Can you be more specific in describing the problem? What error code is thrown?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC nRF52832 SDK15.2 with BLE (SD 132): at what point can initialise the ADC using  SoftDevice?</title><link>https://devzone.nordicsemi.com/thread/172075?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2019 10:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e4ca7c-18e6-4715-b91c-db10569e0ff0</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you tried stepping through your code in the two cases?&lt;/p&gt;
&lt;p&gt;Compare &amp;amp; contrast what happens when it works, and what happens when it doesn&amp;#39;t ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>