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: USB and blocking problem with Atmel macro CLEAR_CSR(...)
PostPosted: Wed Jan 06, 2010 4:29 pm 
Offline

Joined: Sat Feb 02, 2008 11:35 pm
Posts: 15
Location: USA
Hi,

I've an issue with an AT91SAM7S128 using USB on dev. board AT91SAM7S-EK.

I'm having trouble receiving interrupt out traffic. Atmel macro CLEAR_CSR(...) blocks forever when called from framework function UDP_ClearRxFlag(...).

It's intermittent as sometimes I'll successfully receive 10 transfers of data and other times hundreds but always I find myself halting DBG at code as mentioned above.

I notice the data sheet mentions synch problems with mclk and udpck but I figured since I'm using the framework there shouldn't be an issue.

thanks,

dc


Top
 Profile  
 
 Post subject: Re: USB and blocking problem with Atmel macro CLEAR_CSR(...)
PostPosted: Thu Jan 07, 2010 12:24 pm 
Offline

Joined: Fri Oct 19, 2007 10:18 am
Posts: 40
Hi,
I had the same problem using an AT91SAM9260.
It comes and goes curiously when some other code in the project has been changed.

Since it does not occur in the current build, which will not be changed for the moment, I did not proceeded searching the reason.

But it would be great, if there is someone knowing the reason...


Top
 Profile  
 
 Post subject: Re: USB and blocking problem with Atmel macro CLEAR_CSR(...)
PostPosted: Tue Mar 23, 2010 5:30 pm 
Offline

Joined: Fri Oct 19, 2007 10:18 am
Posts: 40
Hi,
I got the same problem again.
The application runs some time without any problems. But randomly, the USB communication gets stuck.
I enabled tracing and saw, that the USB interrupt handler is not beeing called after USBD_Write returned, thus there is no data send to the host.

Does anyone have the same problem?


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: Google [Bot] and 3 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: