<?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>About nRF52840 save file error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54708/about-nrf52840-save-file-error</link><description>Hi all: 
 
 Currently, when using nRF52840 for archiving applications, I will encounter a condition and this will result in data corruption. 
 And I found a way to reproduce the problem using official tools. Does anyone have the same situation as me?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Dec 2019 15:56:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54708/about-nrf52840-save-file-error" /><item><title>RE: About nRF52840 save file error</title><link>https://devzone.nordicsemi.com/thread/225443?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 15:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f0ba49-33a6-4b16-b891-460f2a78cbd5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You could try to move the &amp;quot;ff_result = f_sync( &amp;amp; file);&amp;quot; outside the for-loop (for (uint16_t i = 0; i &amp;lt; 96; i++)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1576252506585v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF52840 save file error</title><link>https://devzone.nordicsemi.com/thread/221683?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2019 06:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a637d77-e208-4677-bdc3-b34c83f8fe95</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The proposed method is mainly to reproduce the problem.&lt;br /&gt;What I want to know is the reason for this problem.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;For example, as you mentioned,&lt;br /&gt;1. The question is: Is the f_mkfs() parameter different from the PC formatting settings option?&lt;br /&gt;But I don&amp;rsquo;t seem to affect when I don&amp;rsquo;t delete those two lines.&lt;/p&gt;
&lt;p&gt;2. Or when I delete those two lines will cause fatfs to be disturbed?&lt;br /&gt;I only want to see the QSPI DISK when I connect to the PC, so I choose to delete those two lines, or have other methods that don&amp;#39;t have to be deleted but can be disabled by the PC?&lt;/p&gt;
&lt;p&gt;If I don&amp;#39;t understand the reason, I can&amp;#39;t guarantee that the follow-up development will not repeat itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About nRF52840 save file error</title><link>https://devzone.nordicsemi.com/thread/221643?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 16:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6524e27b-93ba-44d9-a6af-16a9bd981ef6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Configure the unit size when formatting. I choose 2048 bytes.[/quote]
&lt;p&gt;Does it help to set the&amp;nbsp;&lt;span&gt;file allocation unit parameter in f_mkfs() from 1024 to 2048 ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]3. Try to add the 2 lines deleted in step 2, as follows:[/quote][quote user=""]The regenerated file content will return to normal.[/quote]
&lt;p&gt;&amp;nbsp;So this fixed the issue, correct ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>