Skip to main content
Visitor II
July 31, 2021
Question

USB Mass Storage and SDCARD on STM32F7 not working.

  • July 31, 2021
  • 1 reply
  • 778 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 17, 2021

    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