cancel
Showing results for 
Search instead for 
Did you mean: 

help me please about stm32f107 host

askari.nima
Associate II
Posted on July 26, 2013 at 16:31

i make a board with stm32f107 mcu

i want to use usb host and read from flash disk.

i compile example in st.com an program my chip

but not work usb

please help me
6 REPLIES 6
Posted on July 26, 2013 at 16:48

What software are you using, what tools are you using to compile it?

Have you tested the code on the board it was designed for?

Have you ported it to your board properly?

Have you validated your board design?

What other aspects of USB operations have you tested?

What debugging have you done? What does this tell you?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
askari.nima
Associate II
Posted on July 26, 2013 at 21:26

sorry for my english .

 

i use keil 4.72

i connect only  D+ D- VCC-5v   GND  usb and one led

i compile example in st.com site (usb host msc)

and program chip . but do not  flashing led in my flash drive and not work Fatfs

askari.nima
Associate II
Posted on July 26, 2013 at 21:54

my board connections is correct and work a example in MikroC ARM compiler

Posted on July 26, 2013 at 23:31

That it doesn't work is a bit non-specific, you'll have to debug a little deeper, perhaps by adding some telemetry messages, and decomposing the problem so you can see whether you can read sectors at a lower level.

I don't have an STM3210C-EVAL either, but rather an STM32CMICOS, not sure if that has USB set up. I've moved to mostly F2 and F4 designs. To port the STM3210C-EVAL code you'll need to remove LCD code, and pay a lot of attention to pin assignments, and schematic details.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
askari.nima
Associate II
Posted on July 28, 2013 at 07:13

problem

when i connect 16GB flash disk    ,  

stop in  

USB_Host.EnumState = ENUM_GET_FULL_DEV_DESC

USB_Host.gState=HOST_CTRL_XFER

USB_Host.gStateBkp =HOST_ENUMERATION

USB_Host,RequestState=CMD_WAIT

but when connect 4Gb usb flash disk

USB_Host.EnumState = ENUM_DEV_CONFIGURED

Tomas DRESLER
Senior II
Posted on July 31, 2013 at 18:14

Please change the maximum endpoint number to 3 in usbh_conf.h and re-confirm.

Edison