cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to use USB to read/write to files from MCU

Priyank
Associate III

Hi I am using the STM32F7 MCU to use a usb. I can get the USB connected however, when I try to run debug, the application hard faults, and I can't trace the error. I was hoping to get a reference to a tutorial from STM regarding reading/writing to USB. I have the pinout configuration correct. I am using USB_OTG_FS Host Only, Mass Storage Host Class. In FATFS I adjusted the parameters USE_LFN to be enabled with static working buffer on the BSS, I disabled FS_REENTRANT. 

1 REPLY 1
urbito
Senior

You should have a look on the USB_MSC or Ux_Device_MSC examples if your goal is to make the MCU to be detected as a mass storage device when you connect it through USB to a HOST PC.

 

Greetings