Skip to main content
Akhil Francis
Associate II
July 25, 2017
Question

USB mass storage STM32f103rb.

  • July 25, 2017
  • 7 replies
  • 2074 views
Posted on July 25, 2017 at 06:35

Hi,, 

 I am using STM32F103rb for my project,, Here i need to Transfer data into the Pendrive.

 I am very new to USB protocol, So can you please suggest me any refernece for this task?

    

Akhil Francis

    This topic has been closed for replies.

    7 replies

    mtien888
    Associate II
    July 25, 2017
    Posted on July 25, 2017 at 06:44

    I don't think you can do that with this MCU. The USB function is only USB device. You need a MCU with USB host function, or OTG. 

    Akhil Francis
    Associate II
    July 25, 2017
    Posted on July 25, 2017 at 06:53

    this coontroller has USB 2.0 full-speed interface 

    mtien888
    Associate II
    July 25, 2017
    Posted on July 25, 2017 at 07:00

    This CPU only support USB device. You need one support USB host in order to connect other USB device. Please Google USB host. 

    Akhil Francis
    Associate II
    July 25, 2017
    Posted on July 25, 2017 at 12:03

    hi, thanks for your reply,

    Then how can i take the data through USB? 

    can i use Mass storage?

    Tomas DRESLER
    Associate II
    July 25, 2017
    Posted on July 25, 2017 at 14:16

    Hello Francis, STM32F103 can't do it. Get at least STM32F105, or better, STM32F405. They support mass storage and you can connect your USB disk to them.

    The code is available as example in the HAL library.

    Edison_CZ