Skip to main content
Associate III
June 18, 2024
Question

USB (Mass Storage Class) Not detected in STM32F405

  • June 18, 2024
  • 2 replies
  • 1121 views

Dear All,

        In my project, I am using STM32F405RG MCU for file read/wirte operations using FATFS.I declare the physical

drive as USB DEVICE (Mass storage Class) ,while I am generating a  code  for USB DEVICE(Mass Storage Class) its only works for  STM32CUBEMX V6.3 and its not working  higher version of 6.3.

       If any specific reason behind that,please guide me.

 

      STM32CUBEIDE V1.12.1

      STM32CUBEMX  V6.3

2 replies

Tesla DeLorean
Guru
June 18, 2024

USB Device? You want to write to a USB Flash Drive via FATFS? Surely that would need you to be a USB HOST.

Perhaps looks at the FW Upgrade examples for the STM32F407-DISCO board for "hosting" a Flash Drive.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
KavinrajAuthor
Associate III
June 18, 2024

@Tesla DeLorean 

 

                        First of all sorry for my mistake, its USB HOST right.Iam using SDIO and USB HOST via FATFS for 

read/write/create/unlink the file. SDIO is working fine of all version of CUBEMX but USB only works below V6.4 for me.