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: [Fixed] USB Enumeration using Example and WinUSB
PostPosted: Mon Aug 01, 2011 3:45 pm 
Offline

Joined: Thu Jul 28, 2011 4:14 pm
Posts: 8
Hi,

I am attempted to design a custom usb device which uses the winUSB driver. I have got the USB enumeration example by Atmel but I cannot seem to get it properly enumerated with the PC. It shows up in Device manager but has this message 'This device cannot start. (Code 10)'
Stepping through the code, it seems like the device is getting stuck in the Default State and does not enter the configured state.

Any ideas what the problem is?


Last edited by agrealish on Tue Aug 02, 2011 10:54 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: USB Enumeration using Example and WinUSB
PostPosted: Mon Aug 01, 2011 4:10 pm 
Offline

Joined: Thu Jul 28, 2011 4:14 pm
Posts: 8
Sorry, I meant that the device is getting stuck in the Address State and does not continue into the configured state.

Thanks for any help.


Top
 Profile  
 
 Post subject: Re: [Fixed] USB Enumeration using Example and WinUSB
PostPosted: Tue Aug 02, 2011 10:56 am 
Offline

Joined: Thu Jul 28, 2011 4:14 pm
Posts: 8
In the configuration descriptor the No of Interfaces needs to be changed from 0 to 1.
Eg/

const struct SimpleConfigurationDescriptors configurationDescriptors = {

// Configuration descriptor
{
sizeof(USBConfigurationDescriptor),
USBGenericDescriptor_CONFIGURATION,
sizeof(struct SimpleConfigurationDescriptors),
1, // No interface in this configuration was 0 <---Change this line
1, // This is configuration #1
0, // No string descriptor for this configuration
BOARD_USB_BMATTRIBUTES,
USBConfigurationDescriptor_POWER(100)
},
// Interface descriptor
{
sizeof(USBInterfaceDescriptor),
USBGenericDescriptor_INTERFACE,
0, // This is interface #0
0, // This is setting #0 for interface
0, // Interface has no endpoint
0, // No interface class code
0, // No interface subclass code
0, // No interface protocol code
0, // No string descriptor
}
};


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 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:  
cron