<?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 GC error 0x06</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17682/fds-gc-error-0x06</link><description>I am using the FDS functions to save needed data to flash and retrieve it when needed. The init, writing, and reading all function correctly. However I am running into trouble with the garbage collection function. 
 When there is nothing written to flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Nov 2016 21:45:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17682/fds-gc-error-0x06" /><item><title>RE: FDS GC error 0x06</title><link>https://devzone.nordicsemi.com/thread/68031?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 21:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:614d7292-aee9-4550-8b55-75c65e6a0283</guid><dc:creator>ScottD</dc:creator><description>&lt;p&gt;Found the issue!&lt;/p&gt;
&lt;p&gt;When we added capabilities to the DFU the DFU code base grew.  We changed the start address of the DFU, but set it to the highest value possible.  We set it to a value that was not aligned with a 1024 multiple.  Hence when FDS pages were created against that address, they did not align with a 1024 boundary either.&lt;/p&gt;
&lt;p&gt;Changing the DFU start address and the size of the application space to match seems to have corrected the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS GC error 0x06</title><link>https://devzone.nordicsemi.com/thread/68029?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 16:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a8c41b4-92ac-45a4-b094-29238d39a2a8</guid><dc:creator>ScottD</dc:creator><description>&lt;p&gt;Hi Kristin,
Thanks for getting back to me.  I have traced through the code and found where the error is actually coming from.  Here is the call sequence:
fds_gc -&amp;gt;
queue_start -&amp;gt;
queue_processing -&amp;gt;
gc_execute -&amp;gt;
gc_state_advance -&amp;gt;
gc_next_page -&amp;gt;
gc_record_find_next -&amp;gt;
gc_page_erase -&amp;gt;
fs_erase&lt;/p&gt;
&lt;p&gt;I am getting fs_erase returning error 6, which is FS_ERR_UNALIGNED_ADDR, but it gets propogated up the fds chain still as error 6 hence my confusion.&lt;/p&gt;
&lt;p&gt;I am starting to look into why our address is now unaligned.  If you have any suggestions I would greatly appreciate it.&lt;/p&gt;
&lt;p&gt;One other note, this behavior seems to have started when we added the Peer Manager to our code.&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS GC error 0x06</title><link>https://devzone.nordicsemi.com/thread/68030?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 10:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c0d984f-58ee-42e3-afe3-b653c9612d77</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If you run the chip in debug mode and set a breakpoint inside fds_gc(), from which line will it return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>