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  [ 3 posts ] 
Author Message
 Post subject: AT91SAM7SE256 USB Isochronous Transfer stops sending data
PostPosted: Sat May 14, 2011 11:25 am 
Offline

Joined: Wed Mar 09, 2011 11:42 am
Posts: 3
I am using the AT91SAM7SE256, Wrote the code to transfer the data over USB. I am using the Isochronous data transfer. USB initialized properly data start transferring on the USB. But the problem what I am are facing is the USB stops transfering the data on USB after few hours. What can be the reason. I have check using the USB analyzer and found that, host keep on sending SOF and after host there is no IN-TOKEN, this happen for some packets and after that disconnect EVENT fires. Then if I disconnect the power and power-ON the device then again it starts working fine and again after few hours data transfer stops.

Please help me how can I debug the problem and what can be the cause of the problem. If anybody have idea then please provide solution.

Thanks

_________________
Nvr knw a man by his apparel,but by his actions
Muhammad


Top
 Profile  
 
 Post subject: Re: AT91SAM7SE256 USB Isochronous Transfer stops sending data
PostPosted: Sat May 14, 2011 3:37 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Does this happen on both Windows and Linux hosts?

Is it a pattern sensitivity? ie is there a consistency to the failure, or the data sent at failure.

Does it occur after a uniform number of packets? ie a packet count vs time to fail.

Are you failing to clear a pending interrupt, or pending error condition, at the point of failure?

Can you use a JTAG debugger on your device to inspect the state of the system/peripherals before you power cycle it, and how does that compare to the state when it is working normally? ie break execution before it fails, compare/contrast to after it fails.


Top
 Profile  
 
 Post subject: Re: AT91SAM7SE256 USB Isochronous Transfer stops sending data
PostPosted: Wed May 18, 2011 8:31 am 
Offline

Joined: Wed Mar 09, 2011 11:42 am
Posts: 3
Captain Titanic

Thank you for your reply. Please find the replied about your queries;

Does this happen on both Windows and Linux hosts?
mkagzi :: I have tested with Windows only and we want to run this board with windows.

Is it a pattern sensitivity? ie is there a consistency to the failure, or the data sent at failure.
mkagzi :: Yes its a pattern sensitivity and consistent to the failure.

Does it occur after a uniform number of packets? ie a packet count vs time to fail.
mkagzi :: It is not upon uniform number of packets but uniform number of hours. I mean its time consistent failure at each 2.5 hours.
I have done certain modification as well in the code by resetting the isochronous endpoints
(IN endpoint is - 4 and OUT endpoint is - 5) but the error on the endopoints remains same. I have connected the device on host and run the jungo windriver 9.21 application I put the In-endpoint to listening mode. The data starts coming at each 1ms. But after 2.5 hours I see the data coming on windriver stops. I found the error WDU_tranfer() fails.
I stop the endpoint and pressed the reset pipe and again put the application to listen mode but this time there is no data coming on isochronous endpoint. I consider the windriver unloads the drivers so I restart the application again. But found same no data coming.
After that I have removed the power from the device and power it again. Now this time I found the data started coming in the windriver. But this continues to another 2.5 hours.
The same I did with external hardware reset without removing the power and USB and it started capturing data again.

I don't understand why the Transfer on the endpoint stops. Please help and reply back.
For your convenience here I am attaching the Windriver log file.

Are you failing to clear a pending interrupt, or pending error condition, at the point of failure?
mkagzi :: No

_________________
Nvr knw a man by his apparel,but by his actions
Muhammad


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 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:  
cron