How to use driver, please help
Posted: Tue Aug 18, 2009 9:23 pm
Hi I just built the USB servo project and it is recognized by my computer (win XP) as USB servo, not "unknown device" when I plug it in, but I don't get where I can find the driver, is libusb the driver? I need the dll and the inf file right? I want to communicate with it using a C# program. Do I need to compile what's in the usbdrv folder? If so do I just compile it as a dll? Then where would I get the inf file? Also It says I need to create some file as well. Please help me, its not extremely confusing but when I'm trying to get something to work I need some step by step instructions and I cannot find any of those in any VUSB project. When I tried compiling the usbdrv I received a lot of errors from the io.h and stdnt.h and inttypes.h pertaining to the type definitions used in those files. Because I'm pretty sure they are meant only for the AVR compiled not windows compiler. So when I tried to compile usbdrv.c to make a win32 dll I got 65 errors such as this one
Error 1 error C2061: syntax error : identifier '__attribute__' "..."/stdint.h 121 usbdrv
for the line of code
typedef int int8_t __attribute__((__mode__(__QI__)));
also when I plugged my USB-Servo circuit into a vista PC it was not visible or recognized at all, whereas on an XP PC it shows up as USB-Servo but it cannot find the driver. What am I doing wrong? Is there anybody who has had this problem or who can post a compiled driver?
And my last question is
is the driver the same for all these projects? Can I use the driver that can with V-USB for the USB-Servo project?
Thank you for the help,
Error 1 error C2061: syntax error : identifier '__attribute__' "..."/stdint.h 121 usbdrv
for the line of code
typedef int int8_t __attribute__((__mode__(__QI__)));
also when I plugged my USB-Servo circuit into a vista PC it was not visible or recognized at all, whereas on an XP PC it shows up as USB-Servo but it cannot find the driver. What am I doing wrong? Is there anybody who has had this problem or who can post a compiled driver?
And my last question is
is the driver the same for all these projects? Can I use the driver that can with V-USB for the USB-Servo project?
Thank you for the help,