<?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 low power SDKv13.0.0 and S132</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23513/saadc-low-power-sdkv13-0-0-and-s132</link><description>Hello, 
 I&amp;#39;m currently developing an application on nrf52832 that&amp;#39;ll use SAADC low power to fetch battery voltage level and report that value on BLE advertising data. I&amp;#39;ve adapt github example nFRF52-ADC-examples to the following: 
 #define REFERENCE_TO_MV</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jul 2017 18:10:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23513/saadc-low-power-sdkv13-0-0-and-s132" /><item><title>RE: SAADC low power SDKv13.0.0 and S132</title><link>https://devzone.nordicsemi.com/thread/92365?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 18:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65cf089b-575b-4890-ab08-037fdf87b8f3</guid><dc:creator>Otavio Borges</dc:creator><description>&lt;p&gt;Changing priority to &lt;em&gt;APP_IRQ_PRIORITY_LOW&lt;/em&gt; seemed to solve the problem. I&amp;#39;m performing a 24h test, but so far no error.
Thank you Jørgen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC low power SDKv13.0.0 and S132</title><link>https://devzone.nordicsemi.com/thread/92364?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 15:08:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c3a7cd-a68f-4fcd-a967-ea766fe33117</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In general it is not recommended to do time-consuming tasks in the callback. Do you get the assertion if setting SAADC priority to &lt;em&gt;APP_IRQ_PRIORITY_LOW&lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC low power SDKv13.0.0 and S132</title><link>https://devzone.nordicsemi.com/thread/92363?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 14:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52154ed6-c6fb-4d8f-801b-598c5a8f6e04</guid><dc:creator>Otavio Borges</dc:creator><description>&lt;p&gt;Through the routine of updating battery voltage the only peripheral I access directly is SAADC.
To update the adv. data I use &lt;strong&gt;sd_rand_application_vector_get&lt;/strong&gt; to generate an random dummy,  and then &lt;strong&gt;ble_advdata_set&lt;/strong&gt;.
SAADC interrupt priority was set to &lt;strong&gt;APP_IRQ_PRIORITY_HIGH&lt;/strong&gt;, considering that ADC routines take a while, could this have been generating the fault assertions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC low power SDKv13.0.0 and S132</title><link>https://devzone.nordicsemi.com/thread/92361?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 14:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e60f0d2-1437-436d-9e9d-dc5092ffbce4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The low power SAADC example only use RTC2 to trigger sampling through PPI. The low power part comes from disabling the SAADC between samples, and use low power RTC over TIMER for sampling. Please make sure you are not using any &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/sd_resource_reqs/sd_resource_reqs.html?cp=2_3_0_0_6"&gt;resources required by the softdevice&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC low power SDKv13.0.0 and S132</title><link>https://devzone.nordicsemi.com/thread/92362?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 12:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d62c4f8-f21a-4149-a7b5-2e3b38b0f289</guid><dc:creator>Otavio Borges</dc:creator><description>&lt;p&gt;Jørgen,
That&amp;#39;s not the issue. I use an external RTC to trigger SAADC sampling (through GPIOTE IRQ).
I think I misunderstood the connection between RTC0 and SAADC. On my perception SAADC low power used RTC0, through PPI, as clock source.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried using SAADC without the low power config, but I&amp;#39;m still getting assertion faults from SD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC low power SDKv13.0.0 and S132</title><link>https://devzone.nordicsemi.com/thread/92366?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 07:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aaf0849-7abb-4122-884d-1e909b02d8b4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The nRF52 SAADC low power example &lt;a href="https://github.com/NordicSemiconductor/nRF52-ADC-examples/blob/master/saadc_low_power/pca10040/blank/config/sdk_config.h#L332"&gt;use RTC2 for sampling&lt;/a&gt;. Have you changed the configuration in &lt;em&gt;sdk_config.h&lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>