<?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>Assertion failed saadc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46756/assertion-failed-saadc</link><description>Hi, I&amp;#39;m coding a nrf55832, my code uses TWI, UART, SPI, app_timer, nrf_drv_timer. The code was going welle until i add the saadc. When i call the nrf_drv_saadc_init function,I have got this message error : &amp;lt;error&amp;gt; app: ASSERTION FAILED at ../../../..</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2024 06:28:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46756/assertion-failed-saadc" /><item><title>RE: Assertion failed saadc</title><link>https://devzone.nordicsemi.com/thread/508891?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 06:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:389f58e0-863a-4bea-9321-02b3a60ec855</guid><dc:creator>Ziyao Zhou</dc:creator><description>&lt;p&gt;I have encounter the same problems, I use priority 6. It seems that whatever&amp;nbsp;&lt;span&gt;priority&amp;nbsp;is given, it still has these kind of problems. I guess there are some conflict between softdevice and SAADC, could you give me some advice: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assertion failed saadc</title><link>https://devzone.nordicsemi.com/thread/184588?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 13:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb49ba32-2312-4b09-8d70-0b97161f8db3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Guillaume,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if you get&amp;nbsp;an assert at&amp;nbsp;&lt;span&gt;&amp;nbsp;ASSERT(INTERRUPT_PRIORITY_IS_VALID(priority));&lt;/span&gt;&amp;nbsp;when calling&amp;nbsp;&lt;span&gt;nrf_drv_saadc_init() then it means that you have provided an invalid interrupt priority, i.e.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define INTERRUPT_PRIORITY_IS_VALID(pri) ((((pri) &amp;gt; 1) &amp;amp;&amp;amp; ((pri) &amp;lt; 4)) || \
                                          (((pri) &amp;gt; 4) &amp;amp;&amp;amp; ((pri) &amp;lt; 8)))&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;which interrupt priority did you set in the&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;span&gt;nrf_drv_saadc_config_t struct passed to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;nrf_drv_saadc_init()?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>