<?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>15.2 proximity example, NRFX SAADC driver not updating battery service value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38956/15-2-proximity-example-nrfx-saadc-driver-not-updating-battery-service-value</link><description>Hello, 
 I have the proximity example updating the battery service value fine using the provided nrf_drv_saadc.h driver. When converting the saadc driver to NRFX (nrfx_saadc.h), and repeating the battery service, the value remains at 0x64, whereas before</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 07 Oct 2018 20:01:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38956/15-2-proximity-example-nrfx-saadc-driver-not-updating-battery-service-value" /><item><title>RE: 15.2 proximity example, NRFX SAADC driver not updating battery service value</title><link>https://devzone.nordicsemi.com/thread/151935?ContentTypeID=1</link><pubDate>Sun, 07 Oct 2018 20:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be177f4a-fce8-4582-b24b-82a1e948a0dc</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;good to know that nrfx is confirmed with the coin (was not sure from an earlier post if a coin was tested).&lt;br /&gt;Started from scratch again, repeated conversion steps, and maybe cache was cleared or something,&lt;br /&gt;but now good and BAS data is changing on 832 DK.&lt;/p&gt;
&lt;p&gt;thank-you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 15.2 proximity example, NRFX SAADC driver not updating battery service value</title><link>https://devzone.nordicsemi.com/thread/151763?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 07:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66606acf-5df4-4599-8118-0f8d5df0fdbb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Which DK are you testing this on, why are we seeing different results with the same configuration? I am not looking into RTT but I connected it to my phone nRF Connect app and it seems to be working OK. After 5 minutes the battery shows 28% and it keeps on reducing every 15-20 seconds&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 15.2 proximity example, NRFX SAADC driver not updating battery service value</title><link>https://devzone.nordicsemi.com/thread/151505?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 14:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf4355fe-63e1-4cb0-b585-388ff4b862c7</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;made the change, but it seems to be back to where it was before this last change.&lt;br /&gt;for instance, insert cr2032 into DK, power on, connect to proximity, battery service, cccd, &lt;br /&gt;after a few seconds from 0x64 the value should change, but value the same at 0x64.&lt;br /&gt;anywhere else?&lt;/p&gt;
&lt;p&gt;thank-you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 15.2 proximity example, NRFX SAADC driver not updating battery service value</title><link>https://devzone.nordicsemi.com/thread/151433?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 12:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fb62264-b5bc-47f3-805a-8270638e7a88</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;my bad sorry.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed the init function to this and checked on my phone to see if I am getting proper battery notifications and it seems to be correct.&lt;/p&gt;
&lt;p&gt;My change was in ad_configure()&lt;pre class="ui-code" data-mode="text"&gt;static const nrfx_saadc_config_t default_config = NRFX_SAADC_DEFAULT_CONFIG;
ret_code_t err_code = nrfx_saadc_init(&amp;amp;default_config, saadc_event_handler);

// ret_code_t err_code = nrfx_saadc_init(NULL, saadc_event_handler);
// APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 15.2 proximity example, NRFX SAADC driver not updating battery service value</title><link>https://devzone.nordicsemi.com/thread/150832?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 21:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f064a2ed-3a15-43b6-9742-eeb9608de2f5</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Probably best to give a quick test and see if it even compiles (code in zip had been provided).&lt;/p&gt;
&lt;p&gt;too few arguments to function &amp;#39;nrfx_saadc_init&amp;#39;&lt;/p&gt;
&lt;p&gt;thank-you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 15.2 proximity example, NRFX SAADC driver not updating battery service value</title><link>https://devzone.nordicsemi.com/thread/150820?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 11:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3677d712-29e7-4754-bc8d-476f94ba92a9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think the main reason is that you cannot send NULL for nrfx_saadc_init and i think we will need to fix it in our documentation.&lt;/p&gt;
&lt;p&gt;for now change your code from&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfx_saadc_init(NULL, saadc_event_handler);&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfx_saadc_init(NRFX_SAADC_DEFAULT_CONFIG, saadc_event_handler);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And I think this should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>