<?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>RTC interrupt causing hard fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60595/rtc-interrupt-causing-hard-fault</link><description>Hi! 
 About my application: 
 SDK 16.0.0. 
 FreeRTOS and SoftDevice s140. 
 Peripheral role (buttonless dfu without bonding) 
 Central role NUS_C 
 
 When incoming connection send data over nus i&amp;#39;m getting error. 
 
 in task.c 
 
 I&amp;#39;ve tried to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Apr 2020 12:03:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60595/rtc-interrupt-causing-hard-fault" /><item><title>RE: RTC interrupt causing hard fault</title><link>https://devzone.nordicsemi.com/thread/246503?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 12:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c9529a-01b4-4f76-965c-322aa8a0ad10</guid><dc:creator>lybrus</dc:creator><description>&lt;p&gt;Make sense, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC interrupt causing hard fault</title><link>https://devzone.nordicsemi.com/thread/246479?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 11:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20ebdd11-3c98-46f5-b2be-c987560c6340</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;it is not guaranteed that &lt;a href="https://www.freertos.org/Stacks-and-stack-overflow-checking.html"&gt;configCHECK_FOR_STACK_OVERFLOW&amp;nbsp;&lt;/a&gt;&lt;span&gt;will catch the overflow for sure. it might miss it sometimes. But I would recommend you to set&amp;nbsp;configCHECK_FOR_STACK_OVERFLOW&amp;nbsp; to 2 only for debugging to have higher probability of catching the stack overflow.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC interrupt causing hard fault</title><link>https://devzone.nordicsemi.com/thread/246335?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 16:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1384f97b-b560-479f-9485-51fa864ae555</guid><dc:creator>lybrus</dc:creator><description>&lt;p&gt;And it&amp;#39;s very strange because&amp;nbsp;vApplicationStackOverflowHook caught nothing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC interrupt causing hard fault</title><link>https://devzone.nordicsemi.com/thread/246333?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 16:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f938c3b-c3db-4112-9ad9-4d416feffb10</guid><dc:creator>lybrus</dc:creator><description>&lt;p&gt;&lt;span&gt;In file &lt;strong&gt;$NRF_SDK/components/softdevice/common/nrf_sdh_freertos.c&lt;/strong&gt; I set&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;NRF_BLE_FREERTOS_SDH_TASK_STACK&lt;/strong&gt; to 512 and the problem was solved. On my opinion this param should be in sdk_config.h, also softdevice task priority should be in config.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC interrupt causing hard fault</title><link>https://devzone.nordicsemi.com/thread/246321?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 15:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7810d1f7-4b27-427d-8780-deeec3da369f</guid><dc:creator>lybrus</dc:creator><description>&lt;p&gt;In addition. It happens&amp;nbsp;ONLY in DEBUG mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>