- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I've successfully have gotten my CY8CPROTO-062-4343W board configured as MSC device to work. I'm using the MTB project "USB_Mass_Storage_File_System".
However, every time I record another sound file (rec_xxxx.raw), the PC host doesn't see it unless I either unplug the USB connection or perform a board RESET.
Is there a event signal I can send to the PC host to request a refresh of the cached directory info the PC host has?
I realize that, in general, it is assumed with the MSC device, the host has 100% control of the storage device. It is not normally expected for the MSC device to "self-update" its contents.
Maybe there is an event packet to send the PC host to check if the directory has been corrupted?
"Engineering is an Art. The Art of Compromise."
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could send a signal to force the OS to re-enumerate the device. The code example has a function called "usb_comm_refresh()".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could send a signal to force the OS to re-enumerate the device. The code example has a function called "usb_comm_refresh()".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rodolfo,
Thank you. That did the trick! I placed it in the audio_fs_save().
Apparently it did not re-enumerate the MSC drive. Had it re-enumerated, I would have heard the system host sound indicating it did. However, it drop me back into the root directory of the MSC drive which was not quite what I hoped for.
"Engineering is an Art. The Art of Compromise."