<?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>Fstorage timeout error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32061/fstorage-timeout-error</link><description>I am running into an issue with the Fstorage Library with SDK14 that I did not have using SDK12. 
 When I am not connected to BLE I can erase and write flash with no issues. 
 When I am connected to BLE I am now getting timeouts errors when I try to erase</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Apr 2018 22:56:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32061/fstorage-timeout-error" /><item><title>RE: Fstorage timeout error</title><link>https://devzone.nordicsemi.com/thread/127133?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 22:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb8698a3-9faf-4a5d-911a-d03ae60096f7</guid><dc:creator>LukeC</dc:creator><description>&lt;p&gt;I think I found the issue.&lt;/p&gt;
&lt;p&gt;I had the supervisory timeout set very low in order to disconnect quickly when out of range.&lt;/p&gt;
&lt;p&gt;MSEC_TO_UNITS(250, UNIT_10_MS)&lt;/p&gt;
&lt;p&gt;by increasing this to 500ms it seems to work every time.&amp;nbsp; I increased it to 1000ms&amp;nbsp;for some head room.&lt;/p&gt;
&lt;p&gt;I am guessing having that low of a timeout didn&amp;#39;t allow enough time to erase the flash(?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fstorage timeout error</title><link>https://devzone.nordicsemi.com/thread/126630?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 10:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d78cc30-0b70-4db6-b021-ea544f2c4095</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Setting higher connection interval would result in more time to erase the flash.&lt;/p&gt;
&lt;p&gt;Could you test the attached main.c in ble_app_uart (SDK 14.2) and check if flash erase works at your side?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ab3caf73094c40f4a3e0237667b1150d/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Test the code:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Connect to a central&lt;/li&gt;
&lt;li&gt;Test flash write and erase:
&lt;ol&gt;
&lt;li&gt;Press button 3 to erase.&lt;/li&gt;
&lt;li&gt;Press button 4 to write.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fstorage timeout error</title><link>https://devzone.nordicsemi.com/thread/126178?ContentTypeID=1</link><pubDate>Tue, 27 Mar 2018 23:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d15a51df-b313-4f0f-a6ba-8a4da4e968c3</guid><dc:creator>LukeC</dc:creator><description>&lt;p&gt;Kristin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes I have the following set:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;i&amp;gt; NRF_FSTORAGE_SD uses the nrf_fstorage_sd backend implementation using the SoftDevice API. Use this if you have a SoftDevice present.
// &amp;lt;i&amp;gt; NRF_FSTORAGE_NVMC uses the nrf_fstorage_nvmc implementation. Use this setting if you don&amp;#39;t use the SoftDevice.
// &amp;lt;1=&amp;gt; NRF_FSTORAGE_NVMC 
// &amp;lt;2=&amp;gt; NRF_FSTORAGE_SD

#ifndef FDS_BACKEND
#define FDS_BACKEND 2
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t believe this setting should matter since I am using Fstorage rather than FDS correct?&amp;nbsp; Since FDS_ENABLED is set to &amp;#39;0&amp;#39;, the FDS settings should not matter for the Fstorage library right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fstorage timeout error</title><link>https://devzone.nordicsemi.com/thread/124375?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 13:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb4104d3-46db-4f31-8ee0-2d8927ed7c33</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which setting do you have for FDS_BACKEND?&lt;/p&gt;
&lt;p&gt;When using the softdevice, make sure that&amp;nbsp;FDS_BACKEND is set to&amp;nbsp;NRF_FSTORAGE_SD in sdk_config.h so that fds.c includes&amp;nbsp;nrf_fstorage_sd.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>