[Fixed] USB Enumeration using Example and WinUSB

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

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

[Fixed] USB Enumeration using Example and WinUSB

Mon Aug 01, 2011 3:45 pm

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.
agrealish
Posts: 8
Joined: Thu Jul 28, 2011 4:14 pm

Re: USB Enumeration using Example and WinUSB

Mon Aug 01, 2011 4:10 pm

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.
agrealish
Posts: 8
Joined: Thu Jul 28, 2011 4:14 pm

Re: [Fixed] USB Enumeration using Example and WinUSB

Tue Aug 02, 2011 10:56 am

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
}
};

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest