2010-07-13 09:36:37     BF525 USB-Host high speed problem

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-07-13 09:36:37     BF525 USB-Host high speed problem

Thomas Brandt (GERMANY)

Message: 91197   

 

Hello,

I'm trying to connect a high speed USB-device to the BF525. But everytime I get these errors:

 

[  270.323000] usb 1-1: new high speed USB device using musb_hdrc and address 8

[  270.426000] usb 1-1: device descriptor read/64, error -71

[  270.630000] usb 1-1: device descriptor read/64, error -71

[  270.834000] usb 1-1: new high speed USB device using musb_hdrc and address 9

[  270.937000] usb 1-1: device descriptor read/64, error -71

[  271.141000] usb 1-1: device descriptor read/64, error -71

[  271.345000] usb 1-1: new high speed USB device using musb_hdrc and address 10

[  271.748000] usb 1-1: device not accepting address 10, error -71

[  271.852000] usb 1-1: new high speed USB device using musb_hdrc and address 11

[  272.255000] usb 1-1: device not accepting address 11, error -71

[  272.256000] hub 1-0:1.0: unable to enumerate USB device on port 1

 

It's not depending on the device. I got this error for an USB mass storage (Sandisk curzer micro 1GB) an also

for the JTAG-UART gnice+.

 

 

If i connect a full speed device it works.

 

-USB mass storage (noname 64MB)

 

[  623.392000] usb 1-1: new full speed USB device using musb_hdrc and address 12

[  623.508000] usb 1-1: New USB device found, idVendor=0ea0, idProduct=6828

[  623.509000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[  623.510000] usb 1-1: Product: Flash Disk     

[  623.511000] usb 1-1: Manufacturer: USB    

[  623.512000] usb 1-1: SerialNumber: 3C4515417CC83A4B

[  623.516000] scsi2 : usb-storage 1-1:1.0

[  624.521000] scsi 2:0:0:0: Direct-Access     OTi6828  Flash Disk       1.89 PQ: 0 ANSI: 2

[  624.525000] sd 2:0:0:0: Attached scsi generic sg0 type 0

[  625.703000] ready

[  625.705000] sd 2:0:0:0: [sda] 128000 512-byte logical blocks: (65.5 MB/62.5 MiB)

[  625.707000] sd 2:0:0:0: [sda] Write Protect is off

[  625.708000] sd 2:0:0:0: [sda] Assuming drive cache: write through

[  625.719000] sd 2:0:0:0: [sda] Assuming drive cache: write through

[  625.720000]  sda:

[  625.728000]  sda1

[  625.737000] sd 2:0:0:0: [sda] Assuming drive cache: write through

[  625.738000] sd 2:0:0:0: [sda] Attached SCSI removable disk

 

- USB <--> RS232 converter

 

[  680.201000] usb 1-1: new full speed USB device using musb_hdrc and address 13

[  680.315000] usb 1-1: New USB device found, idVendor=6189, idProduct=2068

[  680.316000] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[  680.319000] pl2303 1-1:1.0: pl2303 converter detected

[  680.323000] usb 1-1: pl2303 converter now attached to ttyUSB0

 

 

Im using the Linux (none) 2.6.34-ADI-2010R1-pre kernel.

 

So what could be the problem?

Best Regards Thomas

TranslateQuoteReplyEditDelete

 

 

2010-07-14 03:29:54     Re: BF525 USB-Host high speed problem

Sonic Zhang (CHINA)

Message: 91231   

 

Could you check if the same USB cable works properly on a PC?

QuoteReplyEditDelete

 

 

2010-07-14 03:56:44     Re: BF525 USB-Host high speed problem

Thomas Brandt (GERMANY)

Message: 91232   

 

The connected devices are working on a PC properly.

TranslateQuoteReplyEditDelete

 

 

2010-07-14 04:04:57     Re: BF525 USB-Host high speed problem

Michael Hennerich (GERMANY)

Message: 91233    I would also take a look at the electrical signal connection.

Make sure you have a proper eye pattern on the USB signals.

Also monitor USB power supply - there shouldn't be any significant voltage drop on VBUS.

QuoteReplyEditDelete

 

 

2010-07-14 08:44:13     Re: BF525 USB-Host high speed problem

Thomas Brandt (GERMANY)

Message: 91240   

 

The eye pattern for full-speed devices look brilliant. For high-speed

devices I can't measure

the eye pattern because there is no connection. ( Still my problem ;-) )

 

On VBUS is no siginificant voltage drop. (From 5.1V (not connected) to

5.0V).

 

I'm using a 12MHz crystal instead of an 24MHz. So I've changed the value

of USB_PLLOSC_CTRL from 0x30a8 to 0x30d0. Wich ist

hardcoded in drivers/usb/musb/blackfin.c.

Are there some other changes to be done?

 

TranslateQuoteReplyEditDelete

 

 

2010-07-14 09:03:06     Re: BF525 USB-Host high speed problem

Thomas Brandt (GERMANY)

Message: 91241    The eye pattern for full-speed devices look brilliant. For high-speed

devices I can't measure

the eye pattern because there is no connection. ( Still my problem ;-) )

 

On VBUS is no siginificant voltage drop. (From 5.1V (not connected) to

5.0V).

 

I'm using a 12MHz crystal instead of an 24MHz. So I've changed the value

of USB_PLLOSC_CTRL from 0x30a8 to 0x30d0. Wich ist

hardcoded in drivers/usb/musb/blackfin.c.

Are there some other changes to be done?

TranslateQuoteReplyEditDelete

 

 

2010-07-15 05:21:23     Re: BF525 USB-Host high speed problem

Thomas Brandt (GERMANY)

Message: 91288   

 

Okay, new conclusion.

 

I've disabeld the HS_ENABLE-Bit in the USB_POWER register.

(MUSB_POWER_HSENAB)

 

Now my high speed devices are running properly. Of cours only with full speed.

 

Any ideas?

TranslateQuoteReplyEditDelete

 

 

2010-07-15 05:45:34     Re: BF525 USB-Host high speed problem

Michael Hennerich (GERMANY)

Message: 91291    I assume - you are using your own hardware?

Does the electrical USB interface look similar to the one used by the ezkits?

 

IIRC USB uses some pull-ups on D+/D- to indicate whether the device is full or high speed.

In case there are some external pull-ups connected to either D+/D- will cause the logic malfunction.

QuoteReplyEditDelete

 

 

2010-07-15 07:14:06     Re: BF525 USB-Host high speed problem

Thomas Brandt (GERMANY)

Message: 91294   

 

PROBLEM SOLVED

 

Okay if found the problem. There was a wrong ESD-protection placed on the PCB.

After I've removed it from our PCB high-speed devices are working properly.

 

Many thank for your help.

TranslateQuoteReplyEditDelete

 

 

2010-07-15 07:34:53     Re: BF525 USB-Host high speed problem

Michael Hennerich (GERMANY)

Message: 91295    This is what I thought.

Glad to hear that things are working now.

QuoteReplyEditDelete

 

 

2010-07-15 09:39:04     Re: BF525 USB-Host high speed problem

Mike Frysinger (UNITED STATES)

Message: 91302   

 

do you still need to make the PLLOSC_CTRL change after you've fixed the hardware ?  if so, that's a bug on our side we need to fix.

QuoteReplyEditDelete

 

 

2010-07-15 10:07:21     Re: BF525 USB-Host high speed problem

Michael Hennerich (GERMANY)

Message: 91309    The Blackfin MUSB arch file hard codes the value for an 24MHz USB CLKIN.

So everyone using a different OSC frequency must modify this value accordingly.

 

This should be better in the platform data...

QuoteReplyEditDelete

 

 

2010-07-15 10:14:40     Re: BF525 USB-Host high speed problem

Mike Frysinger (UNITED STATES)

Message: 91311   

 

ok, that's what i figured

 

  blackfin.uclinux.org/gf/tracker/6129

Attachments

    Outcomes