<?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>SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25972/sdk14-application-and-peer-manager-using-fds-simultaneously</link><description>Test code：SDK14 ble_app_ancs_c 
 Hey guys,
When I used ble_app_ancs_c demo to do FDS, there was a problem！
I initialize FDS and register the drop back function。 
 
 When I was working with FDS, I found that I didn&amp;#39;t go in and complete the callback</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2017 07:31:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25972/sdk14-application-and-peer-manager-using-fds-simultaneously" /><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102327?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 07:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf9b843-1dac-4d23-bb54-f1aa26ed5c68</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;fds doesn&amp;#39;t really use the scheduler.
However, if NRF_SDH_DISPATCH_MODEL is set to NRF_SDH_DISPATCH_MODEL_APPSH, then the SoftDevice handler (nrf_sdh) schedules events coming from the SoftDevice (including SoC events regarding flash, which fds relies on), instead of processing them in the interrupt context. Thus, you&amp;#39;d need to run app_sched_execute() for fds to work. Hope that makes sense :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102326?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 02:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d71754b-7bf3-46af-bcfb-51dcea3e7029</guid><dc:creator>Jray</dc:creator><description>&lt;p&gt;Hi emdi,
Find out why！After writing the wait, you need to add app_sched_execute, because FDS also uses the sched, so you need to ensure that sched can work properly. Otherwise, no callback function can be found！&lt;/p&gt;
&lt;p&gt;Thank you for your help！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102329?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 11:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38e0a3c2-f72d-4ac5-8aef-5c3266a198bf</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Sorry,&lt;/p&gt;
&lt;p&gt;I missed an important entry when I asked earlier about those entries in sdk_config.h.&lt;/p&gt;
&lt;p&gt;Please make sure that NRF_FSTORAGE_ENABLED is also set to 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102328?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 10:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336f1125-6c84-414c-9463-82dfc3529ac6</guid><dc:creator>Jray</dc:creator><description>&lt;p&gt;Keil V5.21&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102323?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 10:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3a182f-1981-4ea4-ab39-f36ebca55184</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Which compiler are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102322?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 10:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58707c26-da97-4d80-990f-6a3b8ea34adb</guid><dc:creator>Jray</dc:creator><description>&lt;p&gt;Yes,I carefully checked again, these macros are defined as 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102331?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 10:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdaa649c-8d35-459a-8964-995d0588d25d</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Please, make sure that&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRF_SDH_SOC_ENABLED&lt;/li&gt;
&lt;li&gt;NRF_SDH_BLE_ENABLED&lt;/li&gt;
&lt;li&gt;NRF_SDH_ENABLED&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;are all set to 1 in the sdk_config.h file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102330?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 10:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94781a25-b2a7-4f14-ab36-fc995249e513</guid><dc:creator>Jray</dc:creator><description>&lt;p&gt;Yes,I upgraded from SDK12.3 to SDK14.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102332?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 10:09:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:937373e5-1611-45a5-b78d-f1be0b5e76ef</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Have you perhaps updated your project from an older SDK version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102321?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:17:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d940296-a7e2-4993-9477-32dfc7089b8c</guid><dc:creator>Jray</dc:creator><description>&lt;p&gt;Hi emdi,&lt;/p&gt;
&lt;p&gt;1.the fds_record_write() return FDS_SUCCESS.&lt;/p&gt;
&lt;p&gt;2.I single step debugging, found that there is a callback initialization, write data without callback！&lt;/p&gt;
&lt;p&gt;3.The program stops waiting for the write status flag.&lt;/p&gt;
&lt;p&gt;4.If the program does not wait for the write completion flag, then everything is OK!&lt;/p&gt;
&lt;p&gt;Thank you for your help！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102325?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 08:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b44dca-bde6-4592-b9d3-d09484374085</guid><dc:creator>emdi</dc:creator><description>&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;No, the application and the peer manager don&amp;#39;t &amp;#39;conflict&amp;#39; when using fds.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;How do you determine that my_fds_evt_handler is not called, do you step or do you only look at logs? If so, try adding  a log entry in the default case in the switch to make sure you are not missing any event.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Does the fds_record_write() return FDS_SUCCESS?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102324?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 08:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c227034f-9e20-493f-9fc6-14ce467fa29a</guid><dc:creator>Jray</dc:creator><description>&lt;p&gt;Hi emdi,&lt;/p&gt;
&lt;p&gt;I used ble_app_ancs_c demo to do FDS and I initialize FDS and register the callback function(my_fds_evt_handler),When executing fds_write(), I found that it didn&amp;#39;t go in the callback function(my_fds_evt_handler)！Is the application FDS conflict with the peer manager operation?&lt;/p&gt;
&lt;p&gt;Looking forward to your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 application and peer manager using FDS simultaneously</title><link>https://devzone.nordicsemi.com/thread/102320?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 07:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebc0e673-8acd-4bc9-b9de-978ef38dff34</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Not sure about what you are asking..&lt;/li&gt;
&lt;li&gt;The fs_sys_event_handler() function is registered automatically in SDK 14.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>