Search found 1013 matches

by christian
Mon Jul 14, 2008 12:38 pm
Forum: V-USB
Topic: AVR USB command-line error
Replies: 8
Views: 9956

Thanks a lot for this suggestion! Seems logical and should solve the problem in a much more elegant way!

I'll include this in the next release!
by christian
Wed Jul 09, 2008 12:55 pm
Forum: V-USB
Topic: AVR USB command-line error
Replies: 8
Views: 9956

Do this after opening the device in your host side software's main.
by christian
Mon Jul 07, 2008 5:28 pm
Forum: V-USB
Topic: AVRUSBBoot and Mac Os X
Replies: 2
Views: 3899

When you use the original firmware, did you realize that you must prepare the device with a hardware reset in order to activate the boot loader? And the boot loader exits after each connection by avrdude.

Other than that: Did you check with USB Prober that the USB IDs are those expected by avrdude?
by christian
Mon Jul 07, 2008 5:26 pm
Forum: V-USB
Topic: OS detection
Replies: 1
Views: 2954

As far as I know, there is no reliable way. You can probably recognize the OS by the initialization sequence and timing, but that may (and does) change from version to version.

The host software should know on what OS it runs and can communicate it to the device.
by christian
Mon Jul 07, 2008 5:24 pm
Forum: V-USB
Topic: implementing a USB UART device with AVR USB
Replies: 5
Views: 6608

If you use interrupts for the UART, you must declare them so that the USB interrupt can interrupt the UART interrupt.
by christian
Mon Jun 23, 2008 6:02 pm
Forum: V-USB
Topic: About the relation between "attiny2313" and "
Replies: 1
Views: 2985

This is an example circuit only. You can use the firmware from the "examples" directory of the latest driver if you modify usbconfig.h to reflect the circuit's pin assignment. You also need to modify Makefile and change the device type to attiny2313.
by christian
Sun Jun 15, 2008 8:15 pm
Forum: V-USB
Topic: implementing a USB UART device with AVR USB
Replies: 5
Views: 6608

I want to add a note: Projects based on AVR-CDC don't work on all operating systems and they may fail on some hosts. If you want a device which you can sell to others, please find a different solution. If you want something which works for you, then just build it.
by christian
Sun Jun 15, 2008 8:12 pm
Forum: V-USB
Topic: avrdoper
Replies: 5
Views: 5534

You can't use AVR-Doper in parallel programming (PP) mode. This is not (yet) implemented. You need AVRminiProg for that. AVR-Doper implements HVSP and ISP only.

For HID mode, please use "-P avrdoper" instead of "-P usb".
by christian
Sun Jun 15, 2008 8:06 pm
Forum: V-USB
Topic: ppp
Replies: 5
Views: 6116

You need to write a driver on the device side which makes the EEPROM available to the host. See the Automator project for an example how this can be done.
by christian
Tue Jun 10, 2008 8:33 pm
Forum: V-USB
Topic: Pls help me to compile avrusb using IAR cc
Replies: 2
Views: 8401

I remember to have seen this type of error, but I can't remember what caused it. Try to remove the code in step (4) instead of commenting it out.
by christian
Tue Jun 10, 2008 8:31 pm
Forum: V-USB
Topic: ppp
Replies: 5
Views: 6116

For access to the EEPROM, see the header avr/eeprom.h in avr-libc. Use e.g. eeprom_write_byte() and eeprom_read_byte().
by christian
Tue Jun 10, 2008 8:28 pm
Forum: V-USB
Topic: Possible error in Stk500protocol
Replies: 4
Views: 4563

OK, I finally had the time to try this myself. It works well with my computer (a Macbook Pro) and as you reported, it depends on the AVR's clock rate. The problem is therefore very likely not an implementation bug in AVR-Doper, but the well known reliability problem of CDC mode. It's still not known...
by christian
Thu Jun 05, 2008 6:48 pm
Forum: V-USB
Topic: BootloadHID questions
Replies: 4
Views: 5365

Re (1): I have seen no chip which fails at 3.3 V, although it's outside the spec. Even the 10 MHz devices work. So I assume that it's safe. USB devices and hosts can't be damaged with 5 V levels, the spec demands that. However, some hosts simply don't work with 5 V on D+ and D-. Re (2): In principle...
by christian
Thu Jun 05, 2008 6:42 pm
Forum: V-USB
Topic: working nicely on my laptop, but fail on my PC?
Replies: 32
Views: 34663

Thanks for the code!

And yes, a similar error can occur when sending data to the PC. This can only be corrected if we mark the transmit buffer as available only after an ACK is received.
by christian
Tue Jun 03, 2008 8:21 pm
Forum: V-USB
Topic: working nicely on my laptop, but fail on my PC?
Replies: 32
Views: 34663

Thanks a lot for this capture! We are lucky and it contains the point of error! It seems it's a bug / transmission error on the host side. The LA capture clearly shows that we send an ACK and the host does not react to it. That's what data toggling is good for, after all. Here's the decoded capture....