Search found 1013 matches

by christian
Sun Feb 11, 2007 11:49 pm
Forum: V-USB
Topic: [long] IR mouse problem
Replies: 17
Views: 28889

I'm not sure the code for vector 5 is OK. The SEI as a first instruction is inserted manually ("#APP" and "#NOAPP" framing) and the compiler comments that the function is "naked". That would indicate that no PUSH instructions have been emitted as it would be appropriate...
by christian
Sun Feb 11, 2007 6:29 pm
Forum: V-USB
Topic: Arduino -> USB
Replies: 8
Views: 29592

I would not say that there's no way, but the resulting device would violate the spec. AVR-USB can implement bulk endpoints, but it's not recommended to use them.
by christian
Sun Feb 11, 2007 6:26 pm
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43005

You modified usbcalls.c to use libusb instead of the Windows HID library. While this is the standard approach on Unix, it will probably not work on Windows. It is easy to answer which reference is undefined, the compiler lists all those symbols. And it's also easy to answer where they should be defi...
by christian
Sun Feb 11, 2007 1:18 pm
Forum: V-USB
Topic: [long] IR mouse problem
Replies: 17
Views: 28889

If "__attribute__ ((interrupt))" does not change anything, I'd be suspicious. Try to compile the module with the "-S" option to gcc. this will print the assembler source code. Then look at the code where the sei() instruction is. If it's among the first instructions of the ISR, i...
by christian
Sun Feb 11, 2007 1:12 pm
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43005

OK. This may be a mismatch in the declaration of the HID functions. We have a bit of a hack with these declarations since a header file was missing with my version of MinGW. Your MinGW may have this header and you should use it if it's there. The header file is "hidsdi.h". Simply rename th...
by christian
Sat Feb 10, 2007 12:08 am
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43005

That must have been a misunderstanding. I meant that you should do a "make clean" and then type "make" in the command line. The interesting part is the output of this second command, the "make" without parameters. This is where the errors are printed, after all. I only ...
by christian
Fri Feb 09, 2007 10:44 pm
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43005

Yes, automator.exe is the output. I could probably come up with a list of files, but not with locations because these depend on various user choices.

Please also post the output of "make" after a "make clean". The exact error messages might give me a hint.
by christian
Fri Feb 09, 2007 10:31 pm
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43005

"mingw" is the directory where minGW is installed on my machine. I'm afraid you can't expect ANY makefile to work "out of the box" these days because software versions change so fast and nobody has the time to test with all versions currently in use. Can you please post (or mail ...
by christian
Fri Feb 09, 2007 9:45 pm
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43005

You don't need libusb for this project, but it should not harm either. The undefined symbol means that you are not linking one of the required libraries or that the libraries are not in the appropriate order. In my version of MinGW, HidD_GetHidGuid is contained in libhid.a. This file is at mingw/i38...
by christian
Fri Feb 09, 2007 7:52 pm
Forum: V-USB
Topic: Getting started with AVR-USB
Replies: 37
Views: 43005

You need libusb only if you create a custom class device. If you rely on libusb, you need the runtime library on every machine where the device is connected. And it must be properly installed. You need to read through the docs of libusb to manage all this. If you base your design on a HID class devi...
by christian
Fri Feb 09, 2007 7:47 pm
Forum: V-USB
Topic: USB to RS485
Replies: 3
Views: 11366

I did not find anything dangerous in the circruit diagram at first glance. However, the 2313 is too small for the application. I'd recommend the ATMega8. You can get them for ~ 3 EUR and it's not worth saving here. Are you aware that you also need a driver software on the host side, unless you imple...
by christian
Fri Feb 09, 2007 7:40 pm
Forum: V-USB
Topic: [long] IR mouse problem
Replies: 17
Views: 28889

Putting a sei() into your ISR is too late. You must use __attribute__ ((interrupt)) instead of __attribute__ ((signal)) for your ISR. Don't know how the appropriate macro has been renamed in recent versions of AVR-Libc. Please note that this may cause problems if the interrupt-pending flag must be c...
by christian
Sun Feb 04, 2007 7:52 pm
Forum: V-USB
Topic: Powerswitch Problem
Replies: 5
Views: 9682

If this memory region is already taken, you must choose a different one. The only requirement is that the buffer (which is 22 bytes long) does not cross a 256 byte page boundary. I remember that I have once found a document with a web search which describes how to reserve a memory region for your ow...
by christian
Sun Feb 04, 2007 7:49 pm
Forum: V-USB
Topic: Inexperienced beginner question...
Replies: 3
Views: 8978

You need to flash the firmware into both of them, of course.

You can easily build your own programmer with a couple of wires connected to the parallel port of your PC. Simply do a web search for AVR ISP or something like that.
by christian
Sun Feb 04, 2007 3:08 pm
Forum: V-USB
Topic: Inexperienced beginner question...
Replies: 3
Views: 8978

If you have never done a similar hardware project, you'll have a steep learning curve. The project is not documented to the point where it is fool-proof and the PDF files may even be slightly out of date. The EAGLE files are the definitive reference. It's likely that you will have to modify the circ...