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?
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.
this coontroller has USB 2.0 full-speed interface
This CPU only support USB device. You need one support USB host in order to connect other USB device. Please Google USB host.
hi, thanks for your reply,
Then how can i take the data through USB?
can i use Mass storage?
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.
Hi, thanks for your reply,.
But i Got a usb library for Stm32f103 from STM32 website, i mentioning the name below
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.
Retrieving data ...