<?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>FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69575/fds-events-are-not-receiving-in-freertos-project</link><description>Hi, 
 I am using nrf52832 development board with sdk 17.0.2 and softdevice 132. 
 I have freertos project which had ble nus service and aes cbc logic added to it. 
 I have added fds logic from fds example code. 
 FDS events such as init, write are not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Dec 2020 10:25:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69575/fds-events-are-not-receiving-in-freertos-project" /><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/286260?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 10:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93026d27-abae-4017-97fc-96abc53ed037</guid><dc:creator>swetha Paladugu</dc:creator><description>&lt;p&gt;That is ok..&lt;/p&gt;
&lt;p&gt;But i want to immediately read after write... And read should be done only after i receive write event..&lt;/p&gt;
&lt;p&gt;But if i&amp;#39;m waiting in&amp;nbsp; while loop for write event to be successful, softdevice task wont run parallely and events wont receive..&lt;/p&gt;
&lt;p&gt;How do i do that? How do i read immediately after write?&lt;/p&gt;
&lt;p&gt;Please help..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If possible, please help me with an example..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/286258?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 10:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad9258e-683b-449b-a25c-948a7c8a0055</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You will not receive any events until you start the Freertos scheduler. Maybe you can do the write from a task instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/286203?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2020 05:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e955397f-d511-41ea-bb3d-1c3d05fc98a2</guid><dc:creator>swetha Paladugu</dc:creator><description>&lt;p&gt;no error with write function.&lt;/p&gt;
&lt;p&gt;I see that if i dont wait for write event on while loop, i am receiving write event.&lt;/p&gt;
&lt;p&gt;But i have to read the data back as soon as i write data..&lt;/p&gt;
&lt;p&gt;In that case, what has to be done?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/286013?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 10:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66946fd2-d0b7-494e-b94d-d47d62bc3a10</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please confirm if the write function is returning an error code or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/285817?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 12:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60ad8f6c-a1c6-4eff-9d8d-70ae7d4c7f77</guid><dc:creator>swetha Paladugu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Yes after removing it in main(), fds initialize event received.&lt;/p&gt;
&lt;p&gt;But when i added fds write function after&amp;nbsp;nrf_sdh_freertos_init() function, i am still not receiving fds_write event.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/285567?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 10:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43ebb939-d84d-4e51-943d-6eb4c81be152</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. The problem is that you&amp;#39;re waiting inside wait_for_fds_ready() before the BLE task has been started, so the Softdevice event queue is not being processed. Please try to comment this function in main().&lt;/p&gt;
&lt;p&gt;Result after commenting the wait function:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1608200014306v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/285533?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 08:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ed2a27-ff03-4e6d-bd47-153ad953eb1c</guid><dc:creator>swetha Paladugu</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/My_5F00_Application.zip"&gt;devzone.nordicsemi.com/.../My_5F00_Application.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Attached project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/285515?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 07:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c7acfa-98f7-415a-9752-23aca166d5dd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to share your project here so I can try to debug it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/285489?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 04:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076ed9c5-ea95-4a2e-8ec1-99374a816d33</guid><dc:creator>swetha Paladugu</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/82252.main.c"&gt;devzone.nordicsemi.com/.../82252.main.c&lt;/a&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I kept a breakpoint in&amp;nbsp;&lt;span&gt;nrf_sdh_soc_evts_poll() function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It never reaches the breakpoint.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sharing main.c for reference.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS events are not receiving in freertos project</title><link>https://devzone.nordicsemi.com/thread/285316?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 12:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eecf0961-b057-4b76-8e27-89a7e21eeedb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please make sure you have included the nrf_sdh_soc.c (&lt;span&gt;&lt;a title="nrf_sdh_soc component" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_softdevice_handler.html?cp=7_1_3_48_0_1#lib_sdh_components_nrf_sdh_soc"&gt;nrf_sdh_soc component&lt;/a&gt;&lt;/span&gt;) in your project, and if you already have, place a breakpoint in&amp;nbsp; nrf_sdh_soc_evts_poll() to see if it ever receives any SoC events from the Softdevice (&lt;span&gt;&lt;a title="NRF_SOC_EVTS" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___n_r_f___s_o_c___e_n_u_m_s.html?cp=4_7_3_1_2_7_1_11#ga2a3d2f55035ee3173aff0c05465fb648"&gt;NRF_SOC_EVTS&lt;/a&gt;&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>