<?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>LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59655/lesc-and-freertos</link><description>Re: nRF52833DK, s113 and nRF5_SDK v16.0.0 
 It appears that nrf_sdh_freertos.c needs to be modified to support JUST_WORKS and LESC because the softdevice_task() in nrf_sdh_freertos.c never calls nrf_lesc_request_handler() causing attempts to pair and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Apr 2020 05:08:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59655/lesc-and-freertos" /><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/243970?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 05:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d76aaaf4-08d4-462d-b821-8893a778745a</guid><dc:creator>RTMerkel</dc:creator><description>&lt;p&gt;256 Stack_Type_t entries... so that 256 * 4 = 1024 bytes. I&amp;#39;ll increase it ;)&lt;/p&gt;
&lt;p&gt;How about the softdevice_task() stack?&lt;/p&gt;
&lt;p&gt;How does one remove the nrf_stack_info checks?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;By undefining NRF_STACK_GUARD? It&amp;#39;s not enabled in my sdk_config.h. How about NRF_STACK_GUARD_CONFIG_SIZE? I assume it&amp;#39;s ignored if NRF_STACK_GRARD_ENABLED == 0&lt;/li&gt;
&lt;li&gt;By providing a new implementation of nrf_stack_info.h? Yuck ;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/243767?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 21:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcf44dba-aa49-4565-a4ad-1a0f95fd340a</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;BTW, How much space did you allocate to the lesc_task?&amp;nbsp; According to the stack usage view in SES, it looks like lesc_task needs at least 3680 bytes, but I&amp;#39;m not sure if there are any untraced calls through function pointers that might not be accounted for...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/243765?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 20:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2c45c34-7ec7-4d32-9b6e-d2c167800a73</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp; I am removing the nrf_stack_info checks and relying on the freeRTOS stack checks instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/243764?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 20:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab32d966-bced-4722-8bef-3f6107ef2658</guid><dc:creator>RTMerkel</dc:creator><description>[quote userid="2831" url="~/f/nordic-q-a/59655/lesc-and-freertos/243762"]I plan to disable the stack checking when running in freeRTOS for now to avoid any confusion.[/quote]
&lt;p&gt;I assume you mean disable the Nordic SDK stack checking and not the FreeRTOS stack checking? I ask because the FreeRTOS checks have been very useful to us.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/243762?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 20:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:909feb2e-67b2-47a1-8509-6d2400ec3455</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;While following your example, I noticed that the nrf_crypto_rng.c library includes nrf_stack_info.&amp;nbsp; &amp;nbsp;I suspect the MACROs present in this file are incorrect for freertos.&amp;nbsp; &amp;nbsp;The function&amp;nbsp;nrf_stack_info_overflowed most likely does not work as intended.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I plan to disable the stack checking when running in freeRTOS for now to avoid any confusion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/242765?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 16:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb3305b8-48be-4001-8a6f-46f2f3386cba</guid><dc:creator>RTMerkel</dc:creator><description>&lt;p&gt;I made it just above the timer task priority. I&amp;#39;d like to ask that this functionality be added to the SDK as MMD is really needed for debugging while BLE is active.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/242714?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 13:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc05d929-9b45-4965-b2c9-681431c3f85e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If LESC task is lower priority than softdevice task, then it looks good in my opinion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/242515?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 16:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468c61f1-371d-4479-a5d4-88b964ae4a5d</guid><dc:creator>RTMerkel</dc:creator><description>&lt;p&gt;&amp;quot;LESC&amp;quot; is not part of FreeRTOS, but part of BLE security in the Nordic SDK. The Nordic app_ble_hrs_freertos example is app_ble_hrs ported to FreeRTOS. My initial attempts to modify app_ble_hrs_freertos to support Just-Works pairing and bounding with LESC failed&amp;nbsp;with a connection timeout.&amp;nbsp;The root cause is that the softdevice_task() never calls nrf_ble_lesc_request_handler(). The above code calls nrf_ble_lesc_request_handler() from a second thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESC and FreeRTOS?</title><link>https://devzone.nordicsemi.com/thread/242333?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 09:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:683796b5-5903-4a77-9427-ae221a4d607c</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;I would like to understand why this is necessary. Information on LESK cannot be found in the documentation of a freeRTOS.&lt;br /&gt;The essence of the idea is to dynamically lower the priority of the task of the radio handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>