<?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>Can&amp;#39;t get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22265/can-t-get-a-callback-from-fds-no-matter-what---help</link><description>I am able to initialize the module and get the callback , but when I try to write I will not get the callback after the write, and no errors. 
 If I simply try to read after write he will not find anything to read. 
 Please help, I&amp;#39;v been trying 2 days</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jul 2018 12:20:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22265/can-t-get-a-callback-from-fds-no-matter-what---help" /><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/139560?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 12:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e312a278-ea4e-4444-8790-79cb04fb3995</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you have a look at the suggestions in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32582/fds_evt_handler-not-invoked-for-52840-sdkv14-2-s140"&gt;this &lt;/a&gt;thread and check if any of them solves the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/139159?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 18:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b93b3e2a-26dc-4aa0-b3ff-6d03f4efa2b1</guid><dc:creator>darrenji</dc:creator><description>&lt;p&gt;I am having this same problem, with a slightly different slant. &amp;nbsp;I&amp;#39;m using the latest SDK (15) which doesn&amp;#39;t have&amp;nbsp;&lt;code&gt;softdevice_ble_evt_handler_set(). &amp;nbsp;I have the fds backend set to use&amp;nbsp;&lt;/code&gt;NRF_FSTORAGE_SD, however fds will only work if I don&amp;#39;t call&amp;nbsp;nrf_sdh_ble_enable(). &amp;nbsp;If I do enable the soft device, I get the problem reported here: the init event is received, but no other events. If I don&amp;#39;t enable the sd, fds works as expected and I get all of the callbacks. &amp;nbsp; fds is failing silently. &amp;nbsp;I&amp;#39;ve been debugging this for 3 days now. &amp;nbsp;Incredibly frustrating.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/87528?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 15:07:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10ba1701-2567-470d-9dc8-dbb512dc2ba5</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;Thanks, I read the fds doc 4 times, no single word about this line.would be simple to just create classes that are encapsulated with things like  &lt;code&gt;saveToMemory(fileID,Key)&lt;/code&gt; , instead of huge messy example projects..&lt;/p&gt;
&lt;p&gt;Anyway  - thank you again .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/87530?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 14:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f99f83ef-af18-43e3-a4b1-8a1324324b1e</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Good to hear that it works now!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; Yes, that&amp;#39;s correct, the flow is the following: The softdevice pushes events to &lt;code&gt;fs_sys_event_handler&lt;/code&gt; (fstorage.c) --&amp;gt; &lt;code&gt;fs_event_handle&lt;/code&gt; (fds.c) --&amp;gt; &lt;code&gt;my_fds_event_handler&lt;/code&gt; (main.c)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; We want to make things clear, and we try to make the documentation good. But I do see that it lacks some small, but important details. I will report what you mentioned regarding PWM internally, I see that sdk_config.h always mentioned in the documentation for other library as well. Hopefully the documentation can be updated!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/87529?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 12:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc759549-915e-479f-bec9-da783ce42bf7</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;I love you :) Thanks Kristen. first of all adding that line solved the problem right away. Then I have questions, please if I may .&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;There are 2 things to register and I don&amp;#39;t understand if your explanation is regarding the first or second. The &lt;strong&gt;softdevice_sys&lt;/strong&gt; pushes from the soft device to the FS, and the &lt;strong&gt;fs_sys&lt;/strong&gt; from fs to the application ?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;As I see you are a Nordic employ, I must ask, why, why you are making things so hard? :) You built an amazing chip, and yet for every little thing I have to fight because it&amp;#39;s not on the docs. I would never find out that I have to put this line without you, and the same happened to me with the PWM and config file where you have to enable anything you do on the config in many other modules. If you would make things super clear and friendly (put things in classes with clear setup like arduino) you would become super popular. Thanks again!&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/87527?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 09:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbf106ea-3bf9-4fa5-9a62-2c6364969a47</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated my answer to answer your questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/87526?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 08:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9333e52a-65e2-4592-b1ea-7e2dd9e93d08</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;At the init_ble_stack function I have this :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do I have to add &lt;strong&gt;also&lt;/strong&gt; your lines ? if so , why ? can you explain please ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get a callback from FDS no matter what - help!</title><link>https://devzone.nordicsemi.com/thread/87525?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 08:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557982f4-3847-4826-9971-b54ae167f644</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What does setupBluetoothWithDelegate(..) do?&lt;/p&gt;
&lt;p&gt;Do you add sys_evt_dispatch() to softdevice_sys_evt_handler_set():&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void sys_evt_dispatch(uint32_t sys_evt)
{
// Dispatch the system event to the fstorage module, where it will be
// dispatched to the Flash Data Storage (FDS) module.
fs_sys_event_handler(sys_evt);

...
}


static void ble_stack_init(void)
{
    ...
    err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
    APP_ERROR_CHECK(err_code);
} 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt;
The purpose of registering an event handler through softdevice_sys_evt_handler_set() is to have an event handler for SOC events &amp;quot;going through&amp;quot;/forwarded by the softdevice. For doing write operations, fstorage uses &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v3.0.0%2Fgroup___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_0_1_2_2_7_2_9&amp;amp;anchor=ga8b49f2e72e97291aecc18ce396956eed"&gt;sd_flash_write()&lt;/a&gt;. When sd_flash_write() has successfully completed or upon an error, an event will be fetched. This event is handled by fs_sys_event_handler() in fstorage.c. If no event handler is registered to the softdevice, the softdevice will not have any place to forward the event.&lt;/p&gt;
&lt;p&gt;Therefore, &lt;code&gt;softdevice_sys_evt_handler_set(sys_evt_dispatch)&lt;/code&gt; has to be called, with sys_evt_dispatch() containing the relevant event handlers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>