Search found 1013 matches

by christian
Sat Nov 29, 2008 11:08 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19022

You can disable some functionality in hardware.h, just look at the first few defines.

The STK500v2 firmware version can be configured in stk500protocol.c, see defines for STK_VERSION_MAJOR and STK_VERSION_MINOR.
by christian
Thu Nov 27, 2008 8:26 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19022

As far as I know, the green LED is not actually used by USBasp either. Since AVR-Doper does not have a status to display with this LED, we just leave it unconfigured.
by christian
Thu Nov 27, 2008 12:47 pm
Forum: V-USB
Topic: Atmega8 works, Atmega48/88 don't
Replies: 4
Views: 5367

Are you aware that you can't use the same hex file for ATMega8 and 48/88/168? You must specify the correct device in the compiler command line.
by christian
Thu Nov 27, 2008 12:10 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19022

Thanks for the info about Timer 1 and the jumper! I have made a new release which fixes these issues. Please let me know how it works! Regarding RxD and TxD: These pins are swapped because they name the function on the target, not the programmer. RxD must be connected to TxD and vice versa. Since UA...
by christian
Wed Nov 19, 2008 10:29 pm
Forum: V-USB
Topic: AVR-USB hangs when using usbSetInterrupt(0, 0)
Replies: 4
Views: 5052

OK, you're right. My comment about passing zero length messages is wrong, this is explicitly handled in the driver.

However, a zero sized message may not be handled correctly by the host. This is actually a bug in the RemoteSensor example. You should send at least one dummy byte.
by christian
Wed Nov 19, 2008 10:09 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19022

Sorry, I don't have a real USBasp board for testing, only something very similar. So I can't test all details.

Anybody out there who can comment or who has even found a bug?
by christian
Wed Nov 19, 2008 10:07 pm
Forum: V-USB
Topic: AVR-USB hangs when using usbSetInterrupt(0, 0)
Replies: 4
Views: 5052

usbSetInterrupt() requires a pointer as the first argument and a byte count (greater than zero!) as the second. Anything else may result in corruption of the internal data structures.
by christian
Sun Nov 16, 2008 10:55 pm
Forum: V-USB
Topic: About RC12.8MHz.
Replies: 12
Views: 12753

You can't use osccal.c anyway, because to code is too big for the ATTiny2313. The 12.8 MHz module is not suitable for the ATTiny2313.
by christian
Fri Nov 14, 2008 5:06 pm
Forum: V-USB
Topic: 12.8mhz usbasploader
Replies: 5
Views: 5663

Which size is this? The size of RAM plus FLASH, or the flash only? You get the flash size with avr-size main.hex With a minimum boot loader condition and BOOTLOADER_CAN_EXIT defined to 1 I get 2012 bytes for an ATMega8 with 12.8 MHz RC, including the following clock adjustment code in usbconfig.h: m...
by christian
Fri Nov 14, 2008 5:01 pm
Forum: V-USB
Topic: Two HID devices with different names on one AVR
Replies: 6
Views: 6581

String descriptors and the device descriptor (which contains the PID) are unique for the device, not a particular endpoint. They are always queried through endpoint 0. It won't help you to implement a second endpoint. Even a composite device has only one name. It's only one device (although composit...
by christian
Fri Nov 14, 2008 12:43 pm
Forum: V-USB
Topic: Advantages of Interrupt-In vs polling via Control-Transfers?
Replies: 4
Views: 5321

I don't know. At least for bulk endpoints, it's done by the controller hardware. The polling is so fast that it would block the CPU otherwise. Interrupt endpoints might be implemented in the kernel driver's timer interrupt. This is still VERY efficient, compared to polling from user space.
by christian
Wed Nov 12, 2008 3:50 pm
Forum: V-USB
Topic: Makefile how to create the .eep file
Replies: 3
Views: 3777

As far as I know, this is done with avr-objcopy. Don't know the section name to extract, but I'm sure you can find it with a web search.
by christian
Wed Nov 12, 2008 3:47 pm
Forum: V-USB
Topic: AVR Doper
Replies: 34
Views: 47063

This must be a problem with the programming algorithm. I don't have a mega16 for testing, though. Has anybody else seen this problem?
by christian
Wed Nov 12, 2008 3:44 pm
Forum: V-USB
Topic: Advantages of Interrupt-In vs polling via Control-Transfers?
Replies: 4
Views: 5321

The interrupt-in blocks until the device sends interrupt data. This is an advantage for the host side software because no CPU time is used for polling.
by christian
Wed Nov 12, 2008 3:43 pm
Forum: V-USB
Topic: Error in M16 & HVSP
Replies: 1
Views: 2250

No. These devices require High Voltage Parallel Programming or ISP.