<?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>Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13857/not-getting-a-write-call-back-with-fds</link><description>I&amp;#39;ve been doing some exercises with the FDS module to ensure I understand it and have come across an issue. When I write I am not seeing a write call-back in the fds_event_handler to say it has occurred even though I am getting a success message on calling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Nov 2018 11:39:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13857/not-getting-a-write-call-back-with-fds" /><item><title>RE: Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/thread/157060?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 11:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:782ab074-cc32-423a-ac5b-671947db2e88</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This has been replaced and you do not need it anymore. The first parameter in&amp;nbsp;nrf_fstorage_init have a member called evt_handler that does the same funtinality as &lt;span&gt;fs_sys_event_handler&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/thread/155179?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 14:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab0cb908-1a17-4396-8e59-ae9a7318d580</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;fs_sys_event_handler is not defined in SDK15. Is it still necessary to feed fstorage events to the FDS? How?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/thread/52945?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 16:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:333e92db-8820-4ce5-9126-6af2483ee04d</guid><dc:creator>Lola</dc:creator><description>&lt;p&gt;Having the same problem for a day now. I did register this function and yet there is no callback when I write, only a success value in ret . Can you please take a look ? &lt;a href="https://devzone.nordicsemi.com/question/139267/cant-manage-to-read-from-flash/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/thread/52944?ContentTypeID=1</link><pubDate>Sat, 14 May 2016 10:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bca6615b-1f0d-4563-bb2e-f70c96dd1d9b</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Thanks for the useful colour - I will bear this in mind.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/thread/52943?ContentTypeID=1</link><pubDate>Sat, 14 May 2016 10:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84001340-ba30-4420-bb91-823654fcff92</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;yeah - I don&amp;#39;t think it does tell you that anywhere in the FDS documentation.&lt;/p&gt;
&lt;p&gt;One standard thing you get to &amp;#39;know&amp;#39; in the Nordic SDK code is that almost every one of their modules needs to be fed with events, either system events or BTLE events. eg all the BTLE services need BTLE events, anything dealing with Flash needs system events (which are the flash read/write completion raw events). So there&amp;#39;s almost always somewhere you have to hook that into your event loop.&lt;/p&gt;
&lt;p&gt;Of course FDS is an exception, because it relies on fstorage which has its own callbacks.&lt;/p&gt;
&lt;p&gt;I long-ago wrapped all this stuff in C++ and a generic event dispatcher so that all the modules I use register themselves at creation time, because I got sick of forgetting to do it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/thread/52942?ContentTypeID=1</link><pubDate>Sat, 14 May 2016 10:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:135189ca-5126-4e2d-ada8-978c3cc0d480</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Thanks RK, I felt there was something missing.&lt;/p&gt;
&lt;p&gt;So what I did was add the function sys_evt_dispatch() which calls fs_sys_event_handler with a sys_evt.  I then registered this in ble_stack_init() using softdevice_sys_evt_handler_set().  Now works like a charm.  It would be great if the SDK documentation on FDS was expanded a little to explain this pretty crucial step  otherwise it is pretty well documented.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting a write call-back with FDS</title><link>https://devzone.nordicsemi.com/thread/52941?ContentTypeID=1</link><pubDate>Sat, 14 May 2016 09:23:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e901249d-fa8d-4d7a-a6b0-b6685011fe91</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Calling&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void fs_sys_event_handler( uint32_t  sys_evt	)	
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;anywhere? WIthout that, no events are dispatched to the fstorage system so it won&amp;#39;t do anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>