<?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>Simple SAADC sample convert always fail on ASSERT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67381/simple-saadc-sample-convert-always-fail-on-assert</link><description>Hi, 
 With the latest SDK (17.0.2) I try to use the SAADC module in blocking mode but when I call &amp;lt;nrf_drv_saadc_sample_convert&amp;gt; an ASSERT is always triggered in &amp;lt;nrfx_saadc.c&amp;gt; source file. 
 This ASSERT is triggered atfer 10000 tries and wait for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Oct 2020 19:57:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67381/simple-saadc-sample-convert-always-fail-on-assert" /><item><title>RE: Simple SAADC sample convert always fail on ASSERT</title><link>https://devzone.nordicsemi.com/thread/276033?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 19:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:772a7410-02dc-432a-a63b-c7a60aa9174e</guid><dc:creator>Fabien Duay</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thx for&amp;nbsp;the tips. It was the trick I was waiting for.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m pretty sure I&amp;#39;ve already read about that on the DevZone (I think I need some vacation)..&lt;/p&gt;
&lt;p&gt;Anyway, thx for the quick and great support.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Fabien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple SAADC sample convert always fail on ASSERT</title><link>https://devzone.nordicsemi.com/thread/275791?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 08:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86379905-edc0-4105-8c74-f08777293b0f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem is that you have configured the SAADC with &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html#saadc_operationmodes_oversample"&gt;OVERSAMPLE&lt;/a&gt; set to 8X, which requires you to trigger the sample task 8 times before the END event is generated. You can fix this by enabling BURST mode for the channel, by adding this line to your saadc_init function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;channel_config.burst = true;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Burst will make the SAADC sample the channel X_OVERSAMPLE times from a single SAMPLE task.&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>