Hi,
Our production uses NRF52840 as the master chip. We encountered a strange problem where two folders have the same name and a file name has illegal characters.
The probability of this happening is very low, so we can not find the root cause so far. As we know, the file system does not allow a folder with the same name and a file name with illegal characters. What are the possible causes of this problem?

The normal directory structure is shown below.

-----------------------------------------------------------------------------------------
I would like to provide more details for the MSC issue as below.
I attached the nrf_block_dev_qspi.c that I used, you may diff with the original file of the SDK.

There are two major modifications.
1.the issue was reported in this link https://devzone.nordicsemi.com/f/nordic-q-a/36654/usbd_msd-disk-initialization-fails-in-usb-unplug-with-sdk15-0
the difference was I added a timeout for the wait_for_idle() function because I found it would hang on this function sometimes.
2. add debug message for troubleshooting
We got the debug log sometimes(please find debug.log), although everything looks good, I thought it was unexpected.
By the way, there were not any debug logs when the issue "two folders have the same name and a file name has illegal characters" occurred.





