2021-07-31 06:08 AM
I have a hardware with STM32F777BIT6 MCU. Base for original code was generated using an older version of STMCUBE about 3 years ago. SDcard works fine with FAT file system and I can read and write to it without a problem. USB also works fine and I am using it in virtual serial port mode with out a problem.
Recently, we need to use the device as USB Mass storage device. I have tried looking for some examples but they are not compatible with my MCU (only work on STM32F1 or STM32F4). I tried to merge those examples with my own code but without luck. All I manage to see when I connect the hardware to a PC is empty drives. I cannot open the drives or copy anything into them.
What is the problem? Is there an example that is compatible with the MCU I am using or a guide to implement this.
2021-08-17 03:13 AM
Hello @harry anders ,
In the STM32CubeF7 package, there are already the USB device application based on the Mass Storage Class (MSC) that you may re-use sections available in the examples or get inspired from them:
\STM32Cube_FW_F7_V1.16.1\Projects\STM32756G_EVAL\Applications\USB_Device\MSC_Standalone
\STM32Cube_FW_F7_V1.16.1\Projects\STM32F769I-Discovery\Applications\USB_Device\MSC_Standalone
Hope my answer helped you!
When your question is answered, please close this topic by choosing Select as Best.
Imen