Search found 7 matches
- Thu Oct 29, 2009 7:27 am
- Forum: V-USB
- Topic: How Do You Check CRC16 From Application?
- Replies: 2
- Views: 5458
How Do You Check CRC16 From Application?
Is there an example that shows how to verify CRC16 from uchar usbFunctionWrite( uchar *data, uchar len ) ? What parms do you pass to usbCrc16() and what do you compare? usbdrv.s seems to suggest unsigned crc = usbCrc16(buffer + 1, usbRxLen - 3) but I don't know how this relates to usbFunctionWrite()...
- Wed Oct 28, 2009 4:55 am
- Forum: V-USB
- Topic: May be missing somthing ... 2 bugs in first 10 lines of code
- Replies: 3
- Views: 3552
Re: May be missing somthing ... 2 bugs in first 10 lines of code
Yes, that exactly what I did to test the crystals. Now that I have some experience with V-USB I also have more confidence using your software. It was probably a setup issue. I suspect I had the 1.5K on D+. The 2313 is useless for me anyways because of the limited available memory. Thank you for resp...
- Tue Oct 20, 2009 11:58 pm
- Forum: V-USB
- Topic: Problem compiling examples with Visual Studio 2008
- Replies: 22
- Views: 22422
Re: Problem compiling examples with Visual Studio 2008
I changed the hid-data example into a DLL so I can call open, close, setReport, getReport from C#. Works fine. I just used the descriptor in the example "as is" so my payload is 128 bytes. I've been told that the low level USB transfers are only 8 bytes. Does anyone know if this is true? /RJ
- Wed Oct 14, 2009 11:23 pm
- Forum: V-USB
- Topic: Problem compiling examples with Visual Studio 2008
- Replies: 22
- Views: 22422
Re: Problem compiling examples with Visual Studio 2008
The hid-data command line compiles for me. I have "C:\Program Files\LibUSB-Win32", and "C:\MingW" installed. Both have usb libraries and header files so I'm not certain which is being picked up from the make file. Using MingW gcc .... not Visual Studio to compile. Makefile: # Use...
- Thu Oct 08, 2009 11:25 pm
- Forum: V-USB
- Topic: Thank you Christian Starkjohann
- Replies: 0
- Views: 4512
Thank you Christian Starkjohann
Well, after playing with V-USB for a week I got an ATTiny up and running using the internal PLL. This would have been unthinkable without the protocol stack and resources on this site. All difficulties were self inflicted. The V-USB stack is a great piece of software and I am grateful that you decid...
- Wed Oct 07, 2009 1:05 am
- Forum: V-USB
- Topic: May be missing somthing ... 2 bugs in first 10 lines of code
- Replies: 3
- Views: 3552
Re: May be missing somthing ... 2 bugs in first 10 lines of code
Wow. Got the Tiny45 to enumerate right away using internal PLL oscillator at 16.5MHz. What a pleasant experience compared to the Tiny2313 at 16MHz. I'll program the other 10 Tiny45 chips to see if they respond in the same way. Fingers crossed. I got an AVRISP mkII to calibrate the Tiny45 internal os...
- Tue Oct 06, 2009 7:23 am
- Forum: V-USB
- Topic: May be missing somthing ... 2 bugs in first 10 lines of code
- Replies: 3
- Views: 3552
May be missing somthing ... 2 bugs in first 10 lines of code
I'm trying to get hid-data example to work on tiny2313. I only had a 16M crystal and have been fighting for a few days trying to get this to work. No joy yet. Found a couple of very minor bugs ... I think: int main(void) { uchar i; wdt_enable(WDTO_1S); DBG1(0x00, 0, 0); /* debug output: main starts ...