2017-07-24 09:35 PM
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
2017-07-24 09:44 PM
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.
2017-07-24 10:00 PM
This CPU only support USB device. You need one support USB host in order to connect other USB device. Please Google USB host.
2017-07-24 11:53 PM
this coontroller has USB 2.0 full-speed interface
2017-07-25 05:03 AM
hi, thanks for your reply,
Then how can i take the data through USB?
can i use Mass storage?
2017-07-25 07:16 AM
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
2017-07-25 11:17 PM
Hi, thanks for your reply,.
But i Got a usb library for Stm32f103 from STM32 website, i mentioning the name below
'
STSW-STM32121
'.2017-07-26 02:37 AM
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.