<?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>NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18036/nrf51-sdk-12---fds-callback---fds_evt_write-not-triggered</link><description>Hi
I have tried to make use of the FDS for storing data and encountered this behaviour.
The required setup of the sys_evt_dispatch() &amp;amp; fs_sys_event_handler(sys_evt) are done. 
 The following steps are carried out.
fds_register(fds_evt_handler);
fds_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Oct 2017 11:39:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18036/nrf51-sdk-12---fds-callback---fds_evt_write-not-triggered" /><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69523?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 11:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253f3611-72fb-478b-9444-a0751402e28c</guid><dc:creator>Miki</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ll try digging into fds module, if no result, I&amp;#39;ll follow your suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69516?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 11:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1679324d-1e28-442a-b9cc-23f779b165b5</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;Handlers (IRQ) should always be small, right? Having said that, why don&amp;#39;t you put for example a switch case in your &lt;code&gt;main&lt;/code&gt;, like: &lt;code&gt;case BUTTON_PRESSED: // do your FDS stuff&lt;/code&gt;, and the variable is set in the handler. Just a thought... :) (round robin with IRQ type of approach)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69522?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 10:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9489352-d40a-4c6b-9879-6479e2580b79</guid><dc:creator>Miki</dc:creator><description>&lt;p&gt;after several trials, i might figured out what caused this issue, when I called fds write in an timer event handler, the FDS_EVT_WRITE never triggered, even though sd_app_evt_wait() was called, while called in the initialization of the timer, the FDS_EVT_WRITE triggered and data got written to flash, that is the fds write or delete should not be called in an event handler or its sub calls, such as a button event handler. question is, the calls always happen in event handler, how can I do it right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69518?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 10:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cda18b7-a663-445b-b33b-610105692801</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;No no, I don&amp;#39;t think so. In our case we couldn&amp;#39;t see the prints and we thought the code was not working. Better use breakpoints (if you can).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69517?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 09:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc03794b-d945-42d3-943e-24b99a7e604a</guid><dc:creator>Miki</dc:creator><description>&lt;p&gt;my nrf_log print to RTT is disabled, will it still cause the trouble?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69521?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 08:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c30f84d-5677-4930-a4c5-a79c59c334f8</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;Check this in case it helps: &lt;a href="https://devzone.nordicsemi.com/question/173279/nrf51-sdk-12-fds-issues/?answer=173330#post-id-173330"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69520?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2017 08:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:598a0010-a29f-4967-8fda-7f40b1f79c8b</guid><dc:creator>Miki</dc:creator><description>&lt;p&gt;I put delete, read or write functions right after fds_register() and fds_init(), the events triggered well, while in my application code, FDS_EVT_WRITE won&amp;#39;t trigger any more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69519?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 13:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:172cf7c1-0e36-449f-8864-f2d63e7057ec</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;same here any solution??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69515?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 07:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:237bd47e-1a66-40eb-898b-2ceed71d424e</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What does your FDS code look like? Do you have tried &lt;a href="https://github.com/hubuhubu/nRF52-fds-example"&gt;this&lt;/a&gt; unofficial FDS example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69514?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 18:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ee27516-778c-4745-a4ff-3d992eaf58a7</guid><dc:creator>eyigiter</dc:creator><description>&lt;p&gt;Hey @duckduck, have you found a solution yet? I am getting the same case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SDK 12 - FDS callback - FDS_EVT_WRITE not triggered</title><link>https://devzone.nordicsemi.com/thread/69513?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 12:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d59ba5-4293-410f-8d47-965201d36741</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you checking the returned error codes of your function calls? What is the result that you get with the FDS_EVT_INIT event? Are you using FDS together with Peer Manager or alone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>