Search found 1013 matches

by christian
Wed May 14, 2008 6:25 pm
Forum: V-USB
Topic: working nicely on my laptop, but fail on my PC?
Replies: 32
Views: 34663

2k may be tight, but if it does not waste memory, it might suffice.
by christian
Mon May 12, 2008 10:34 am
Forum: V-USB
Topic: bootloadHID - timing - program optimisation
Replies: 3
Views: 4481

I have not seen a single upgrade on Windows (or any other major OS) where the memory consumption was actually decreased I think the delay in bootLoaderInit() is not absolutely required, it should work without it. And as a bonus, the next driver release will even have a couple of bytes less when comp...
by christian
Sat May 10, 2008 6:16 pm
Forum: V-USB
Topic: PowerSwitch on atmega16
Replies: 3
Views: 4857

Clock settings are done by setting fuse values. And it's impossible to change fuse values from within the firmware. Maybe the chip is blown, not bricked (and not stoned...). I therefore suspect a severe hardware problem. Oscillator calibration is only required if you run from the RC oscillator, not ...
by christian
Fri May 09, 2008 8:13 pm
Forum: V-USB
Topic: Using an Obdev AVR-USB device with Labview
Replies: 7
Views: 11064

You can implement a virtual COM port, but you need your own drivers on the Windows side. The big advantage of CDC mode is that drivers are already included with Windows. An example for an application layer driver based on libusb-win32 can be found in AVR-Doper. The "avrdebug" tool sends to...
by christian
Fri May 09, 2008 11:06 am
Forum: V-USB
Topic: MAIN.HEX COMPILE ERROR??
Replies: 3
Views: 5552

You can also simply delete the call to the checksize script.

The fuse values depend on the chip you use. See the examples in the latest version of the driver (http://www.obdev.at/products/avrusb/download.html) for example values and more info. The fuse values can be found in the Makefile.
by christian
Fri May 09, 2008 11:04 am
Forum: V-USB
Topic: PowerSwitch on atmega16
Replies: 3
Views: 4857

PowerSwitch is a custom class device. You should get a "new hardware found" dialog on Windows. Please download the newest version of the driver from m. It contains some examples which are less complex than PowerSwitch and they should run on almost any AVR with only very little changes. Wha...
by christian
Fri May 09, 2008 10:57 am
Forum: V-USB
Topic: AVR MacPack and AVRISP and STK500 v2
Replies: 1
Views: 3528

You need to set the programmer type for avrdude with the "-c" option. Try

Code: Select all

avrdude -c help


for a list of programmers. It's probably avrisp2 or avrisp.
by christian
Thu May 08, 2008 11:04 am
Forum: V-USB
Topic: not sure if 1 atmega is enough
Replies: 2
Views: 3565

If you really want a USB device (not a host), then this should be possible. You MUST make sure that interrupts are never disabled for longer than a couple of CPU instructions. This means that your SPI interrupt routine must re-enable all interrupts (sei instruction) before doing anything else, even ...
by christian
Thu May 08, 2008 10:57 am
Forum: V-USB
Topic: bootloadHID - timing - program optimisation
Replies: 3
Views: 4481

Use _delay_ms() from util/delay.h as in the latest examples included in the new avr-usb driver package. If it does not fit into 2k, upgrade to the latest driver, this version should save enough bytes so that it fits. If it still does not fit, consider using gcc 3 instead of gcc 4, it compiles smalle...
by christian
Thu May 08, 2008 10:55 am
Forum: V-USB
Topic: Can't send data to device
Replies: 2
Views: 4096

In usbFunctionSetup(), you receive the setup command, not the data sent to the device. You must implement usbFunctionWrite() to receive the data part. See the Automator example for how this is done in a HID compliant way.
by christian
Mon May 05, 2008 9:20 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19025

The source can be compiled for the Mega8 as well, just change the target device and (optionally) the clock rate in Makefile.
by christian
Mon May 05, 2008 8:45 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19025

You can test your hardware and fuse values with Thomas Fischl's original firmware. If that works, the hardware is OK. I know that I claimed support for USBasp hardware. This is reasonable since there are only very little changes with respect to metaboard. But it's still possible to make errors, even...
by christian
Mon May 05, 2008 1:02 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19025

Sorry, I think I misunderstood your original posting: You're trying to run the AVR-Doper firmware on USBasp hardware and it does not work, right? In this case you don't need libusb-win32, of course. I must admit that I have not tested AVR-Doper on USBasp hardware because I don't have one available, ...
by christian
Sun May 04, 2008 10:23 pm
Forum: V-USB
Topic: Atmega128 restarts
Replies: 1
Views: 3415

Have you enabled the watchdog? Please note that newer devices don't reset the watchdog during a CPU reset. Once it is enabled, it stays enabled until explicitly disabled. usbInit() can't crash, it just initializes some registers. Maybe sei() causes the crash, an interrupt may be enabled which has no...
by christian
Sun May 04, 2008 10:13 pm
Forum: V-USB
Topic: making USBasp hardware with AVR-Doper 2008-04-27 firmware
Replies: 18
Views: 19025

You need avrdude and libusb-win32 for USBasp. Have you installed libusb-win32?