<?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>Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60655/updating-from-sdk15-3-to-sdk16-0-now-it-gets-stuck-in-random-interrupt-handlers</link><description>I&amp;#39;m working on an nRF52832 based IOT product using Segger Embedded Studio for ARM v4.50 on my Windows 10 machine. My project uses FreeRTOS. Looking at the release notes for SDK16 it doesn&amp;#39;t look to hard to get it updated from SDK15.3. It didn&amp;#39;t take me</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Apr 2020 14:32:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60655/updating-from-sdk15-3-to-sdk16-0-now-it-gets-stuck-in-random-interrupt-handlers" /><item><title>RE: Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/thread/246573?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 14:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f007fd3b-c35e-400c-bc32-e9a038f60cbc</guid><dc:creator>Ryjan</dc:creator><description>&lt;p&gt;That was the problem. I changed this code:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define xPortSysTickHandler     RTC1_IRQHandler&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In FreeRTOSConfig.h to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; #define xPortSysTickHandler     RTC2_IRQHandler&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I do not understand how this was leading to dummy interrupt being called, unless the mismatch somehow caused the interrupt handlers to be offset and wrong interrupt handlers were being called by this offset in the vector table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/thread/246572?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 13:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d46615f-96a4-454b-b0e5-5477ef36a1cc</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The issue is that your code is stuck in the dummy interrupt handler, which is executed for non implemented ISR but yet generated by the system.&lt;/p&gt;
&lt;p&gt;In your project you have changed&lt;/p&gt;
&lt;p&gt;portmacro_cmsis.h -&amp;gt; #define portNRF_RTC_IRQn&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RTC2_IRQn&lt;/p&gt;
&lt;p&gt;But in FreeRTOSConfig.h file you have&amp;nbsp;&amp;nbsp; &amp;nbsp; #define xPortSysTickHandler&amp;nbsp; &amp;nbsp; &amp;nbsp;RTC1_IRQHandler&lt;/p&gt;
&lt;p&gt;Both should point to the same RTC instance. Changing the &lt;span&gt;xPortSysTickHandler to RTC2 fixes your problem.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/thread/246571?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 15:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f6c9315-20f4-44dc-9e57-5e95db762187</guid><dc:creator>Ryjan</dc:creator><description>&lt;p&gt;This zip file contains the whole project. It should run in Segger Embedded Studio. Upon compiling and running in debug mode, the terminal will come up but before the first log will be stuck in an interrupt. Pressing pause and looking at the call stack will show the interrupt handler.&lt;/p&gt;
&lt;p&gt;**zip file deleted**&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/thread/246570?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 06:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea99a305-d0e1-43c8-9a76-8476ce63352f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Ryjan, this case is now private.&amp;nbsp;you can upload you code now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/thread/246569?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 20:51:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c2b448-e25d-40da-a0ec-e3435c35a2ec</guid><dc:creator>Ryjan</dc:creator><description>&lt;p&gt;I&amp;#39;ve been working with this most of the morning here. The QDEC is not enabled. We had to make some modifications to the port_cmsis_systick.c file that are the same as the thread liked above. That was good to catch since that would come back to cause issues, however the same issue still remains. I can upload my code privately for you to have a look at. Would I need the start a different private case or can that be done privately through this thread?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/thread/246568?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 06:29:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e3c3e16-7942-4123-9dbd-da54e9974400</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Ryjan,&lt;/p&gt;
&lt;p&gt;Probably you are using FPU instructions causing an FPU exception? If that is the case, then you need to implement an FPU_IRQHandler as described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39681/handle-fpu-irq-with-freertos-and-sdk-14-2-0"&gt;this &lt;/a&gt;thread.&lt;/p&gt;
&lt;p&gt;It also looks like you have enabled the QDEC interrupt, and I do not think that the SDK has implemented any default QDEC_IRQHandler, which is why you seems to be going into the Dummy_handler and getting stuck there. I am not sure why this behaves different in two SDKs.&lt;/p&gt;
&lt;p&gt;Can you please check if this is the case. If this does not help you, can you please upload your project, so that I can debug it for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Updating from SDK15.3 to SDK16.0, now it gets stuck in random interrupt handlers</title><link>https://devzone.nordicsemi.com/thread/246567?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 15:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19641cf-81e1-40da-bdfc-cecbfe370d07</guid><dc:creator>Ryjan</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6355.callstack1.JPG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a call stack screen shot of one time I paused the application after seeing that it was stuck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>