<?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>nRF52840 Eddystone connectable mode issue with FreeRTOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74355/nrf52840-eddystone-connectable-mode-issue-with-freertos</link><description>We are using nRF52840 DK with SDK17, our aim is to achieve Eddystone packet advertisement and connectable mode using FreeRTOS. Implementation started with ble_app_blinky example, at this stage with Freertos, packet advertisement (Beaconing) working fine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Apr 2021 12:01:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74355/nrf52840-eddystone-connectable-mode-issue-with-freertos" /><item><title>RE: nRF52840 Eddystone connectable mode issue with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/307009?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 12:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0c50e5a-d2ab-417e-a3cd-98a59b8bf389</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The error you mentioned happens if you have&amp;nbsp;SD_EVT_IRQHandler triggered before the&amp;nbsp;nrf_sdh_freertos_init has been completed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why was&amp;nbsp;vTaskNotifyGiveFromISR called with a NULL task handle?&amp;nbsp;If you get an answer for that then you are close to finding the issue here. My suspect is that you BLE activity has started way before the FreeRTOS tasks have been initialized properly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Eddystone connectable mode issue with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/306886?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 22:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc3ff58-8ce7-4de5-b45a-fbfd8eec7d55</guid><dc:creator>ffwali</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Thank you for the replying.&lt;/p&gt;
&lt;p&gt;We fixed the es_security_init() function by adding some modifications in our previous code and fixed that error.&lt;/p&gt;
&lt;p&gt;The scenario is that we are now able to advertise the beacons and able to see the beacons in nRF Connect application but when we try to make a connection by using &amp;quot;Connect&amp;quot; button the application crashes with the below log:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;error&amp;gt; app: ERROR 3735928559 [Unknown error code] at /external/freertos/source/tasks.c:4796
PC at: 0x00035C83
&amp;lt;error&amp;gt; app: End of error report&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;We are getting the below function call stack:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2021_2D00_04_2D00_26-_2800_2_2900_.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;We also tried by updating the &lt;strong&gt;configTOTAL_HEAP_SIZE&lt;/strong&gt; from 20kB to 30kB but it didn&amp;#39;t workout.&lt;br /&gt;&lt;br /&gt;There is one more thing that we are observing in our code that there is a function &lt;strong&gt;NRF_SDH_BLE_OBSERVER()&lt;/strong&gt; which is used to register the BLE events handler but whenever we are getting a BLE event i.e. the Connect event (mentioned above), our code doesn&amp;#39;t reach this function. We have verified this by adding various breakpoints. Whereas in the &amp;quot;ble_app_hrs_freertos_pca10056&amp;quot; exampl (which we are using for reference) the code reaches the function. &lt;br /&gt;We are assuming that maybe there is some flag due to which the &lt;strong&gt;NRF_SDH_BLE_OBSERVER()&lt;/strong&gt; function is not being compiled etc. or if there is something we are missing.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Eddystone connectable mode issue with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/306676?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 06:15:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cce46eb-0e45-47fa-a430-5488cda19d4f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;What is the context in which&amp;nbsp;es_security_init is called? Could you post the functional call stack snapshot when this error happened. You can put a breakpoint at the place where the error happens and view the call stack when the breakpoint hits. If this is called in FreeRTOS task, then i am suspecting that there is some stack overflow corrupting the memory which in turns make the softdevice use a pointer pointing to this corrupted memory.&lt;/p&gt;
&lt;p&gt;If this is a task, then i suggest you increase the stack_size for this task ( and if necessary increase the heap size in FreeRTOSConfig.h )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>