Search found 1013 matches

by christian
Mon Mar 17, 2008 12:03 pm
Forum: V-USB
Topic: odd behavior of AVR-Doper
Replies: 27
Views: 19212

You're right, that would not explain why it does not enumerate without the jumper. That's really strange, because the firmware has no mode where USB is not operational. I would therefore suspect that this is a hardware problem, e.g. not connected supply or GND for the 74HC126 or the AVR or something...
by christian
Mon Mar 17, 2008 10:38 am
Forum: V-USB
Topic: First key is not sent (hid keyboard)
Replies: 11
Views: 15359

For a keyboard, you can ignore USBRQ_HID_GET_REPORT.
by christian
Mon Mar 17, 2008 10:33 am
Forum: V-USB
Topic: Means for updating firmware over USB, like DFU?
Replies: 3
Views: 4042

The boot loader is a firmware resident in the AVR, together with your application. Not a separate device. The boot loader is in the upper most 2k of flash memory, the rest is available for your application.
by christian
Mon Mar 17, 2008 12:28 am
Forum: V-USB
Topic: Means for updating firmware over USB, like DFU?
Replies: 3
Views: 4042

You want a boot loader. See http://www.obdev.at/products/avrusb/prjprog.html for examples.
by christian
Mon Mar 17, 2008 12:13 am
Forum: V-USB
Topic: odd behavior of AVR-Doper
Replies: 27
Views: 19212

Is it possible that you used a 74LS instead of the HC type? HID mode is detected by using the AVR's internal pull-up and see whether we get high or low level. This works only if the load (the 74HC chip) has a high input impedance.
by christian
Mon Mar 17, 2008 12:10 am
Forum: V-USB
Topic: Oscillator capacitor values
Replies: 2
Views: 3773

There's no particular reason for these values. This are the values I have on stock. Since I never had a problem with a wide range of capacitor values, I just use these.
by christian
Sun Mar 16, 2008 11:58 pm
Forum: V-USB
Topic: First key is not sent (hid keyboard)
Replies: 11
Views: 15359

Try defining USB_INITIAL_DATATOKEN to USBPID_DATA1 in usbconfig.h. I have to verify this yet, but some people say that this is the correct start condition.

And no, there's no other way to send a key twice, as far as I know. I do the same in EasyLogger.
by christian
Sun Mar 16, 2008 11:29 pm
Forum: V-USB
Topic: AVR_USB timing out?
Replies: 18
Views: 36548

What zener diodes did you use? Low power 3.6 V types should give enough voltage with the pull-up resistor on D- so that the device is detected. If you go below the threshold of I think 1.7 V, the host may not detect the device or see a disconnect every now and then. Another possibility is the capaci...
by christian
Sun Mar 16, 2008 11:27 pm
Forum: V-USB
Topic: occasional transmission errors with 16.5MHz RC oscillator
Replies: 17
Views: 16535

If you use interrupts in your main code, enclose the call to calibrateOscillator() in cli() and sei(). Since timing is measured by counting CPU cycles, no interrupts may occur.
by christian
Sat Mar 15, 2008 1:47 pm
Forum: V-USB
Topic: AVR_USB timing out?
Replies: 18
Views: 36548

If your firmware restarts at main(), you must have some kind of reset. This can be a brownout-reset, a watchdog reset or a spike on the supply line or RESET line which causes a hardware reset. If the device goes through a reset, it starts with USB address 0. The host must start an enumeration in ord...
by christian
Thu Mar 13, 2008 10:26 pm
Forum: V-USB
Topic: USB on Mega664 not working
Replies: 5
Views: 6450

Some of the AVRs have a diagram in the datasheet: supply voltage vs. maximum clock frequency. This shows a linear dependency of max clock vs. supply voltage.
by christian
Thu Mar 13, 2008 10:09 pm
Forum: V-USB
Topic: USBaspLoader filesize
Replies: 2
Views: 3977

The original was compiled with avr-gcc 3.4.6 on a Mac. Gcc 3 produces more efficient code in most cases.

You can turn off options in the configuration to shrink it down so that it fits into 2048 bytes. EEPROM access is usually not required.
by christian
Thu Mar 13, 2008 10:06 pm
Forum: V-USB
Topic: USB on Mega664 not working
Replies: 5
Views: 6450

The debug log shows that the driver sees one (or multiple) USB RESET(s), but no data received. This probably means that the interrupt routine is not called, otherwise we would at least see a received packet. If you got it working on one PC but not on the other, it's very likely a voltage level probl...
by christian
Tue Mar 11, 2008 7:12 pm
Forum: V-USB
Topic: AVR_USB timing out?
Replies: 18
Views: 36548

Brownout means that the supply voltage is close to the minimum operating voltage of the device. I doubt this. The long delay at the beginning of main() has nothing to do with brownout, it is there to ensure that the host sees a device reconnect at every reset so that enumeration is started. This aff...
by christian
Tue Mar 11, 2008 11:09 am
Forum: V-USB
Topic: AVR_USB timing out?
Replies: 18
Views: 36548

If you get a timeout, this probably means that USB communication is unreliable (too many retries). This may happen if the USB interrupt is serviced too late, e.g. because you have another interrupt which has to finish before the USB interrupt routine can run. Please make sure that all other interrup...