cancel
Showing results for 
Search instead for 
Did you mean: 

USB mass storage STM32f103rb.

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

7 REPLIES 7
mtien888
Associate II
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. 

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

Posted on July 25, 2017 at 06:53

this coontroller has USB 2.0 full-speed interface 

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?

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

Posted on July 26, 2017 at 06:17

Hi, thanks for your reply,. 

But i Got a usb library for Stm32f103  from STM32 website, i mentioning the name below

'

STSW-STM32121

'.

http://www.st.com/en/embedded-software/stsw-stm32121.html

Posted on July 26, 2017 at 09:37

Dear Francis, please learn the difference between USB HOST, DEVICE and OTG.

As many stated here, you need HOST to connect your USB stick, the library offers only DEVICE driver because mentioned STM32s implement USB DEVICE peripheral.