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  [ 4 posts ] 
Author Message
 Post subject: at91samrl64-ek USB opening in and out pipes at same time
PostPosted: Wed Apr 22, 2009 1:07 am 
Offline

Joined: Wed Mar 25, 2009 6:18 pm
Posts: 6
Hi,

I'm attempting to connect to the USB demo board using the ek demo software (CDC).

The problem I am having is to do with the usb library on the PC side of things. I have 2 endpoints for my in pipe and outpipe, they are both configured correctly and it connects and we get bing bong sounds and the works but.....

If I attempt to open the inpipe at the same time as the outpipe, then I get a windows system error from the 'CreateFile' function of 0x05 - ERROR_ACCESS_DENIED.

I can open both independently but not at the same time. I need both to be open at once so I can send data to the atmel as well as receiving data from it.

Any idea anyone?

Thanks,

Chris.


Top
 Profile  
 
 Post subject: Re: at91samrl64-ek USB opening in and out pipes at same time
PostPosted: Wed Apr 22, 2009 5:20 pm 
Offline

Joined: Wed Mar 25, 2009 6:18 pm
Posts: 6
Ok, so I found the problem - maybe someone can tell me why this is happening...

I have 2 endpoints set up (IN/OUT) and they are both BULK transfer type. It seems if I change these to INTERRUPT I can open the both the inpipe and outpipe handles at the same time. Is this some kind of USB rule? Is there a way to get round this by adding an interrupt pipe and having 2 bulk pipes or alternatively one bulk pipe OUT and an interrupt pipe IN?


Top
 Profile  
 
 Post subject: Re: at91samrl64-ek USB opening in and out pipes at same time
PostPosted: Wed Apr 22, 2009 7:03 pm 
Offline

Joined: Wed Mar 25, 2009 6:18 pm
Posts: 6
Oh, it appears I didn't fix it so you can ignore the post above..... Any ideas anyone, this is driving me a bit barking mad...


Top
 Profile  
 
 Post subject: Re: at91samrl64-ek USB opening in and out pipes at same time
PostPosted: Thu Sep 10, 2009 3:51 pm 
Offline

Joined: Wed Mar 25, 2009 6:18 pm
Posts: 6
Bump


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: