<?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>nrf52840 DK USBD MSC multiple directories bug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46777/nrf52840-dk-usbd-msc-multiple-directories-bug</link><description>While developing code for our custom board, we ran into a filesystem corruption issue with fatfs+qspi block device and multiple directories. We were able to reproduce the bug in the usbd_msc example in SDK 15.2 AND 15.3 using nRF52840 DK: 
 1. Erase qspi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2019 17:45:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46777/nrf52840-dk-usbd-msc-multiple-directories-bug" /><item><title>RE: nrf52840 DK USBD MSC multiple directories bug</title><link>https://devzone.nordicsemi.com/thread/186030?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 17:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f816846-4349-4924-a28d-7bb95f53d34a</guid><dc:creator>abhipray</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;As far as&amp;nbsp;my testing goes, we haven&amp;#39;t seen any issues since changing the file allocation unit to 4096. If you can describe the steps that lead to corruption, I can try to duplicate it on my end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK USBD MSC multiple directories bug</title><link>https://devzone.nordicsemi.com/thread/185989?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 13:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9efe7ced-4c81-4120-b493-6554fefe8548</guid><dc:creator>JeffW</dc:creator><description>&lt;p&gt;Hi abhipray,&lt;/p&gt;
&lt;p&gt;I have had very similar issues with a Winbond W25Q64JV (4K sectors).&lt;br /&gt;I have since changed the file allocation to 4096, but corruption is still happening.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Did this totally fix your problem?&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: nrf52840 DK USBD MSC multiple directories bug</title><link>https://devzone.nordicsemi.com/thread/184733?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 22:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a840a2ce-fef0-484d-8b93-1236c0f81bf0</guid><dc:creator>abhipray</dc:creator><description>&lt;p&gt;Ok, I think it&amp;#39;s resolved now. Changing the file allocation unit parameter in f_mkfs() to 4096 seems to have solved it. The documentation for f_mkfs() says that parameter should be n times the sector size. The MX25r6435F has a 4K sector size.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>