0

I'm trying to read/write data to a USB flash drive.

I have read in the reference manual that STM32F103xx has a USB peripheral but can only act as a device in the communication. From what I understood, I need it to act as a host. Is there anyway to do this operation without USB to UART converters as I'm trying to be more efficient(in a financial sense).

I seem to find no clue on the internet regarding this particular MCU. If this can be done only with a UART converter, please show me where to look.

Thank you!

4
  • Indeed, a USB host is required and the STM32F103xx can only assume the device role. A USB to UART converter will not help either. It doesn't implement the flash drive protocol. You'll need to upgrade to another STM32 MCU supporting USB host role. Commented Feb 23, 2021 at 10:55
  • You need an USB host which speaks USB Mass Storage protocol. I don't understand why you even bring up UART. Not only is an UART useless when trying to talk to a USB Mass Storage device, but that USB-UART device also needs an USB host. Commented Feb 23, 2021 at 11:14
  • Thank you both for sparing your time to answer! :D Commented Feb 23, 2021 at 11:16
  • F1 series 105/107 series have hardware host support. Commented Feb 23, 2021 at 11:47

2 Answers 2

0

As multiple people pointed out, STM32F103C8 can't be a host in the USB communication protocol, therefore the transfer of data cannot be done.

I made a mistake when I thought the USB to UART converter will solve the problem. The converter doesn't have a mass storage protocol implemented on it, therefore it cannot read the data.

See the comments for answers.

Sign up to request clarification or add additional context in comments.

Comments

0

You might consider using sdcard for your project

3 Comments

OP's question is specific to the STM32F103C8 device, which does not have an sdcard slot.
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.