<?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>Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63892/problem-about-file-create-on-nrf52840</link><description>Hello everyone: 
 The problem is still not resolved 
 Test broad is PCA10056 
 Test code was modified by \SDK17.0\examples\peripheral\usbd_msc\pca10056\blank\ses 
 Try to create a directory and write a file on this 
 Open txt file like under picture,data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Aug 2020 13:37:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63892/problem-about-file-create-on-nrf52840" /><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/263462?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 13:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f70ba9-1e49-4236-9c34-83093c829960</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Blance,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;m glad that you found a solution. We are still waiting for the developer to be back to have a look at the issue. We will give you&amp;nbsp;an update when we hear from them.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/262881?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 02:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3923667d-4c15-453a-beb2-9d848e3a202a</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;Hi Hung:&lt;/p&gt;
&lt;p&gt;I have fond&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56609/fatfs-corruption"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56609/fatfs-corruption&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and try set qspi&amp;nbsp;writeback_mode = false(default :true),Problem seems solved&lt;/p&gt;
&lt;p&gt;success : 2293&lt;/p&gt;
&lt;p&gt;fail&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t understand the function of writeback_mode, and I can&amp;#39;t determine whether not using it will cause other problems. Can you help confirm?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/262841?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 15:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79960bcf-17f5-45b9-86dd-c6a28c724829</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Blance,&lt;/p&gt;
&lt;p&gt;Could you provide the code you used for automatic testing ?&lt;br /&gt;I tried to test here with your previous code again but the result is different now that I don&amp;#39;t see the issue any more.&amp;nbsp;&lt;br /&gt;But as you mentioned the issue rate is low at ~1/60. But it&amp;#39;s strange that last time on the first trial I got the issue showed in the screenshot.&amp;nbsp;&lt;br /&gt;Have you tried &amp;quot;nrfjprog --qspierase&amp;quot; before testing ? It&amp;#39;s to make sure the qspi is fully erased before we test.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/262154?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 10:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f5f9a5-9d97-47fe-8cd6-affa99bcad17</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;Hello everyone:&lt;/p&gt;
&lt;p&gt;Can anyone provide a program to change the usbd_msc example to use SPI to control PCA10056 Flash?&lt;br /&gt;I think it will be useful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/262085?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 04:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dc75d1e-6fa7-4770-9256-42daa678ada9</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello everyone:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I use usbd_msc.7z to continue the test&lt;br /&gt;I found that changing the FAT memory to nrf_block_dev_ram and retesting, everything seems to be normal&lt;/p&gt;
&lt;p&gt;This strengthens my opinion that there is a problem with QSPI controlling FLASH&lt;br /&gt;Or incompatible with FAT bit definition&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/261869?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 03:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d847f458-7dbe-42d4-9d66-aecc4f2d1e5f</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi All:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I tried to modify the experiment and change 400 to 40. The test result is still that about 60 files will have one file corruption. The preliminary conclusion has nothing to do with the size of the files, but with the number of files.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/261499?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 06:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12cd1124-3f56-4109-8a58-29dc78979ecb</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;Hi All:&lt;/p&gt;
&lt;p&gt;Add the test to continuously write files to the root directory, the content is also 0x00~0xFF loop,&lt;br /&gt;4k bytes are written once,&lt;br /&gt;After writing 400 times, whether the read data content meets the 0x00~0xFF cycle,&lt;/p&gt;
&lt;p&gt;if yes, the number of successes is +1, otherwise the number of failures is +1&lt;/p&gt;
&lt;p&gt;Create a new file after the comparison is over, if the memory is insufficient, delete the oldest file&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Performing this test on my personal hardware can still reproduce the abnormal file problem&lt;/p&gt;
&lt;p&gt;format setting FAT12 4096 Bytes&lt;/p&gt;
&lt;p&gt;three device test at same time,and stop test when get fail,finally I get same result&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;success: 62, fail: 1&amp;quot;&lt;/p&gt;
&lt;p&gt;I think there may be incompatibility between QSPI and FATFS&lt;br /&gt;The address needs to be aligned to 4 Bytes. This requirement is suspicious&lt;br /&gt;Can someone provide an interface that does not need to be aligned with 4 Bytes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/261360?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 12:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e3a8743-bb5b-4d37-ac25-7a94ccb69122</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Hung,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your reply, this problem is easy to reproduce, but few people pay attention?&lt;/p&gt;
&lt;p&gt;In addition, tests were conducted, and if the file is not written to the folder, but is changed to the root directory, the possibility of a problem is much lower.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/260988?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 12:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b5cce5a-9fe8-4f36-bd50-5a7a9a803e8f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks Blance.&lt;/p&gt;
&lt;p&gt;I can see the issue now. We will need to investigate on how this happened. Unfortunately our developers on QSPI and USB are on vacation so we would need some time to look into this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/260773?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 09:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7534db6-cd2a-486d-a8ba-60f61c052942</guid><dc:creator>Blance</dc:creator><description>&lt;p&gt;Hi Hung:&lt;/p&gt;
&lt;p&gt;my file content is loop on 0x00 to 0xFF&lt;/p&gt;
&lt;p&gt;and look on your address 0x3000 ~ 0x31FF&lt;/p&gt;
&lt;p&gt;that&amp;#39;s the issue,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem about file create on nRF52840</title><link>https://devzone.nordicsemi.com/thread/260769?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2020 09:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd1fa8e5-0a22-4534-9097-f7085dd07c4a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Blance,&amp;nbsp;&lt;br /&gt;I tried your example here on a PCA10059 but I don&amp;#39;t see the issue.&amp;nbsp;&lt;br /&gt;Attached is the file.&lt;br /&gt;Have you tried to test on another board /another QSPI flash chip ?&amp;nbsp;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/632x554/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9a05c802355c4537ba5dd3570f0aff40/pastedimage1595236699237v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9a05c802355c4537ba5dd3570f0aff40/0041C6.TXT"&gt;devzone.nordicsemi.com/.../0041C6.TXT&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>