<?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>No softdevice Events reaches the freeRTOS application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41524/no-softdevice-events-reaches-the-freertos-application</link><description>Hi, We are in the process of migrating our SDK version from 13 to 15.2 and the error we were facing after porting of SDK is that , we were not able to track the BLE events with freertos task . There is advertising in FAST mode is done and then then there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Dec 2018 06:41:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41524/no-softdevice-events-reaches-the-freertos-application" /><item><title>RE: No softdevice Events reaches the freeRTOS application</title><link>https://devzone.nordicsemi.com/thread/161801?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 06:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a06e8e6f-0816-4049-b15f-fdec9054a796</guid><dc:creator>SatzTechGeek</dc:creator><description>&lt;p&gt;Thanks, Susheel Nuguru solution which you mentioned solve one of our issues.&amp;nbsp; But when we pass the BLE event handler as a function argument to BLE stack init function and register the function&amp;nbsp;results in a deadlock mechanism. Is that we cant able to register the event handler function by passing&amp;nbsp; as an argument to stack init&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No softdevice Events reaches the freeRTOS application</title><link>https://devzone.nordicsemi.com/thread/161655?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 12:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce4c384f-e5b8-4a91-9c8e-5897f4a32ec1</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="SatzTechGeek"]but the problem there is no clear picture about freertos init and hookup function and how the events are triggered ?.[/quote]
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;The freeRTOS is using RTC1 for its timekeeping and you can see the port files in SDK\external\freertos\portable\CMSIS\nrf52\port_cmsis_systick.c&lt;/li&gt;
&lt;li&gt;not sure which hookup functions are you mentioning here?&lt;/li&gt;
&lt;li&gt;in nrf_sdh_freertos.c you can see that the softdevice events are notified to app using SD_EVT_IRQHandler (also called SWI2_IRQHandler). In freertos, instead of handling these events in IRQ context, we pass them to softdevice_task. Softdevice task will be in blocked state until the &lt;span&gt;SD_EVT_IRQHandler unblocks it.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No softdevice Events reaches the freeRTOS application</title><link>https://devzone.nordicsemi.com/thread/161510?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 16:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5954468-dc05-4019-bd4e-35187582576a</guid><dc:creator>SatzTechGeek</dc:creator><description>&lt;p&gt;we have use two task one to control and monitor sensors and&amp;nbsp; used another task to capture ble events . we modify the nrf_sdh_freertos file as per the solution but the problem there is no clear picture about freertos init and hookup function and how the events are triggered ?.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No softdevice Events reaches the freeRTOS application</title><link>https://devzone.nordicsemi.com/thread/161473?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 14:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93554f1f-fac9-4e72-9cc6-0298e50bce26</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There was one known race condition that was introduced in 15.2.&lt;/p&gt;
&lt;p&gt;Looks like this is the main problem in your application. Can you check if &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39459/observer-under-freertos-events-stop-coming-after-a-few-minutes/154246#154246"&gt;this &lt;/a&gt;solution helps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>