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
  • Wanted to follow up. I was able to send a file that I created manually on the file system by stopping the USB.

    Now I want to see when a file gets transferred to the files system, disconnect USB, and then transfer the file. 

    I dug into app_usb_msc, and found a way to get an event when a file is transferred. But when I disconnect the USB and list out the file system, the file is not there. Any tips?

Children
Related