Page 1 of 1

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

Posted: Thu May 09, 2024 4:36 am
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.

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

Posted: Thu May 09, 2024 12:45 pm
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

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

Posted: Mon May 13, 2024 9:29 pm
by myksj1105
GonzoG wrote: Thu May 09, 2024 12:45 pm 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
@GonzoG

Thank you for your kind reply.