<?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>bluetooth and flash storage does not work together</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49504/bluetooth-and-flash-storage-does-not-work-together</link><description>I am new to Nordic and i am using nRF52840 microcontroller, - SDK 15.2.0 - s140 
 When i program the microcontroller it gives me error message that my flash storage is full. I have defined my own Flash storage to save the Paramter Objects in to memory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2019 14:04:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49504/bluetooth-and-flash-storage-does-not-work-together" /><item><title>RE: bluetooth and flash does not work together</title><link>https://devzone.nordicsemi.com/thread/198517?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 14:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f56c12b-4009-45b0-aec5-1cda309a6a60</guid><dc:creator>sharu102</dc:creator><description>&lt;p&gt;Thank you for the reply. Your reply&amp;nbsp;set me on a path to finally solving my issue.&lt;/p&gt;
&lt;p&gt;I was actually using regular NRF flash storage functions like nrf_fstorage_xxxx(). When using Peer Manager we have to use different flash functions. I used FDS functions&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;fds_record_delete , fds_record_write() and&amp;nbsp;fds_record_open().&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Alternative would be to use&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;&lt;strong&gt;&lt;code&gt;sd_flash_page_erase() &amp;amp; &lt;/code&gt;&lt;/strong&gt;&lt;strong&gt;&lt;code&gt;&lt;/code&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v2.0.1%2Fgroup___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=3_7_2_1_0_2_7_2_9&amp;amp;anchor=ga8b49f2e72e97291aecc18ce396956eed"&gt;sd_flash_write()&lt;/a&gt;&amp;nbsp;&lt;/strong&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bluetooth and flash does not work together</title><link>https://devzone.nordicsemi.com/thread/197299?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 08:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acaeee27-d75f-4ea7-9a95-b0268f618926</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please elaborate on what your project does? Are you basing it on one of our examples? Have you looked at the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/fds_example.html?resultof=%22%65%78%61%6d%70%6c%65%22%20%22%65%78%61%6d%70%6c%22%20%22%66%64%73%22%20%22%66%64%22%20"&gt;FDS example&lt;/a&gt;?&lt;/p&gt;
[quote user=""]My program was running fine until i included bluetooth in my application.[/quote]
&lt;p&gt;&lt;span&gt;Please read the detailed &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__peer__manager.html?cp=5_1_6_2_15"&gt;description of the Peer Manager&lt;/a&gt;&amp;nbsp;module. It uses&amp;nbsp;&lt;/span&gt;&lt;span&gt;Flash&lt;/span&gt;&lt;span&gt;&amp;nbsp;Data&amp;nbsp;Storage&amp;nbsp;(FDS) to interface with persistent&amp;nbsp;storage. The Peer Manager needs exclusive use of certain FDS file IDs and record keys.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also suggest reading the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds.html?cp=5_1_3_55"&gt;Flash Data Storage &lt;/a&gt;documentation:&amp;nbsp;&amp;nbsp;&amp;quot;&lt;em&gt;When the space is exhausted, write requests return the error&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__fds.html#ggaa156d1cebb38c8a65846c4d9c006012aabb56c173c55f594c5c31e11da12da5a3"&gt;FDS_ERR_NO_SPACE_IN_FLASH&lt;/a&gt;, and you must run garbage collection and wait for completion before repeating the call to the write function. The function&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__fds.html#ga5d3f04e9755408293408be377f7eeaf9"&gt;fds_stat&lt;/a&gt;&amp;nbsp;can return useful information to determine if there are any dirty records in flash which can be garbage collected&amp;quot;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>