<?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>USB MSC Corruption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39428/usb-msc-corruption</link><description>Hello, 
 I have been experiencing corruption using a similar implementation to the USBD_MSC example. Even after the various SDK fixes suggested to the same problem outlined in the forum. 
 I have edited the example to use a repeating timer with the scheduler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2020 06:45:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39428/usb-msc-corruption" /><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/229144?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 06:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c2e310-2b33-4c43-94b5-e3dc3218042b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Please create a new ticket if you have this issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/229137?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 03:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:523ec312-4a83-42c5-8027-b7a9a243fab6</guid><dc:creator>Nandi</dc:creator><description>&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;This is my previous question link&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35824/the-fat32-fs-isn-t-working-properly-when-writeback-mode-is-turned-on"&gt;devzone.nordicsemi.com/.../the-fat32-fs-isn-t-working-properly-when-writeback-mode-is-turned-on&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/229134?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 02:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24662be0-ca0d-4dc7-aa06-984cb350f475</guid><dc:creator>Nandi</dc:creator><description>&lt;p&gt;Jeff, Edvin,&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;My test here is like NRF_BLOCK_DEV_QSPI_FLAG_CACHE_WRITEBACK This function has not been implemented well. I have mentioned a problem before, and fae told me that there is no problem and I will not follow up. You can help me to see if this Flag is the cause&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;tks,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Nandi&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/222970?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 09:09:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c33c9d-33dc-4828-9dac-4bdd6841cd68</guid><dc:creator>Serhii B.</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi, has the issue resolved?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/194479?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 00:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4047b63-1617-4346-aaee-70b0a827ce73</guid><dc:creator>junpu</dc:creator><description>&lt;p&gt;HI, I got the same problem,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sdk :nRF5_SDK_15.2.0_9412b96&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;revision of the nRF52840 ： cortex-m4 nrf52840_xxAA 1024KB+4KB 256KB&amp;nbsp; PCA1005&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I took up the problem on&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48535/problem-about-fatfs-and-qspi-on-nrf52840"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48535/problem-about-fatfs-and-qspi-on-nrf52840&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/194418?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 14:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aac6aeb3-abc2-42a0-9737-e8a5ac3dc5cb</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;br /&gt;Thanks for continuing to look at this.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Yes, you&amp;#39;re right. Currently I&amp;#39;ve implemented FAT_FS on an external flash chip, with the USB stripped out and have not experienced corruption issues. I am using&amp;nbsp;NUS to grab data from the file system and send it over the air as a replacement for reading the file over USB. This method is working quite well.&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t tried QSPI only with USB, but just normal QSPI did not have this corruption.&lt;br /&gt;&lt;br /&gt;With your testing were you able to reproduce a similar corruption using the method I&amp;#39;ve described?&lt;br /&gt;&lt;br /&gt;--Jeff&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/194408?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 13:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:613c9f9e-3c88-4372-aa1c-e988b2468d9c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jeff,&lt;/p&gt;
&lt;p&gt;I am really struggling to get consistent behavior on the data written using the FAT_FS system on the external flash chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mentioned that you tested with BLE instead of the USB, right? And then the issue was not present?&lt;/p&gt;
&lt;p&gt;Have you tried to use the QSPI example (SDK\examples\qspi) together with the USB? It is a bit more hazzle, because it doesn&amp;#39;t contain this file system. The issue is that the fatfs is an external library, and most of our developers are currently busy working on the nRF Connect SDK for the nRF91.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But you said that the issue was not present while using BLE + FAT_FS? Only when using the USB?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/193723?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 14:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f917d88-fda3-4ade-a988-cb159175b482</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;br /&gt;&lt;br /&gt;No worries, glad you made it back safe!&lt;br /&gt; My one change to the SDK is&lt;em&gt; ffconf.h&lt;/em&gt; which is included in the directory I shared. This is the only change to the otherwise fresh SDK 15.2 to make this work.&lt;br /&gt;The changes are: &lt;br /&gt;_USE_STRFUNC 1&lt;br /&gt;_USE_CHMOD 1&lt;br /&gt;_USE_LFN&lt;span&gt; &lt;/span&gt;1&lt;br /&gt;_FS_EXFAT&lt;span&gt; &lt;/span&gt;1&lt;br /&gt;&lt;br /&gt;These are the settings I have been testing on between FATFS and EX-FAT experimentation throughout this thread in demo and actual product. I assume I could get rid of EXFAT/LFN/CHMOD for this example, but all my testing is for this configuration in ffconfig.h&lt;br /&gt;Thanks,&lt;br /&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/193716?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 14:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:837bfb16-ec5e-41b1-95f6-cf689ed0d9ff</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jeff,&lt;/p&gt;
&lt;p&gt;Nice to meet you too! Glad you enjoyed the Tech Tour.&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. This is my first day in the office after the travel.&lt;/p&gt;
&lt;p&gt;So it has been a while since I looked into this. Using the project folder that you provided it didn&amp;#39;t compile because fprintf() was not defined, which is because _USE_STRFUNC was set to 0 in ffconf.h. I assume that you have set this to 1 (outside the project folder that you zipped). But just to make sure, can you try to unzip the project that you sent now in a fresh copy of the SDK, and see if there are any other changes that are needed in order to reproduce the issue? I&amp;#39;ve had some catching up to do today, but I will give it a go tomorrow. I just want to make sure that there are no other settings that are different as well &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/190855?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 14:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a12701a-d385-4772-a00a-a4f7dbfc4501</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;br /&gt;&lt;br /&gt;It was a pleasure&amp;nbsp;learning from&amp;nbsp;you and the rest of the Nordic team yesterday at the Nordic Tech Tour!&lt;br /&gt;&lt;br /&gt;Attached is a git project of a modified usb_msc example that can be run on the nRF52840 dev-kit.&lt;br /&gt;Notable changes from the example project (shown in git):&lt;br /&gt;Only uses QSPI device.&lt;br /&gt;Changed to 4096 byte allocation size.&lt;br /&gt;Added app_timer module.&lt;br /&gt;Added file write&amp;nbsp;supplied by nordic engineers.&lt;br /&gt;Added timer that sets a flag to write a string to a file every 500ms.&lt;br /&gt;Timer will stop on USB power detect event, and resume on power removed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The project is relative to:&amp;nbsp;&lt;em&gt;nRF5_SDK_15.2.0_9412b96\examples\peripheral&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;The procedure I followed to get the corruption is as follows:&lt;br /&gt;Device is formatted using button 3 while USB is unplugged, 1000 files are written [1 per 500ms] (Can be much less, but it seems like there is a lower boundary before corruption happens)&lt;br /&gt;&lt;br /&gt;Multiple &amp;quot;log_data.txt file reads (opens using Notepad) on Windows 7 work without signs of corruption. &lt;br /&gt;The same ~1000 log file is then read using Windows 10 Notepad, the file becomes corrupt on the 105th character of the file in this case. Both files are saved and included as text documents.&lt;br /&gt;&lt;br /&gt;When rerunning the test, it is important to reformat from the nRF52840 device (Button 3) as both windows 7/10 re-format will cause a similar corruption when reading on Windows 7 AND Windows 10. (With settings as discussed earlier in this thread)&lt;br /&gt;&lt;br /&gt;I&amp;#39;m still unsure of reason for corruption but in our discussion we proposing looking at a USB sniffer while opening the file on Windows 10.&lt;br /&gt;&lt;br /&gt;Again, thank you for the continued support,&lt;br /&gt;Jeff&lt;em&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/usb_5F00_msc_5F00_git.zip"&gt;devzone.nordicsemi.com/.../usb_5F00_msc_5F00_git.zip&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/187126?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 06:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a530ce-f4d0-49e1-8d10-078d3aae5e27</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jeff,&lt;/p&gt;
&lt;p&gt;It has been a while since you sent the previous project. Is it possible to send the updated project, so that I can try to replicate it with the same setup that you have now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/186383?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 11:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa54850f-e199-4b8c-9bd8-d85b0566811c</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;I ran a few more tests across multiple computers. It seems like opening a large log file on windows 10 corrupts the file by deleting some data by deleting and inserting non-ascii data as we&amp;#39;ve seen before.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can work with a file without corruption for hundreds of logs on windows 7, then plugging it into windows 10 will immediately corrupt the data (not sure if it happens before the file is opened). The data remains corrupted when opening back on windows 7, and through internal micro fatfs file reads.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to try to compare a capture using the windows Process Monitor Tool across the different operating systems. I will let you know if this leads to any conclusion.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I assume you would be able to corrupt one of the demo projects by either method outlined. I&amp;#39;d be curious if the engineers have input on my findings if it is repeatable on your end.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/186288?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 07:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342fd919-1405-45ab-8e5d-7d7237ce16eb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="JeffWelder"]our team has a working theory that the file does not corrupt when being accessed on a windows 7 PC, but a windows 10 PC does somehow corrupt the file in the reading process.[/quote]
&lt;p&gt;&amp;nbsp;Does that mean that reading from a windows 10 PC corrupts the file, or that it reads it wrong?&lt;/p&gt;
&lt;p&gt;If you read a corrupted file with a windows 10, unplug the device, and plugs it into a windows 7, is the file still corrupted?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/186192?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 12:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed1b581c-fc71-46bd-a9a0-50e7f5057d47</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;br /&gt;Thank you for the continued support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Currently in my application using an 8MB QSPI Flash Chip, I experience corruption very early in the log when I format using the following settings:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1557405575539v1.png" alt=" " /&gt;&lt;br /&gt;Using these settings, any PC will corrupt the file (Unsure if the mount/read or write corrupts the data). I suspect if you run the same tests as previous after formating this way, you will experience corruption in the test project you shared.&lt;br /&gt;&lt;br /&gt;However, when I format the chip using:&amp;nbsp;&lt;strong&gt;ff_result = f_mkfs(&amp;quot;&amp;quot;, FM_FAT, 4096, buf, sizeof(buf));&lt;/strong&gt; The file seems less likely to corrupt:&lt;br /&gt;Being formatted by the microcontroller, our team has a working theory that the file does not corrupt when being accessed on a windows 7 PC, but a windows 10 PC does somehow corrupt the file in the reading process.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;m not sure if there is any merit to this conclusion related to the OS, but these are just the very high level observations I&amp;#39;ve experienced.&lt;br /&gt;Unfortunately&amp;nbsp;all of my testing was done on my custom board&amp;#39;s software, instead of the examples we&amp;#39;ve been sharing back and forth.&lt;br /&gt;&lt;br /&gt;From our previous conversations, I think I can relate the corruption from our previous tests that worked for you, but I experienced corruption to the chip being formatted by windows on one dev kit, and by the nRF52840 on the other working (no corruption) dev-kit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the continued support,&lt;br /&gt;Jeff&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/186075?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 07:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b56671f8-7d20-4397-add8-59ddce03ce56</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jeff,&lt;/p&gt;
&lt;p&gt;I hope you are doing fine &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There hasn&amp;#39;t been any updates on this front from our side, no.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you say that you can see the issue when you format using:&lt;br /&gt;FAT with unit size of 4096 when formatting the SD card, like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0255bbb87a084756a85760f8c00f747e/pastedimage1557384273115v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And also, in the application, do you still make the file system using&amp;nbsp;&lt;span&gt;&amp;nbsp;f_mkfs(&amp;quot;&amp;quot;,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;FM_FAT, 4096&lt;/strong&gt;&lt;span&gt;, buf, sizeof(buf)); ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/186023?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 16:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74869b5f-8e7e-43ed-9da4-c08851a4afba</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;br /&gt;Unfortunately I&amp;nbsp;am still having issues with these implemented changes. Certainly it has gotten better but all of my field units still experience corruption at various points in their life.&lt;br /&gt;In another recent &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46777/nrf52840-dk-usbd-msc-multiple-directories-bug"&gt;thread &lt;/a&gt;there has been discussion of allocation unit size matching sector size of the flash part, which seemed to possibly resolve an issue.&lt;/p&gt;
&lt;p&gt;However, I can force the issue when the part is formatted from a Windows PC with FAT, Allocation unit size 4096, with quick format off.&lt;/p&gt;
&lt;p&gt;I hope to be able to run a few more experiments on this test project, but I am not sure how much of a conclusion I will be able to reach.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have there been any internal updates on this issue in the past 3 months?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/168163?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 09:11:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f8da262-a886-4e7d-a1b7-209b9647a2f3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jeff,&lt;/p&gt;
&lt;p&gt;Can you try the attached file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0255bbb87a084756a85760f8c00f747e/main_5F00_test.c"&gt;devzone.nordicsemi.com/.../main_5F00_test.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Changed:&amp;nbsp;ff_result = f_mkfs(&amp;quot;&amp;quot;, &lt;strong&gt;FM_FAT, 4096&lt;/strong&gt;, buf, sizeof(buf));&lt;/p&gt;
&lt;p&gt;Then format the device as FAT (not exFAT), and allocation unit size 4096 bytes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I ran this test now for 5004 records (each record 50 bytes long), and did not encounter any corrupted data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/167649?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 13:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c88146e-a60e-49c2-bb9c-34c4dd1c0097</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Jakub,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PCA10056 1.0.0&amp;nbsp; 2018.20&lt;/p&gt;
&lt;p&gt;SDK 15.2 w/ soft device 6.1.&lt;/p&gt;
&lt;p&gt;--Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/167555?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 08:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:838d3de3-1099-40b7-8ef7-ee5cb4cb015c</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;JeffW: Please let us know what is version of your DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/167386?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 13:52:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8b33e0f-9b35-4e37-b8a3-ea6d1efd04fd</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;On the first nRF52840 development kit I was using the corruption still occurred when using the provided noirq example. A second development kit seemed to work up to the 5000 records I tested, but it still seems pretty flakey. When re-running the test (deleting the file and restarting) on the 2nd board, I&amp;nbsp;sometimes did see corruption of a very long string of&amp;nbsp;&amp;yuml;&amp;#39;s in the beginning/middle of the log.&lt;/p&gt;
&lt;p&gt;When re-testing the first development kit, I noticed the&amp;nbsp;fatfs_ls function returned this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.000,000] &amp;lt;info&amp;gt; app: 
Listing directory: /
   &amp;lt;DIR&amp;gt;   &amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;.&amp;#255;&amp;#255;&amp;#255;
   // Truncated for Readability
   &amp;lt;DIR&amp;gt;   &amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;&amp;#255;.&amp;#255;&amp;#255;&amp;#255;
   120812  log_data.txt
   &amp;lt;DIR&amp;gt;   System Volume Information
Entries count: 259
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After re-formatting the drive using Windows it seemed to get rid of this, and the corruption didn&amp;#39;t happen the next test.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;It seems that removing the writes from an interrupt base has sometimes helped us pass over the first discovered&amp;nbsp;&lt;span&gt;13825th&amp;nbsp;byte boundary, but this solution does not work all of the time.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Attached is a corrupted file with the noirq code:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/test_5F00_log1.txt"&gt;devzone.nordicsemi.com/.../test_5F00_log1.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I appreciate the help, It looks like we are making some progress but this still needs a little more attention,&lt;br /&gt;Jeff&lt;/span&gt;&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: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/167092?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 12:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15d59d6c-0263-413c-ab86-de50bc371b44</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jeff. Did you try the main.c file in your project, or an unmodified usbd_msc example from SDK15.2.0? Can you try with an unmodified version of this example? And to be completely sure, unzip a fresh copy of &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Software/nRF5-SDK"&gt;SDK15.2.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did the same test, and I do not get the corrupted messages with this example. Please note that this example doesn&amp;#39;t by default delete the old file, so connect the device with the usbd, and delete the LOG_DATA.txt file. Also note that some .txt readers cache the old files, so make sure to close this file (e.g. if you use notepad/notepad++), and then re-open it to see the latest version.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/166846?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 13:21:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a19a00-1b49-4a4c-aa6d-af7933ded766</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still get corruption running the SDK engineers code. Near the&amp;nbsp;1905th byte this time (~132nd record). Ran the test twice from my end with the same corrupted results.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/166729?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 08:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77f3c7a7-7f21-4bd5-bd18-84dd59450c55</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jeff,&lt;/p&gt;
&lt;p&gt;I got an answer from one of our SDK engineers. He wrote the following:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;----------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tested it using attached code, but I did not manage to get it working. In provided code f_printf is called from irq context, while internally it is waiting for interrupt from qspi and without proper irq priorities it hangs.&lt;/p&gt;
&lt;p&gt;I modified example to write to file from main loop, and it seems to be working on&amp;nbsp;nRF52840 DK&amp;nbsp;1.0.0, I don&amp;#39;t get any corrupted data tested up to 4500 records. Please check example with attached code (nonirq_main.c) if data still gets corrupted.&lt;/p&gt;
&lt;p&gt;----------------------&lt;/p&gt;
&lt;p&gt;Attached is the noirq_main.c file that he used for testing. Can you please try it and see if it works better?&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-0255bbb87a084756a85760f8c00f747e/noIRQ_5F00_main.c"&gt;devzone.nordicsemi.com/.../noIRQ_5F00_main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/166009?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 14:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dca9d9a-cf11-409c-be61-434130ac2267</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;Nothing fruitful on my end from this, as the serial flash should be able to deal with single byte accesses.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Any update from Nordic? Surely I am not the only one running into issues with file system implementations.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB MSC Corruption</title><link>https://devzone.nordicsemi.com/thread/163530?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 16:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0b466c6-d699-4490-998a-3346359b964a</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;&lt;span&gt;In that thread rc766437 suggested:&lt;br /&gt;&amp;quot;I think it is the same problem, just modify the QSPI block driver code&amp;lt;nrf_block_dev_qspi.c&amp;gt;, let the write/read buf pointer address aligned 4 bytes.&amp;quot;&lt;br /&gt;&lt;br /&gt;I have come across a few examples of people running into this issue, but haven&amp;#39;t been able to find the correct spot to 4 byte align the buffer.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38156/qspi-read-fail/"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38156/qspi-read-fail/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any insight on this?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>