STM32F103 / As a ‘USB Host’, I would like to save a ‘txt’ file on USB.

Post here first, or if you can't find a relevant section!
Post Reply
myksj1105
Posts: 60
Joined: Sun Jun 18, 2023 11:35 am
Answers: 1

STM32F103 / As a ‘USB Host’, I would like to save a ‘txt’ file on USB.

Post by myksj1105 »

[Current Status]
1. MCU: STM32F103CB
2. CORE1: https://github.com/rogerclarkmelbourne/Arduino_STM32
3. CORE2: https://github.com/stm32duino/Arduino_Core_STM32
- lib : https://github.com/stm32duino/Arduino_C ... issues/559

[What I want to do]
1. As a ‘USB Host’, I would like to save a ‘txt’ file on USB.
- I want to read and write.
2. I want to do it through ‘STM32F103CB’.
3. I want to perform it through 'core1' or 'core2'.
4. I am curious about how to structure the circuit diagram.

Image
https://drive.google.com/file/d/1Mdi5Qd ... sp=sharing

Please refer to the image, you will get an idea of what I am looking for.
'arduino' performs 'write' and 'read' through 'USB ch340'.
Do I also need to use 'STM32F103CB' through 'USB ch340'?
Or is it possible to do it on its own ('STM32F103CB')?
I wonder.
GonzoG
Posts: 408
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: STM32F103 / As a ‘USB Host’, I would like to save a ‘txt’ file on USB.

Post by GonzoG »

There's nothing about usb host in F103 datasheet so I don't think it's possible.

You will need external USB host chip/module that uses SPI / UART to communicate with STM32.
There are USB host shields and modules for Arduino that should work without problems with stm32 core
Post Reply

Return to “General discussion”