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 Children
No Data
Related