Search found 1013 matches

by christian
Sun Jun 07, 2009 8:50 pm
Forum: V-USB
Topic: BootloadHID with AVRDUDE?
Replies: 5
Views: 4441

Re: BootloadHID with AVRDUDE?

If you use avrdude, you should have drivers for USBasp installed. In this case I'd recommend USBaspLoader.
by christian
Sun Jun 07, 2009 8:48 pm
Forum: V-USB
Topic: V-USB Build Error
Replies: 5
Views: 8252

Re: V-USB Build Error

You probably don't link the assembler part. This routine is implemented in assembler.
by christian
Sun Jun 07, 2009 8:48 pm
Forum: V-USB
Topic: [UPDATED] SetFeature problems
Replies: 4
Views: 3904

Re: [UPDATED] SetFeature problems

The rate of calling usbPoll() is not too critical. The 50 ms are required during device enumeration. But once it is initialized, calling it every several 100 ms should suffice to avoid errors. It's not sufficient from a performance point of view, of course. If the device stalls at some point, I woul...
by christian
Sun Jun 07, 2009 8:44 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7037

Re: 15MHz not working with some hubs

This is indeed not sufficiently documented. Since DDR and PORT = 0 is the default after a CPU reset, there is no need to initialize them in usbInit() or usbDeviceDisconnect(). If you have changed these defaults, you must set them back to 0 before calling any USB functions. I have updated the comment...
by christian
Sat Jun 06, 2009 9:28 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7037

Re: 15MHz not working with some hubs

You can try the the very old version on the new chip first. If it does not fix anything, then it's probably not a firmware issue. Regarding pull-ups, zeners and LEDs: 1.5k is probably better, even if you run on 5 V. You need the additional current for the zeners. But if even 1k does not make a diffe...
by christian
Sat Jun 06, 2009 11:35 am
Forum: V-USB
Topic: [SOLVED] Firmware Update through VUSB
Replies: 2
Views: 2762

Re: Firmware Update through VUSB

Please have a look at the boot loaders at

http://www.obdev.at/vusb/prjprog.html

That's exactly what you want.
by christian
Sat Jun 06, 2009 11:32 am
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7037

Re: 15MHz not working with some hubs

If the version of V-USB makes a difference, please try to find the last version which worked and the first which did not. Another comment makes me curious: You say that newer versions don''t fit in 4k: I've taken care that no new release exceeds the code size of the previous release. Are you sure yo...
by christian
Fri Jun 05, 2009 5:44 pm
Forum: V-USB
Topic: 15MHz not working with some hubs
Replies: 10
Views: 7037

Re: 15MHz not working with some hubs

This may also be a voltage level issue. Please check the idle voltage on D-, it should be close to 3.3 V.
by christian
Fri Jun 05, 2009 5:42 pm
Forum: V-USB
Topic: [SOLVED] Problems on ATMEGA32/16MHz
Replies: 2
Views: 2826

Re: Problems on ATMEGA32/16MHz

The problem is not usbPoll(), it's the time spent in other interrupts or while interrupts are disabled. Other interrupts must have a sei as their first instruction (or at least within the fist 5 or 10 instructions) so that USB interrupts are not delayed for longer than a couple of microseconds.
by christian
Fri Jun 05, 2009 5:38 pm
Forum: V-USB
Topic: Downstream USB ports
Replies: 1
Views: 1943

Re: Downstream USB ports

The AVR is roughly 10 times too slow for this. USB hosts must implement Full Speed USB (12 MBit).

Your best option is probably to buy a cheap USB hub, crack the case and build it into your device.
by christian
Fri Jun 05, 2009 5:36 pm
Forum: V-USB
Topic: V-USB with Arduino Duemilanove 328?
Replies: 8
Views: 7582

Re: V-USB with Arduino Duemilanove 328?

The voltage levels should be OK. V-USB in conjunction with Arduino's runtime environment can be a bit problematic because Arduino was not made for real-time systems. The error message you see probably means that USB does not work at all. The first step of initialization, assigning an ID to the devic...
by christian
Fri Jun 05, 2009 5:29 pm
Forum: V-USB
Topic: USBaspLoader for atmega32 ?
Replies: 1
Views: 2085

Re: USBaspLoader for atmega32 ?

You need to change the pins for D+ and D-, possibly the interrupt and the boot loader condition. In the Makefile you need to change the fuse bits and the hexadecimal base address for the boot loader. That should be all.
by christian
Wed May 20, 2009 5:07 pm
Forum: V-USB
Topic: ICSP with ATTINY45 and V-USB
Replies: 2
Views: 3356

Re: ICSP with ATTINY45 and V-USB

mschoeldgen wrote:'Ow, btw is there a dedicated bug report form / forum ? Its no biggie but the Tiny's 25/45/85 really do not work with V-USB if using other ports than PB0 and PB2 , must be some minor thing.


There is NO such known bug. However, if you use an interrupt different from INT0, you need some extra config.
by christian
Mon May 04, 2009 9:34 pm
Forum: V-USB
Topic: handling physical disconnection and reconnection
Replies: 1
Views: 2036

Re: handling physical disconnection and reconnection

You don't need to re-initialize or re-enumerate. The driver handles this automatically. There are two ways to detect disconnect: (1) Add hardware to check for USB power, or (2) Check for USB frame pulses. For (2), see e.g. Henrik's USB2LPT: m Please note that the frame pulses will also go away when ...
by christian
Mon May 04, 2009 9:29 pm
Forum: V-USB
Topic: Atmega8535 OK / Atmega328p FAIL
Replies: 34
Views: 34842

Re: Atmega8535 OK / Atmega328p FAIL

If you can find the difference in the headers and why this causes a problem, please file a bug report for avr-libc!

But before you file a bug report, please make sure it's really a bug in the header, not a missing configuration on your side or something similar.