<?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>nRF52832 got a HardFault when calling fds_gc()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55962/nrf52832-got-a-hardfault-when-calling-fds_gc</link><description>Hi 
 
 I was using FDS without SoftDevice to implement the log system of our product. 
 But the system was stuck after hundreds of records writing/deleting. Finally I located it would happen when the fds_gc() was invoked. It went into HardFault_Handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 04 Jan 2020 05:36:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55962/nrf52832-got-a-hardfault-when-calling-fds_gc" /><item><title>RE: nRF52832 got a HardFault when calling fds_gc()</title><link>https://devzone.nordicsemi.com/thread/227513?ContentTypeID=1</link><pubDate>Sat, 04 Jan 2020 05:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c22baec2-48c2-4028-a02d-25e6baf0dee4</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not obvious from the code that you posted where the garbage collection is done, is it done in the record_delete() call? There is a limited amount of how many fds operations that can be queued, this is dependent on&amp;nbsp;FDS_OP_QUEUE_SIZE in the config file.&lt;/p&gt;
&lt;p&gt;Could you provide a minimal project in a zip that will reproduce the error and is able to run on the development kit?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m out of office until the end of next week, expect therefore some delay in the reply.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 got a HardFault when calling fds_gc()</title><link>https://devzone.nordicsemi.com/thread/227378?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 10:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bdd504b-e794-4e15-bb18-b8ee3fb2c6a8</guid><dc:creator>Bevin</dc:creator><description>&lt;p&gt;It will enter HardFault handler but not stuck in any statement of fds_gc()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 got a HardFault when calling fds_gc()</title><link>https://devzone.nordicsemi.com/thread/227245?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 13:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:797dd77e-9ddf-4997-8fc4-3b96e9dad020</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;And if you put a breakpoint in fds_gc()? Where does it fault?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 got a HardFault when calling fds_gc()</title><link>https://devzone.nordicsemi.com/thread/227125?ContentTypeID=1</link><pubDate>Tue, 31 Dec 2019 05:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d96318-caf8-4333-a0c9-ebb4e7de7844</guid><dc:creator>Bevin</dc:creator><description>&lt;p&gt;Hi Jared&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The fds_gc() would not return. The hardfault happened when the fds_gc() was processing.&lt;/p&gt;
&lt;p&gt;My test steps are:&lt;/p&gt;
&lt;p&gt;1. logadd 400&lt;/p&gt;
&lt;p&gt;2. call fds_gc()&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Bevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 got a HardFault when calling fds_gc()</title><link>https://devzone.nordicsemi.com/thread/226937?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2019 13:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:982188c3-8843-4d0c-94ce-e89c7381f054</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What does fds_gc() return before the application goes to the hardfault handler?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>