i was looking for the option for usb host controller from stm32f.
I want to use usb stick and collect some data from stm32. i need some advise for selecting controller.
Should i go with ftdi chip (no firmware required)which provide host functionality with some interface. So, should i go with micro controller with built in host(firmware required).
I thought of using SD card but my PC don’t have MMC reader. I want to connect it to one of Machine which send data through UART.
Pendrive would be easy to connect to PC or to Mobile to check data.
Check USB OTG_FS in Peripheral Choice. There will be a list on the right with all STM32 MCUs with the selected feature.
https://www.kingston.com/en/flash/readers/fcr-mrg2
That would be the fastest and easiest way, imho (stm32->sdcard->usb_reader->PC).
There is a lot of topics on stm32 to sdcard data logging here and it works from BPill up.
[dev – Tue Dec 12, 2017 4:10 am] –
Thanks ag123.
I thought of using SD card but my PC don’t have MMC reader. I want to connect it to one of Machine which send data through UART.
Pendrive would be easy to connect to PC or to Mobile to check data.
This surely seems to be an unusual response… is there more going on here that would preclude you from using one of those inexpensive USB adapters?
If you are doing data collection, I agree it would be easier to just plug in the STM32F1xx and have it enumerate over USB. But the “Maple STM32F1xx boards” do not have this native capability, so SD is the only (simple) option. One of the STM32F4xx boards in the blue footprint may serve your needs, however. There are also STM32F1xx boards with Bluetooth and/or WiFi chips which could support wireless connectivity to the PC.
Ray
http://arduinobasics.blogspot.de/2015/0 … odule.html
I have tested one of these and it really works, but do not expect high access speed.
There are significant efforts going on at the moment to support USB HID and I susoect that USB mass storage could be added once the HID code is stable.
However at the moment I don’t think any of the cores have the option of USB mass storage built in
@Roger, If i am not wrong,You are talking about STM32F1xxx as Device which can work as composite device.
i thinking about stm32f4 board which is time consuming…
Several people investigated a composite device, ( specifically one that did not need drivers on Windows ) but they could not make it work on Windows 7.
BlackMagic Probe seems to enumerate as 2 Serial ports and also DFU , at the same time, ( but needs drivers on Windows)
But, On BMP, the DFU device does not seem to be functional at the same time as the serial devices.
I think perhaps it was Dan Drown ( @ddrown) who investigated USB serial. You could google for his posts and perhaps PM him
1. STM32F4x USB serial device, connected to a host that is sending the data
2. The STM32F4x writes that serial data to a USB pen drive on the STM32F4x’s second USB bus
Does that cover it?
[RogerClark – Fri Dec 15, 2017 6:46 pm] –
Several people investigated a composite device, ( specifically one that did not need drivers on Windows ) but they could not make it work on Windows 7.
Just to follow up on this, my black pill running my USB composite library works in HID mode (Keyboard is what I tested) with Windows 7 without any driver, but the serial function doesn’t work on Windows 7, at least without a driver.
[dev – Tue Dec 12, 2017 3:32 am] –
Hi,
i was looking for the option for usb host controller from stm32f.I want to use usb stick and collect some data from stm32. i need some advise for selecting controller.
Looking at the original post it seems to me that @dev wants to use the F4 as USB host, to which he would connect an USB (memory) stick.
I would also take the approach pointed out by @ag123.
Or just use as interface a CH376S module.

![[SOLVED] Discovery STM32F100RB — Trouble with timers and library structure](https://sparklogic.ru/wp-content/uploads/2019/11/st-stm32vl-discovery-90x90.jpg)
