<?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>A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36930/a-problem-with-usb-mas-storage</link><description>Hello. I have a problem with usbd_msc . When I plug the device by usb and Windows sees the device how mass storage. After I copy files to the device - it copies and all is good. But when I plug off and plug on USB again - some files are broken. It happens</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Sep 2018 08:06:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36930/a-problem-with-usb-mas-storage" /><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/146903?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 08:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc378b6-c451-45c5-94cc-a597c67a9740</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested this on two boards, one with engineering revision C and one with the production release of the silicon. I am using the usbd_msc example as-is.&lt;/p&gt;
&lt;p&gt;Are you seeing the same issue with a unmodified version of usbd_msc example? Given that the failure description disappears when you reset the board, it indicates that the actual data is not corrupted, but the firmware is somehow.&lt;/p&gt;
&lt;p&gt;Is there specific steps that you&amp;#39;re following to recreate the issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/146774?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6e7af75-b036-4687-9f04-3eb7812f1257</guid><dc:creator>Sergii</dc:creator><description>&lt;p&gt;I tasted it on two dev boards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/146773?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0302625-839f-4343-a7df-f331742059de</guid><dc:creator>Sergii</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, correct. Which the board do you use? Do you use the same revision of the mcu?&lt;/p&gt;
&lt;p&gt;Could you please share the test code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/146763?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:21:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43efbfe5-1a39-4aa2-820b-f5634fb252cd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Do I understand correctly that if you reset the device, the files are then restored (ie: not broken) ?&lt;/p&gt;
&lt;p&gt;I have tried to replicate this behavior on my boards, but I have not been able to do this. Is there a specific procedure to reproduce the issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/146089?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 11:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71758cde-70ad-4762-ae46-9a932e57bf72</guid><dc:creator>Sergii</dc:creator><description>&lt;p&gt;When I make&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;quot;Safely remove&amp;quot; - it still brocks files.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I make&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;Safely remove&amp;quot; and press the button on the board&amp;nbsp;BOOT/RESET at the same time and off the device - the files are not broken (looks all is good in this case)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/146080?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 10:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5ba0c5b-ac37-4442-8944-cb6a5ab7e5ef</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;What is the expected content vs. the actual content of the corrupted file? Do you always &amp;quot;Safely remove&amp;quot; the drive?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/146047?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 08:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810ee75d-0660-46ea-a75c-1e3ada82261a</guid><dc:creator>Sergii</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have tried to change the number - didn&amp;#39;t help. Maybe some other ideas?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/144255?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 07:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c19b6cf-2474-4f3d-a6d2-9f76f040191d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Sergii,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When using rev C or the production release of nRF52840, it is important that you apply the patch mentioned in my former link.&lt;/p&gt;
&lt;p&gt;Could you try this and report back?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/144240?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 19:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c655e68-e76e-4f4f-910e-194b0d7012e8</guid><dc:creator>Sergii</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I use C revision.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sergii&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/144065?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 06:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b331b27f-81cd-419f-8008-17f175cd6125</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which revision of the nRF52840 are you using?&lt;/p&gt;
&lt;p&gt;If you are using the latest revision of the nRF52840, there are some erratas that has not been properly applied in our SDK; &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34605/usb-not-enumerating-after-reset/133051#133051"&gt;please see this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please also note that former engineering revision A has now been deprecated and will not work properly with SDK 15.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/143715?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 12:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0d6fa15-302f-4fd9-ac21-96f3349d7aa9</guid><dc:creator>Sergii</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Bj&amp;oslash;rn,&lt;br /&gt;&lt;br /&gt;Have tried - didn&amp;#39;t help (((.&lt;br /&gt;I add this code in the function: &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;static ret_code_t block_dev_qspi_uninit(nrf_block_dev_t const * p_blk_dev)&lt;br /&gt;{&lt;br /&gt; ASSERT(p_blk_dev);&lt;br /&gt; nrf_block_dev_qspi_t const * p_qspi_dev =&lt;br /&gt; CONTAINER_OF(p_blk_dev, nrf_block_dev_qspi_t, block_dev);&lt;br /&gt; nrf_block_dev_qspi_work_t * p_work = p_qspi_dev-&amp;gt;p_work;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//*******************************************Added code*************************************************// &lt;br /&gt; if ((p_work-&amp;gt; state != NRF_BLOCK_DEV_QSPI_STATE_IDLE))&lt;br /&gt; {&lt;br /&gt; wait_for_idle (p_qspi_dev);&lt;br /&gt; }&lt;br /&gt;&lt;span&gt;//&lt;/span&gt;&lt;span&gt;*******************************************Added code*************************************************&lt;/span&gt;&lt;span&gt;//&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;br /&gt; if (m_active_qspi_dev != p_qspi_dev)&lt;br /&gt; {&lt;br /&gt; /* QSPI instance is BUSY*/&lt;br /&gt; return NRF_ERROR_BUSY;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;if (p_work-&amp;gt;state != NRF_BLOCK_DEV_QSPI_STATE_IDLE)&lt;br /&gt; {&lt;br /&gt; /* Previous asynchronous operation in progress*/&lt;br /&gt; return NRF_ERROR_BUSY;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;if (p_work-&amp;gt;ev_handler)&lt;br /&gt; {&lt;br /&gt; /*Asynchronous operation*/&lt;br /&gt; const nrf_block_dev_event_t ev = {&lt;br /&gt; NRF_BLOCK_DEV_EVT_UNINIT,&lt;br /&gt; NRF_BLOCK_DEV_RESULT_SUCCESS,&lt;br /&gt; NULL,&lt;br /&gt; p_work-&amp;gt;p_context&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;p_work-&amp;gt;ev_handler(p_blk_dev, &amp;amp;ev);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;p_work-&amp;gt;state = NRF_BLOCK_DEV_QSPI_STATE_DISABLED;&lt;br /&gt; nrf_drv_qspi_uninit();&lt;/p&gt;
&lt;p&gt;memset(p_work, 0, sizeof(nrf_block_dev_qspi_work_t));&lt;br /&gt; m_active_qspi_dev = NULL;&lt;br /&gt; return NRF_SUCCESS;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Please let me know, maybe some thing else.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem with USB mas storage.</title><link>https://devzone.nordicsemi.com/thread/142199?ContentTypeID=1</link><pubDate>Tue, 31 Jul 2018 13:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e603240-73ce-4a47-8e7b-59282ce485a0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Sergii,&lt;/p&gt;
&lt;p&gt;I think you should try to add the code suggested in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36654/usbd_msd-disk-initialization-fails-in-usb-unplug-with-sdk15-0"&gt;this&lt;/a&gt; answer and see if that helps.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>