XMEGA port
Posted: Wed Feb 15, 2017 11:53 am
Hi. I have started porting V-USB over to XMEGA. I have it compiling and the Windows PC sees an unknown USB device. Looking at the debugger it appears that packets are being received.
The first request that comes in is length 8, and looks like this:
This is a request to read the device descriptor and looks valid. But the device is coming up as unknown and Windows doesn't seem to see the VID/PID, as if the response is not valid.
Has anyone else had success with this? I'm using a 128A3U and 16Mhz crystal for timing, with code being a slight variation of the 16MHz original. I'm using a virtual port so that single cycle access is possible, the same as on MEGA and TINY AVRs.
Any recommendations on good tools for debugging? I'm going to get my logical analyzer running when I find time.
The first request that comes in is length 8, and looks like this:
Code: Select all
bmRequestType 0x80 unsigned char{registers}@0x2066
bRequest 0x06 unsigned char{registers}@0x2067
This is a request to read the device descriptor and looks valid. But the device is coming up as unknown and Windows doesn't seem to see the VID/PID, as if the response is not valid.
Has anyone else had success with this? I'm using a 128A3U and 16Mhz crystal for timing, with code being a slight variation of the 16MHz original. I'm using a virtual port so that single cycle access is possible, the same as on MEGA and TINY AVRs.
Any recommendations on good tools for debugging? I'm going to get my logical analyzer running when I find time.