<?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>FDS Flash write operations halts device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65835/fds-flash-write-operations-halts-device</link><description>Hello, 
 nRFSDK5 v16.0, device nRF52840, Softdevice v7.0.1 
 I am trying to write some data periodically onto device flash memory using FDS Lib, occasionally I come across following error message. Can anybody help? 
 
 Here is my code function to write</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Feb 2021 17:59:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65835/fds-flash-write-operations-halts-device" /><item><title>RE: FDS Flash write operations halts device</title><link>https://devzone.nordicsemi.com/thread/292982?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 17:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b949cf03-be5e-46a6-ba78-90f19196b23f</guid><dc:creator>dgerman</dc:creator><description>&lt;p&gt;Thanks for the confirmation and the reference to the stat function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Flash write operations halts device</title><link>https://devzone.nordicsemi.com/thread/292969?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 15:40:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94552284-19e6-48f3-87c9-22f8facfcc0f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, like you said, GC shouldn&amp;#39;t be perfomed too often as it increases wear on flash. Also note that you can use the &lt;span&gt;&lt;a title="fds_stat" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__fds.html?cp=7_1_6_10_18_31#ga5d3f04e9755408293408be377f7eeaf9"&gt;fds_stat&lt;/a&gt;&lt;/span&gt;() function to monitor the flash usage and run GC before it gets completely full.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Flash write operations halts device</title><link>https://devzone.nordicsemi.com/thread/292967?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 15:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfe1feab-21cb-47e6-bc21-d2d86bfc62a6</guid><dc:creator>dgerman</dc:creator><description>&lt;p&gt;Would it be more appreciate to ONLY &amp;quot;manually&amp;quot; invoke garbage collection when FDS_ERROR_NO_SPACE_IN_FLASH is returned to avoid excessive wear that would be caused by calling garbage collection too frequently?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Flash write operations halts device</title><link>https://devzone.nordicsemi.com/thread/269181?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 13:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f02e5d-612c-4e94-a4b9-8a9b2396dda2</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;Hi, Thanks for reply.&lt;/p&gt;
&lt;p&gt;I noticed that I&amp;#39;m already using fds_gc() function in the FDS initialization code. Is this is something we use on repeated bases, like calling fds_gc() every time before writing data to flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Flash write operations halts device</title><link>https://devzone.nordicsemi.com/thread/269174?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 13:06:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9eee0bb-20ef-4c06-a380-d8e57df497c2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The error corresponds to &lt;span&gt;&lt;a title="FDS_ERR_NO_SPACE_IN_FLASH" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__fds.html?cp=7_1_6_10_18_11_6#ggafa9be5679ab03d785820f2474c5ccc6eabb56c173c55f594c5c31e11da12da5a3"&gt;FDS_ERR_NO_SPACE_IN_FLASH&lt;/a&gt;, so you need to free up more space to update your record. This is usually done by performing a &lt;a title="Garbage collection" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_fds_functionality.html?cp=7_1_3_16_1_2#lib_fds_functionality_gc"&gt;Garbage collection.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>