Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Mon Mar 30, 2009 7:50 pm 
Offline

Joined: Mon Mar 30, 2009 11:54 pm
Posts: 3
I have been using five of the AT91SAM9260-EK development boards for several months now without problems. I received two AT91SAM9G20-EK boards to evaluate since we are planning on switching over to the 9G20 part.

My system consists of the Atmel development board and a CSR Bluetooth development kit connected with a USB cable.
I am running the same code on both the 9260 and the 9G20 with the exception of different PLL settings. The USB clock is running at the same speed on both systems.

I have been having problems with the USB Host controller returning DEVICENOTRESPONDING transfer errors on the 9G20 even when my software is not talking to the CSR device or the USB Host controller. The software has set the controller up to perform periodic transfers on two endpoints. Looking at the USB traffic with a bus analyzer I see tons of USB IN packet requests being NAKed by the CSR device since there is no data to be returned. Once in a while a NAK appears to not be sent by the CSR device (or it is squashed) and after three missed NAKs I get the DEVICENOTRESPONDING error. I can get the error to occur more regularly by accessing the SD card or using the USB device port. It also appears that if I reduce the MCLK/PCLK the errors do not occur as frequently.

As I stated everything works great on the 9260, I have been running the 9260 board for months with out ever seeing this error. If I switch from the AT91SAM9260-EK to the AT91SAM9G20-EK I get the errors immediately. It seems like it is a USB signal quality problem but I can not see any problems on the cable.

Has anybody been using the USB Host port on the AT91SAM9G20-EK development board? Any other suggestions would be greatly appreciated.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Tue Mar 31, 2009 7:43 am 
Offline

Joined: Mon Jun 05, 2006 11:57 pm
Posts: 47
I can't say that I have, but a wild guess is that this sounds tremendously like a missed interrupt.

[Again, only a wild guess.]


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Mon Apr 06, 2009 2:59 pm 
Offline

Joined: Wed Jul 04, 2007 8:06 am
Posts: 2
I'm running linux on my 9g20's board,and when I insert the usb sound card or u-disk into 9g20's usb host port,it seems that there are some error information like:
usb 1-1: new full speed USB device using at91_ohci and address 2
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new full speed USB device using at91_ohci and address 3
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -32
usb 1-1: new full speed USB device using at91_ohci and address 4
usb 1-1: device not accepting address 4, error -71
usb 1-1: new full speed USB device using at91_ohci and address 5
usb 1-1: device not accepting address 5, error -71
hub 1-0:1.0: unable to enumerate USB device on port 1

and sometimes it seems OK,does 9g20's usb host stable?


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Fri May 15, 2009 10:06 am 
Offline

Joined: Mon Feb 25, 2008 9:30 pm
Posts: 6
Location: belgium
Hi,

Same findings, using the 9260-EK boards for more the 6 months, without problems.
For the 9G20 boards, USB problems !!

With a CSR module, even without a USB-CABLE, csr module on a STICK.
But also having problems while executing filecopy's on a USB-stick [the USB stick(s) even got corrupt USB_VID & USB_PID are screwed to 000])


Any Update/Tips/Hints.. on this matter ?

Kind regards
Noel.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Fri May 15, 2009 6:53 pm 
Offline

Joined: Wed Jan 09, 2008 5:09 pm
Posts: 186
Location: Mounds View, MN
Could be some issue with your USB device. I have over 100 9G20 units communicating with cell phone modules over the USB host port without problems.

_________________
Tim Barr
Multitech Inc.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Sun Jun 21, 2009 1:25 am 
Offline

Joined: Mon Mar 30, 2009 11:54 pm
Posts: 3
We finally received our design using the 9G20 and we are not seeing any USB problems. It sure does look like the AT91SAM9G20-EK development boards have a USB Host port issue


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Fri Jul 17, 2009 2:28 am 
Offline

Joined: Mon Mar 30, 2009 11:54 pm
Posts: 3
Well I was wrong. We do see the same USB problems on our boards as I was seing on the development boards but our boards fail only at temperatures below 0 C where the development board fails at room temperature.

The errors also occur more frequently when I am using the MCI interface to access an SD card.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Thu Oct 29, 2009 8:53 am 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
I think this could be related to bus bandwidth.
The SAM9260 runs at 200 MHz and has a 100 MHz bus.
The SAM9G20 runs at 400 MHz and has a 133 MHz bus.
The SAM9G20 uses much more of the total bandwidth, leaving
less for other peripherals like OHCI and MCI.

If the MCI is running, then the OHCI will get even less bus cycles.

If the OHCI DMA does not get access, it will get underrun errors.

Some tests:

Try running the SAM9G20 at 200 MHz/100 MHz bus.
Check with a bus analyzer if packets are corrupted.

Possible workarounds:
Initialize the bus matrix inside AT91bootstrap with priorities
set to favour the USB OHCI.
Use internal SRAM for OHCI buffers.
This will use another port in the bus matrix, which is normally not used.
The SRAM is fairly limited, and even more so on the SAM9260,
so it it not a good idea to use SRAM on that chip, only on the SAM9G20.

This does not explain temperature variations.

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Tue Nov 03, 2009 12:51 pm 
Offline

Joined: Thu Oct 16, 2008 10:39 am
Posts: 10
kgalloway wrote:
our boards fail only at temperatures below 0 C where the development board fails at room temperature.


I can't understand: G20 operates in range -40°C to 85°C.
I wonder if You have an Eng Sample CPU.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Tue Nov 03, 2009 12:51 pm 
Offline

Joined: Thu Oct 16, 2008 10:39 am
Posts: 10
kgalloway wrote:
our boards fail only at temperatures below 0 C where the development board fails at room temperature.


I can't understand: G20 operates in range -40°C to 85°C.
I wonder if You have an Eng Sample CPU.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Tue Nov 03, 2009 12:54 pm 
Offline

Joined: Thu Oct 16, 2008 10:39 am
Posts: 10
kgalloway wrote:
our boards fail only at temperatures below 0 C where the development board fails at room temperature.


I can't understand: G20 operates in range -40°C to 85°C.
I wonder if You have an Eng Sample CPU.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Tue Nov 03, 2009 12:55 pm 
Offline

Joined: Thu Oct 16, 2008 10:39 am
Posts: 10
kgalloway wrote:
our boards fail only at temperatures below 0 C where the development board fails at room temperature.


I can't understand: G20 operates in range -40°C to 85°C.
I wonder if You have an Eng Sample CPU.


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Fri Apr 23, 2010 7:56 am 
Offline

Joined: Fri Apr 23, 2010 7:36 am
Posts: 2
Has this problem been resolved as we are seeing similar problems using a USB to Ethernet part with the G20?


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Fri Apr 23, 2010 7:56 am 
Offline

Joined: Fri Apr 23, 2010 7:36 am
Posts: 2
Has this problem been resolved as we are seeing similar problems using a USB to Ethernet part with the G20?


Top
 Profile  
 
 Post subject: Re: USB Host problems on AT91SAM9G20-EK boards
PostPosted: Fri Apr 23, 2010 8:20 am 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
psutter wrote:
Has this problem been resolved as we are seeing similar problems using a USB to Ethernet part with the G20?


You need to check for jitter.
The Schematics Checklist for the SAM9G20 has recently been updated,
The VDDPLL should in the new revision be generated by an LDO,
to ensure stability. In previous revisions of the checklist it was connected to the DC/DC converter and apparently this may cause
jitter bad enough to affect the USB.
As far as I know, while the investigation of this has gone one for
some time, is not complete.
Maybe VDDOSC should also be driven by an LDO.

Careful decoupling of the VDDPLL and VDDOSC seems also to be important. Putting the decoupling right below the BGA seems to have improved the situation for the USB *device*. Not sure if this was
because that board had particular bad decoupling or not.

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: