nonolith / USB-XMEGA

USB stack for Atmel ATxmega32A4U and related parts
http://nonolithlabs.com
38 stars 13 forks source link

Device not recognized #9

Open ricardolima91 opened 7 years ago

ricardolima91 commented 7 years ago

Hi guys, i'am missing some config? In windows it says Unknown USB device(Device Descriptor Request failed) and in mac is not recognize also. Thank you in advance

kevinmehall commented 7 years ago

That error is tough because it can cover pretty much anything that would cause the device to not answer requests at all, from clock settings to the code crashing.

This repository is mostly deprecated in favor of https://github.com/kevinmehall/usb, but that version has not seen as much testing on Xmega.

Try adding

CFLAGS += -fno-jump-tables

to the makefile, as there's known to be an issue relating to switch statement jump tables on recent GCC (https://github.com/kevinmehall/usb/issues/3)

ricardolima91 commented 7 years ago

Thanks for the help ;) new version of your repo works ok ! But now on main it is only initializing the usb. So we cannot comunicate with that rigth? I can copy the same code which you have in this version to initialize in cdc (create port com) or dfu ? Thank you for your work