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

MSC and BLE UART

Hello,

I'm trying to use the USB MSC to show up as a file system, transfer the file into RAM, and send the file via BLE to an Android phone. This is with SDK 15.3 and S140.

I am able to initialize the block device in ram, create the file system and a dummy file (this shows up in Windows and shows the dummy file), but I am unable to read the file off of the file system to send it via bluetooth.

It appears that f_read is hanging, and I hit an assert in app_usbd_msc.c, function msc_buff_put, line 273. Is this because the host OS is disallowing the application to read the file system? Do I need to stop usb before reading from the FS?

If anyone has any insight or working examples, it would be greatly appreciated.

Thanks,

David

Parents Reply
  • I see. It's odd that the file disappears. Have you closed the file system from the computer (which wrote to it) before disabling the USB? For instance, by selecting to "Eject" the USB device if you are using Windows.

    If that does not have any effect, can you dump the memory of the file system before it is written (1), after it is written (2) and after USB is disconnected (3) so that we can know more about if it was written and how and when the content of the memory changed?

Children
Related