AnsweredAssumed Answered

Issue with the USB on BF547

Question asked by dpenev on Nov 14, 2012
Latest reply on Nov 25, 2012 by Aaronwu

Hi Gents,

 

We are having an issue with the Blackfin USB interface.
We are trying to connect an Ralink RT3370 based WiFi dongle to the BF547 on our custom board.

From the hardware perspective the USB subsystem  can be described as follows:

 

USB_VDD - 3.3V, locally decoupled

USB_VBUS - 5V, can be controlled by the GPIO, locally decoupled

USB_ID - tight to ground

USB_RSET - floating

USB_VREF - 1uF decoupled

24 MHz crystal which we have confirmed to oscillate.

 

VRSEL we have defined in the board configuration but we really don't use in the hardware.

 

We boot uClinux Linux kernel 3.0.8-ADI-2011R1.

We have configured the USB as HOST and in the logs we see

 

<6>usbcore: registered new interface driver usbfs

<6>usbcore: registered new interface driver hub

<6>usbcore: registered new device driver usb

<6>musb-hdrc: version 6.0, musb-dma, host

<7>musb-hdrc: ConfigData=0x00 (UTMI-8)

<7>musb-hdrc: HDRC RTL version 1.900

<6>musb-hdrc musb-hdrc: MUSB HDRC host driver

<6>musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1

<6>hub 1-0:1.0: USB hub found

<6>hub 1-0:1.0: 1 port detected

<6>musb-hdrc musb-hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82

 

Our WiFi dongle is connected to the main CPU board using 4 pin header (not the USB connector)

so GND, VBUS, D+ and D- are all connected at the same time.

 

Test Board 1 ==============================================

If we plug the WiFi dongle and enable the USB_VBUS we see

 

usb 1-1: new high speed USB device number 2 using musb-hdrc

 

but the device is not recognized

root@sap:~> lsusb

Bus 001 Device 001: ID 1d6b:0002

 

and in the log in the next 10 minutes we see following messages coming:

<3>usb 1-1: device descriptor read/64, error -110

<3>usb 1-1: device descriptor read/64, error -110

<6>usb 1-1: new high speed USB device number 3 using musb-hdrc

<3>usb 1-1: device descriptor read/64, error -110

<3>usb 1-1: device descriptor read/64, error -110

<6>usb 1-1: new high speed USB device number 4 using musb-hdrc

<3>usb 1-1: device descriptor read/8, error -110

<3>usb 1-1: device descriptor read/8, error -110

<3>musb_h_ep0_irq 1033: no URB for end 0

<6>usb 1-1: new high speed USB device number 5 using musb-hdrc

<3>usb 1-1: device descriptor read/8, error -110

<3>usb 1-1: device descriptor read/8, error -110

<3>hub 1-0:1.0: unable to enumerate USB device on port 1

 

One of about 30 tries we get the device recognized and we don't get the above error messages.

root@sap:~> lsusb

Bus 001 Device 001: ID 1d6b:0002

Bus 001 Device 002: ID 148f:3370

 

Test Board 2 ==============================================

If we plug the WiFi dongle and enable the USB_VBUS we see

usb 1-1: new high speed USB device number 2 using musb-hdrc

 

root@sap:~> lsusb

Bus 001 Device 001: ID 1d6b:0002

Bus 001 Device 002: ID 148f:3370

 

We get the new WiFi interface and it is working. 

 

One of about 20 tries we get the issue as on the Board 1 but in general
Board 2 is much much more stable compared Board 1

 

We put lot of efforts to investigate this issue but both boards seems to be exactly the same in terms of USB

 

Can someone suggest what may be wrong with our boards?

 

Thank you

Dimitar

Outcomes