<?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 Issue(s)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25954/nrf51-sdk-12-fds-issue-s</link><description>Hello, 
 I am not able to make the FDS work. Here is my setup 
 
 NRF51 
 SDK 12.3 
 S130 (2.0.1), i.e. s130_nrf51_2.0.1_softdevice.hex 
 Using peer manager as well 
 
 sdk_config.h : 
 // &amp;lt;e&amp;gt; FDS_ENABLED - fds - Flash data storage module
/</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jun 2018 19:53:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25954/nrf51-sdk-12-fds-issue-s" /><item><title>RE: NRF51, SDK 12, FDS Issue(s)</title><link>https://devzone.nordicsemi.com/thread/135638?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 19:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da3cdca-a32a-48ff-bfcb-2ccb16965a30</guid><dc:creator>Maarten</dc:creator><description>&lt;p&gt;I&amp;nbsp;think I have the first issue of the fstorage, how did you resolve this? I&amp;#39;m using SDK 12.3 with the nRF51.&lt;/p&gt;
&lt;p&gt;When I run my code I initialize fstorage and do a test erase, write and read. This works.&lt;/p&gt;
&lt;p&gt;Then I put the device in sleep (sd_app_evt_wait) after this I do not get a&amp;nbsp;&lt;span&gt;fs_sys_event_handler trigger.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you help me?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51, SDK 12, FDS Issue(s)</title><link>https://devzone.nordicsemi.com/thread/102254?ContentTypeID=1</link><pubDate>Sun, 15 Oct 2017 16:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e8e2fd-2c0e-4ea1-9cce-a48c1f6a61b3</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;I managed to figure this out. It was the result of two things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;fs_sys_event_handler()&lt;/code&gt; of the &lt;code&gt;fstorage&lt;/code&gt; was not called in the &lt;code&gt;sys_evt_dispatch()&lt;/code&gt; (some legacy code of ours was interfering).&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;RTT&lt;/code&gt;dubug print was too slow. We added delays to allow &lt;code&gt;RTT&lt;/code&gt; to have the chance of sending the prints. (Even better is to use breakpoints in this case)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As to why the &lt;a href="https://github.com/NordicSemiconductor/nRF5-flash-storage-examples/tree/master/fds_example"&gt;example&lt;/a&gt; was also showing the same behavior (which was super confusing to us), it has to do probably with the &lt;code&gt;RTT&lt;/code&gt; prints. We didn&amp;#39;t have the time to check it this out, but my guess is it works just fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51, SDK 12, FDS Issue(s)</title><link>https://devzone.nordicsemi.com/thread/102253?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 23:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9134be6b-1619-4e31-a73e-86628c88bd36</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;My sequence is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fds_register();
fds_init();
wait_event_loop(); // wait for fds init complete
fds use
advertisement
main loop
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51, SDK 12, FDS Issue(s)</title><link>https://devzone.nordicsemi.com/thread/102252?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 19:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd20e0f-2ad3-4d55-ad75-5842fafe05fd</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;By default I use it as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, NULL);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;buttons_leds_init(&amp;amp;erase_bonds);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ble_stack_init();&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;peer_manager_init(erase_bonds);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fds&lt;/code&gt; use!&lt;/li&gt;
&lt;li&gt;main loop: &lt;code&gt;sd_app_evt_wait()&lt;/code&gt;. It &amp;quot;hangs&amp;quot; here waiting for events&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I also removed peer manager and did:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;fds_register();&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fds_init();&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fds&lt;/code&gt; use!&lt;/li&gt;
&lt;li&gt;main loop: &lt;code&gt;sd_app_evt_wait()&lt;/code&gt;. It &amp;quot;hangs&amp;quot; here waiting for events&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;No luck in either case of course... :( And no errors either...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51, SDK 12, FDS Issue(s)</title><link>https://devzone.nordicsemi.com/thread/102251?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 18:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270139f1-798d-4b28-a809-64a7d1b52712</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;If you use FDS before initializing peer_manager, you need to do that before you initializing peer.  Otherwise it will get stuck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51, SDK 12, FDS Issue(s)</title><link>https://devzone.nordicsemi.com/thread/102250?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 18:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a96713-3b45-4049-b6f6-64d59194b0da</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;Yes, in the main loop, there is the &lt;code&gt;sd_app_evt_wait();&lt;/code&gt; basically&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51, SDK 12, FDS Issue(s)</title><link>https://devzone.nordicsemi.com/thread/102249?ContentTypeID=1</link><pubDate>Sat, 14 Oct 2017 17:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1416bd4e-72d1-4846-9a26-a62c28fd210c</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The evt callback only happens after a call to &lt;code&gt;sd_app_evt_wait();&lt;/code&gt; or &lt;code&gt;app_sched_execute();&lt;/code&gt; if scheduler is in use.  So you need something like this to get the event.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;g_bFdsInitialized = false;

while (g_bFdsInitialized == false)
{
     app_sched_execute();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;g_bFdsInitialized&lt;/code&gt; needs to be set to true in the event handler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>