Search found 3 matches

by baoshi
Tue Aug 12, 2014 5:01 am
Forum: V-USB
Topic: usbFunctionWrite incorrect length, need help
Replies: 5
Views: 7467

Re: usbFunctionWrite incorrect length, need help

Thanks. Found it here.
http://www.aliexpress.com/store/product ... 85134.html

Nowadays these Chinese manufactures really keen on cutting cost. I get a recent Arduino Uno clone only to find they are also using ceramic resonate for the 328p, but when it is to the Atmega8U2, they used a crystal. They seems to know what they are doing :?
by baoshi
Mon Aug 11, 2014 4:57 pm
Forum: V-USB
Topic: usbFunctionWrite incorrect length, need help
Replies: 5
Views: 7467

Re: usbFunctionWrite incorrect length, need help

Totally make sense sir. Yes the board is using a murata 3pin ceramic oscillator. I added CRC code and did DBG1 on every CRC error, it seems communication failure always occurred immediately after CRC error. I'll find another board with crystal and test again. Thanks! Does the 328p board use a crysta...
by baoshi
Mon Aug 11, 2014 4:10 am
Forum: V-USB
Topic: usbFunctionWrite incorrect length, need help
Replies: 5
Views: 7467

usbFunctionWrite incorrect length, need help

Hi, I'm trying V-USB on an ATmega328p board, using INT0 on D- (for USB suspend detection). My project is modified from hid-data example, but I changed HID report size to 18 bytes. I wanted to test USB reliability so in the firmware side I simply copy the SET_REPORT 18 bytes buffer to a static buffer...