Page 1 of 1

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

Posted: Fri Oct 22, 2010 12:15 pm
by Talib
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?

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

Posted: Fri Oct 22, 2010 8:05 pm
by _frank26080115
How did you get MingW to compile code that works on an AVR???

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

Posted: Fri Oct 22, 2010 8:13 pm
by _frank26080115
I think one possible reason is that the avr-binutil tool chain optimizes differently from the other compiler, resulting in faster code

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

Posted: Mon Oct 25, 2010 9:52 am
by Talib
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.