HID-Mouse compiled in AVR Studio ... very fast

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Talib
Posts: 10
Joined: Fri Oct 22, 2010 12:10 pm

HID-Mouse compiled in AVR Studio ... very fast

Post by Talib » Fri Oct 22, 2010 12:15 pm

Hi

I created a project in AVR Studio and copied the files to the directory and added usbdrv.c and usbdrvasm.S as described in other topics. I also set my frequency in the project settings.

It works, but is much faster than compiled via MingW and the circle is much bigger. Any ideas why?

_frank26080115

Re: HID-Mouse compiled in AVR Studio ... very fast

Post by _frank26080115 » Fri Oct 22, 2010 8:05 pm

How did you get MingW to compile code that works on an AVR???

_frank26080115

Re: HID-Mouse compiled in AVR Studio ... very fast

Post by _frank26080115 » Fri Oct 22, 2010 8:13 pm

I think one possible reason is that the avr-binutil tool chain optimizes differently from the other compiler, resulting in faster code

Talib
Posts: 10
Joined: Fri Oct 22, 2010 12:10 pm

Re: HID-Mouse compiled in AVR Studio ... very fast

Post by Talib » Mon Oct 25, 2010 9:52 am

Hi

I used the steps some steps in the reply of this post: http://forums.obdev.at/viewtopic.php?f=8&t=4749&p=15603&hilit=mingw#p15603

Although I realize now it might not be mingw but the gcc with winavr. All I do is call:

make hex Makefile

from the command line and it compiles a hex file. Clarification would be helpful here.

Post Reply