<?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>nRF51822 Problem with Garbage Collection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46076/nrf51822-problem-with-garbage-collection</link><description>Hello, 
 I am using SDK12.3 and have problem with garbage collection (FDS module). 
 My apllication depends on timeslot, so that FDS is supposed to run together with Bluetooth and ESB.Besides, I use scheduler, APP timer and ADC module. 
 R/W record, deleting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Apr 2019 15:41:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46076/nrf51822-problem-with-garbage-collection" /><item><title>RE: nRF51822 Problem with Garbage Collection</title><link>https://devzone.nordicsemi.com/thread/183886?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 15:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3765e94a-7120-4c69-86d7-5b163698de05</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have tried to look into this, but the only thing we can&amp;#39;t think of is some kind of stack overflow that overwrite the stack in the softdevice, and then this issue occur pretty much by accident. Then the issue should not be consistent, is the same assert (pc) always occurring, same time, is it reproducible, how long have the programming been running etc.?&lt;/p&gt;
&lt;p&gt;Maybe you can try to run&amp;nbsp;&lt;span&gt;fds_gc() after a fixed number of&amp;nbsp;fds_record_update() before&amp;nbsp;FDS_ERR_NO_SPACE_IN_FLASH&amp;nbsp;occurs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Problem with Garbage Collection</title><link>https://devzone.nordicsemi.com/thread/182236?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 06:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be85101-a4b2-4101-9c40-4eda6ff53f10</guid><dc:creator>yaoCheng</dc:creator><description>&lt;p&gt;Thanks for the reply. My application uses FDS to save user configurations for ESB and Bluetooth, so I cannot turn off Bluetooth, otherwise the device will disconnect. It is possible to turn off ESB during the saving process.&lt;/p&gt;
&lt;p&gt;Garbage collection is not carried out often, just once per day or in several days in real application, dependent on how often the user changes his configuration. I now only carry out garbage collection when the storage is full and after the error FDS_ERR_NO_SPACE_IN_FLASH is returned when saving something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Problem with Garbage Collection</title><link>https://devzone.nordicsemi.com/thread/182191?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 17:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c246cb4c-3522-4916-8909-15998d58424a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can check with the softdevice team. How frequently are you running garbage collection on average? I was just thinking that if it&amp;#39;s indeed a softdevice issue, whether it was possible for you to close BLE and ESB activity before running garbage collection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Problem with Garbage Collection</title><link>https://devzone.nordicsemi.com/thread/181571?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 11:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89f91f83-4f5c-49c9-adc9-8f062a4fef36</guid><dc:creator>yaoCheng</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I have replaced the folder &amp;quot;fds&amp;quot;with the folder in SDK 13.0.0, but the problem is still there.&lt;/p&gt;
&lt;p&gt;There is no break point in my problem and interrupts are not disabled.&lt;/p&gt;
&lt;p&gt;By the way, I am using SWI3_IRQn for APP timer because SWI1_IRQHandler is used by ESB and SWI2_IRQHandler is used by softDevice. I hope that this does not cause problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Problem with Garbage Collection</title><link>https://devzone.nordicsemi.com/thread/181555?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 11:29:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc0d30fa-5335-4fc5-88d4-a67058478eef</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like an assert in the softdevice, I could find several threads with the same symptoms:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39053/migrating-from-sdk8-to-sdk12-app_timer-crashes-softdevice-pc-0x000104ae-fault-id-0x00000001-error_info-0x0000000"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39053/migrating-from-sdk8-to-sdk12-app_timer-crashes-softdevice-pc-0x000104ae-fault-id-0x00000001-error_info-0x0000000&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27744/softdevice_fault_handler-id-1-pc-0x104ae"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/27744/softdevice_fault_handler-id-1-pc-0x104ae&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/22020/s130-nrf51822-nrf_drv_twi_init-softdevice-error-0x0001"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/22020/s130-nrf51822-nrf_drv_twi_init-softdevice-error-0x0001&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can in general find that the FDS have several fixes in SDKv13, so as a first step I suggest that you pull in the FDS files from SDKv13 to your project and try again.&lt;/p&gt;
&lt;p&gt;Also make sure you are not disabling interrupts anywhere or setting breakpoints that may cause the softdevice to fail due to critical timing.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>