2017-04-03 06:53 AM
Hi All,
I want to create a project which can access the SD card with File System, When i want to connect the device to PC it should act as a Mass storage device.
So i did experiments on SD FATFS and USB Mass storage Device, both are working separately but i want to combine both in single project. So is there any example for this type of projects?
SD is able to mount on PC as a Mass storage device when i am not doing any operations with FatFS. If i do read or write with FatFS, the device is not mounting on the PC.
Here i am using the STM32L476G_Eval board.
can any body please point me to the correct way of doing both in single project.
#usbmsd #usb-msc-fat #sd-card #stm32l476 #fatfs2017-04-03 07:21 AM
Hi
krishna.vamshi
,I recommend that you take a look insidethese examples in STM32CubeL4 library:
- STM32Cube_FW_L4_V1.7.0\Projects\STM32L476G_EVAL\Applications\USB_Device\MSC_Standalone
whichdescribes how to use USB device application based on the Mass Storage Class (MSC) on the STM32L4xx devices.
- STM32Cube_FW_L4_V1.7.0\Projects\STM32L476G_EVAL\Applications\FatFs\FatFs_uSD which can help you tousethe features offered by FatFs to configure a microSD drive.
Hope this helps you.
Imen
2017-04-03 10:55 PM
Hi Imen,
Thanks for your suggestions.
Already implemented the FatFS and USBMS device standalone applications, but here i need is how to integrate the two applications in to one. I need to access the SD via FatFS and USBMS at a time.
2017-10-20 06:21 AM
Hi Vamshi krishna.
Please see below post I got this working.
2018-12-17 11:24 PM
Hi vamshi,
Did you find the any solution for your application ,am also facing same problem like you.
Need an example with USBMS+FatFS.
Please give us the help on this it will be very helpful for finding right path.