<?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>NRF_ERROR_NO_MEM plus scheduler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11912/nrf_error_no_mem-plus-scheduler</link><description>I&amp;#39;m getting the NRF_ERROR_NO_MEM when I try to put my ADC interrupt routine into the scheduler. The code runs without error if I run from the ADC interrupt handler directly but hits the NVIC_system_reset if I try to put the code into the scheduler. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Feb 2016 06:40:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11912/nrf_error_no_mem-plus-scheduler" /><item><title>RE: NRF_ERROR_NO_MEM plus scheduler</title><link>https://devzone.nordicsemi.com/thread/45129?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2016 06:40:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54a0080a-4de9-445f-a97c-f56e655466a7</guid><dc:creator>dooder</dc:creator><description>&lt;p&gt;I figured it out. I have to clear the ADC interrupt flag using nrf_adc_conversion_event_clean() in the ADC_IRQHandler(), I was putting that function in the scheduler handler. Since the scheduler handler is run in the main context it couldn&amp;#39;t ever clear this flag. This caused the ADC interrupt to continuously be called.&lt;/p&gt;
&lt;p&gt;Now all I am doing in the ADC_IRQHandler() is nrf_adc_conversion_event_clean() and app_sched_event_put()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>