<?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>Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104202/some-fds-pages-are-fds_page_undefined</link><description>Hi, 
 
 In one of our device, we have some page type who are FDS_PAGE_UNDEFINED while the most of part none. 
 
 My FDS configuration are like below : 
 
 So my page addr range should be 0x58000 to 0x70000. 
 In most of my device i read the DEADC0DE at</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2023 07:27:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104202/some-fds-pages-are-fds_page_undefined" /><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448752?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 07:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b434ae-d1e5-463a-b4a0-c4f0f5692402</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Only for this board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think we will assume the tired flash.&lt;/p&gt;
&lt;p&gt;Thanks for the support.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448657?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 12:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:771809de-3c64-4308-a3cb-21666ecf6c0b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So I tried reproducing your result using nRF Connect Programmer Application and the flash_fds example, with the nRF52 development kit,&lt;/p&gt;
&lt;p&gt;I first flashed kit with the flash_fds example:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696337077234v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I then erased it:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696337106517v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As you can see the whole flash was erased, I then tried re writing to it with the Softdevice and the application:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696337255728v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Julien F"]I except the same thing, but with this tag, some data are not erase ONLY with this tag (strange).[/quote]
&lt;p&gt;Is this on all your boards or only the boards that had the previous issue? If some of the boards already have a tired flash then this might be a symptom of it,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448543?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 14:18:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9923dc38-528e-4e4f-9548-39ce015afcfb</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;I except the same thing, but with this tag, some data are not erase ONLY with this tag (strange).&lt;/p&gt;
&lt;p&gt;Yes, with v17.1 the flash looks good.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448511?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 12:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfcd1cd6-7eae-4356-94ef-7cb31f1ea001</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;hmm strange, I would expect the whole flash to be erased when you do an erase.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But other than that,&amp;nbsp;you are not able to reproduce the issue with v17.1 right?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448300?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 09:36:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56da542f-c515-4e85-bcc4-7d13560c40a6</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;Hmmm, it&amp;#39;s a bit strange when i am testing with SDK v17.1&lt;/p&gt;
&lt;p&gt;I have no&amp;nbsp;FDS_PAGE_UNDEFINED. And the flash seems correct&lt;/p&gt;
&lt;p&gt;When i erase all the chip with nrf connect i keep data on my stack (see below)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2023_2D00_09_2D00_29_5F00_11h32_5F00_31.png" /&gt;&lt;/p&gt;
&lt;p&gt;Then if i erase and write with the SD 132 v 7.2, the previous bytes have disapeared.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2023_2D00_09_2D00_29_5F00_11h35_5F00_59.png" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit confused.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julien&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448284?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 09:02:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f8cf33-3ca9-4832-a41d-c831a213d460</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hmm, then it sounds like a bug.&lt;/p&gt;
&lt;p&gt;Have you tried reproducing it with SDK v17.1.0?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448281?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 08:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c18764ae-b8a6-4200-beb4-19e30a265c64</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;The init routine are successful, i got FDS_SUCCESS and i have the FDS_EVT_INIT with FDS_SUCCESS result also&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448270?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 08:27:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1d45f9-39ce-4934-bccd-d401fa178a06</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the init routine successful? Do you check the return value from&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__fds.html#ga2382947318f107a9c8d08a9a5916ccf4"&gt;fds_init&lt;/a&gt;&lt;span&gt;&amp;nbsp;()?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448268?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 08:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4a9c1e2-5ff1-4f49-ade5-3c938097cb44</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Thanks i will change that.&lt;/p&gt;
&lt;p&gt;I try to see if my FDS was corrupt with fds_stat function, but i don&amp;#39;t get the&amp;nbsp;corruption flag, is it normal ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448264?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 08:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a909766a-4de0-45da-8d51-6a35912b3b0d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Julien,&lt;/p&gt;
&lt;p&gt;Yes, I agree. I think there is a chance that the flash has been worn out, due to many flash erase/write cycles. If you run GC each time the device resets then it will more quickly reach this flash erase/write cycle limit, especially if the device is put into a state where it resets often.&lt;/p&gt;
&lt;p&gt;You should only do GC when you have and not during the init routine except if the flash is full.&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><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/448181?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 13:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68dcfd6f-2b0d-47fc-9afa-48f9eb8c1a3e</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Actually i see only one device with this issue.&lt;/p&gt;
&lt;p&gt;I run the GC at the init and when i have no space in flash.&lt;/p&gt;
&lt;p&gt;After a full erase, some part are not reset to 0xF, i guess the flash is broke, do you agree ?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some FDS pages are FDS_PAGE_UNDEFINED</title><link>https://devzone.nordicsemi.com/thread/447959?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 13:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:041eaf71-03ca-45e5-8cf4-a7389983172e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This sounds strange, can&amp;#39;t say I recall seeing this exact issue, but a bunch of FDS issues were patched in our newer nRF5SDK versions such as v17.1.0. Have you been able to reproduce the issue with that or any newer SDK versions?&lt;/p&gt;
&lt;p&gt;How many devices do you see this issue on, only one?&lt;/p&gt;
&lt;p&gt;How often in your code do you run the garbage collector?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do a full erase, is there still some 0s that hasn&amp;#39;t been reset to 0xF?&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>