cancel
Showing results for 
Search instead for 
Did you mean: 

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

KM L.1
Associate II
 
6 REPLIES 6
KM L.1
Associate II

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

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
Associate II

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

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
Associate II

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

Lubos KOUDELKA
ST Employee

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