This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52840 usb_msc demo windos10 Home Edition USB disk will be lost in about 20 minutes

I used usb_msc with nRF5SDK160098a08e2 sdk to connect the usb of pca10056 development board to win10 home version and the disk could not be recognized after about 20 minutes;

1. Current test conclusion:

 1) Appears only in win10 home edition, not in win10 professional edition;
 2) Use the Debug mode, the optimization level is set to None, the disk is displayed for 20 minutes after mounting, and the disk is not lost. When entering the secondary folder to write the file, the file cannot be written, and finally the disk is lost;


2. Test procedures

nRF5SDK160098a08e2-new-2.rar

3. Problem phenomenon
1) When the USB is connected to the computer


2) The disk is lost in about 20 minutes


4. Test method
1) Burn the compiled program
2) USB connection to win10 home version computer
2) Create TEST1/TEST2/test.txt

   
3) Write the current time in the test.txt file every 10 minutes;
4) After a few times you will find that the file cannot be written;
5) The disk has been lost;



5. The compiled hex file is convenient for you to quickly reproduce the problem;

 2425.usbd_msc_pca10056.hex

Parents
  • Can it be that the  USB port power is turned off after a while? There shouldn't be any difference in how Windows handles a USB drive across Windows versions. Check in Device Manager: 

  • 1. Test conclusion

    1) I turn off the power saving option of USB hub power tube of win10 home version, and the test will still appear;

    2. Other information:

    1) The windows 10 home version is connected to the MCU of other four manufacturers without disk loss;

    2) It can be determined that there is a difference between win10 home edition and win10 professional edition. Previously, we used MCU from other manufacturers to encounter disk loss in win10 home edition, which was finally solved by upgrading SDK;

    3. Personal suggestions:

    1) You find a win10 home computer, which is very easy to reproduce;

  • Hello,

    I still haven't been able to reproduce the issue. I tried at home today, but my computer has Windows 10 Home Edition 1909, and as you claim, the issue is not present there. I have forwarded the question to our usb driver team. They also don't have a home edition license in the office, but they will look into it. I will let you know when I hear anything. Hopefully next week.

    Best regards,

    Edvin

  • Hi Edvin,

      We have already started preparations for alternatives, I hope you can characterize the problem as soon as possible, thank you!

  • Hello,

    This is the response I received from the USB driver team:

    ---------------------------

    Considering that this issue is only reproducible on two versions of Windows Home, it will not be trivial to set the environment up.

    But we could start from trying to debug it on clients’ setup – could you ask him to enable logging (specifically ones in USB MSC class), preferably using RTT as the amount could be overwhelming. It is possible that Windows sends an MSC command that is unsupported, which would result in this log:

    NRF_LOG_DEBUG("CMD: UNSUPPORTED");

    Even better if they could print the value of p_msc_ctx->cbw.cdb[0] in that log.

    If the client has a USB analyzer, bus activity logs would be greatly appreciated too.

    ---------------------------

    Can you please try to enable the logging on the USB MSC class?

    Do you have access to a USB analyzer? If so, can you please try to capture a USB trace?

    Best regards,

    Edvin

  • Hi Edvin:

    1. First, we open the log of the USB part and continue the test;

    2. There is no USB logic analysis. How to use USB hound to monitor events;

  • Hello,

    I am not familiar with USB hound. Is it this one?

    As mentioned, I have not tried it. Are you able to monitor the traffic both ways from the nRF to the computer using that FW?

    BR,

    Edvin

Reply Children
Related