usb host contr stm32

Post here first, or if you can't find a relevant section!
dev
Posts: 73
Joined: Sun Feb 19, 2017 8:41 am

usb host contr stm32

Post by 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.

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).

ag123
Posts: 827
Joined: Thu Jul 21, 2016 4:24 pm

Re: usb host contr stm32

Post by ag123 » Tue Dec 12, 2017 4:03 am

You can use a sd card with stm32, u'd just needs to search the forum for those threads

dev
Posts: 73
Joined: Sun Feb 19, 2017 8:41 am

Re: usb host contr stm32

Post by 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.

vargham
Posts: 19
Joined: Thu Jan 26, 2017 3:49 pm

Re: usb host contr stm32

Post by vargham » Tue Dec 12, 2017 10:15 am

http://www.st.com/en/development-tools/ ... inder.html

Check USB OTG_FS in Peripheral Choice. There will be a list on the right with all STM32 MCUs with the selected feature.

User avatar
Pito
Posts: 1698
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: usb host contr stm32

Post by Pito » Tue Dec 12, 2017 10:47 am

There are cheap usb/sdcard readers like
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.
Pukao Hats Cleaning Services Ltd.

ag123
Posts: 827
Joined: Thu Jul 21, 2016 4:24 pm

Re: usb host contr stm32

Post by ag123 » Tue Dec 12, 2017 1:26 pm

and some card sellers actually bundle a reader especially for the higher capacity cards that cost a little more

User avatar
mrburnette
Posts: 2028
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: usb host contr stm32

Post by mrburnette » Wed Dec 13, 2017 3:26 pm

dev wrote:
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

stevestrong
Posts: 1950
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: usb host contr stm32

Post by stevestrong » Wed Dec 13, 2017 7:19 pm

Have you ever considered to use a CH376 module? It interfaces directly a USB stick, so you don't need USB host functionality.
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.

User avatar
RogerClark
Posts: 7541
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: usb host contr stm32

Post by RogerClark » Wed Dec 13, 2017 7:23 pm

I recall messing around with some “mass storage” code well over a year ago, and I susoect I posted to the forum about it.

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

dev
Posts: 73
Joined: Sun Feb 19, 2017 8:41 am

Re: usb host contr stm32

Post by dev » Fri Dec 15, 2017 2:50 pm

@stevestrong , CH376 Module is good option to think for that not need to worry about enumeration and hub.

@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...

Post Reply