Skip to main content
KM L.1
Associate III
October 14, 2020
Question

USB OTG as Host. As we are working on STM controller . we are unable to create text file .

  • October 14, 2020
  • 6 replies
  • 777 views

..

This topic has been closed for replies.

6 replies

KM L.1
KM L.1Author
Associate III
October 14, 2020

we have done all the configurations required and USB as 48Mhz and application is getting started but its not active to create the text file. What may be the issue?

Lubos KOUDELKA
ST Employee
October 15, 2020

Hello,

could you please describe more in detail your application? What class are you using and what you want to achieve?

You could find more information also in STM32 USB training session: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs/STM32-USB-training.html

Best regards,

Lubos

KM L.1
KM L.1Author
Associate III
October 16, 2020

we are working on USB-OTG FS as mass storage class. Able to detect the pendrive but unable to create the file. we are using stm32h7 controller

Lubos KOUDELKA
ST Employee
October 16, 2020

Please take a look into STM32 USB training material, there is also chapter with USB MSC host example https://www.youtube.com/watch?v=dC0d8CVEPrQ

And you can find examples in STM32 repository installed with STM32CubeMX packages on your PC. Please look for STM32Cube\Repository folder and MSC_Standalone demo project.

KM L.1
KM L.1Author
Associate III
October 19, 2020

As you suggested i worked on the repository code and the issue is unable to mount the usb stick.

Lubos KOUDELKA
ST Employee
October 26, 2020

What about the filesystem on USB stick? Is it formatted to FAT? Have you tried more USB sticks?