<?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>nRF52 USB instability with USB CDC and USB MSC instantiated</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62100/nrf52-usb-instability-with-usb-cdc-and-usb-msc-instantiated</link><description>Hello, 
 I&amp;#39;m working with nRF52840 and SDK v15.2. 
 I implemented an USB layer with CDC and MSC classes based on nRF examples. All seems to work fine. The USB Serial port is available and I can send/receive data from it. The MSC drive is also properly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Sep 2020 17:58:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62100/nrf52-usb-instability-with-usb-cdc-and-usb-msc-instantiated" /><item><title>RE: nRF52 USB instability with USB CDC and USB MSC instantiated</title><link>https://devzone.nordicsemi.com/thread/268122?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 17:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946e6104-6a21-402d-8826-62ffb801a04e</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;We just found the solution and it seems to be a fix for &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39428/usb-msc-corruption/167555"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39428/usb-msc-corruption/167555&lt;/a&gt; as well. &lt;/p&gt;
&lt;p&gt;We just found out that the file is not corrupted during writing to SD card but when read from SD Card via USB msc interface. If we just plugged in the SD card to our PC the file was completely correct. But if we read it via USB msc the file hat spurious corruptions.&lt;/p&gt;
&lt;p&gt;Our fix for the moment was to increase the MSC_WORKBUFFER_SIZE to 2048 bytes.&lt;/p&gt;
&lt;p&gt;For now the error did not occur anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 USB instability with USB CDC and USB MSC instantiated</title><link>https://devzone.nordicsemi.com/thread/268112?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 15:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a384cd7a-a90d-46ab-8032-3a04a1b4adf8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you provide more details on how this issue looks, and post log files, example of corrupted files, etc, and include details about your system environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 USB instability with USB CDC and USB MSC instantiated</title><link>https://devzone.nordicsemi.com/thread/268036?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 11:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c3f1b0-3bee-4f0a-9a15-886b2ebf982f</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;We are facing the similar issue. If we write to the SDCard there is no error. But if we plugin the USB connection and read the data via msc the data sometimes is corrupted meaning lines are deleted or repeated spuriosly.&lt;/p&gt;
&lt;p&gt;But if we plugin the SD card directly to the PC there is no corruption.&lt;/p&gt;
&lt;p&gt;Any reason for this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Current SDK version 15.3.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 USB instability with USB CDC and USB MSC instantiated</title><link>https://devzone.nordicsemi.com/thread/253489?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 10:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb6dec3-0517-4133-a55d-32e40b021a73</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Is it possible to reproduce without an SD card? If not, I will not be able to test/debug your example until I get hold of an SD Card board on Monday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 APP_USBD_EVT_DRV_RESET event received instead of APP_USBD_CDC_ACM_USER_EVT_RX_DONE</title><link>https://devzone.nordicsemi.com/thread/253472?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 09:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e34de8-77db-474b-abdc-effe964a4a5f</guid><dc:creator>afontaine</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the suggestion about upgrading the SDK but I would rather keep the 15.2 version and find a workaround.&lt;/p&gt;
&lt;p&gt;I found how to reproduce this USB instability with a simple example, based on usbd_msc example (attached main.c modified below). I added USB CDC support and send a frame every minute to the com port.&lt;/p&gt;
&lt;p&gt;After several minutes, the com port is no more available and neither the mass storage.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t monitor&amp;nbsp;the USB events for this example.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/74106.main.c"&gt;devzone.nordicsemi.com/.../74106.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do you see any issue on the USB CDC and MSC implementation that could explain the issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 APP_USBD_EVT_DRV_RESET event received instead of APP_USBD_CDC_ACM_USER_EVT_RX_DONE</title><link>https://devzone.nordicsemi.com/thread/253046?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 13:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa263236-77d1-4c5e-bce1-8fb0c4b27424</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you check if you are able to reproduce the same issue with SDK 16.0.0? There is a lot of fixes added to the USBD driver and libraries in the releases after SDK 15.2.0.&lt;/p&gt;
&lt;p&gt;If not, can you provide a minimal project that can be used to reproduce this behavior?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>