blog.world3.net

AVR-USB with AVR Studio

I have been experimenting with AVR-USB recently. It has a lot more features than Igor Cesko’s code, but the downside is larger code size and the fact that it’s partly written in C which makes interfacing assembly code a bit trickier. I wanted to use it because it has good native support for HID devices, unlike Igor’s code which I had to implement the HID stuff on top of.

The USBtiny project also looks like it might be a good bet. Although it’s also in C, the layout and interface code is a lot clearer than the AVR-USB ones IMHO. The AVR-USB stuff is more in the style of computer targeted code I think. USBtiny seems more like a microcontroller project. Maybe it’s just the way I think.

Anyway, as for using AVR-USB with AVR Studio, one problem I found was with the supplied makefile. It doesn’t work with AVR Studio directly. I tried to make another one with MFile, but it produced non-working code in every configuration I tried. It sucks that a C project can be broken by the makefile. I think the problem lies somewhere with the way MFile tries to define everything in the makefile, where as most sensible people (including the AVR-USB guys) define it in the code. The makefile should just be instructions for building the output files, not influencing the compiler or defining stuff used in the source code. Anyway, in the end I modified the original makefile to work and producing a working .hex file from it.

I will post the makefile along with the entire project shortly.

This entry was written by mojo, posted on 03/04/2008 at 14:55, filed under microcontrollers. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.
« BT and Phorm secretly tracked 18,000 customers in 2006
Never Mind The Bastards »

Post a Comment

Your email is never shared. Required fields are marked *

*
*

たとえ溺れても梦はゆめでしかない
  •  

    April 2008
    M T W T F S S
    « Mar   May »
     123456
    78910111213
    14151617181920
    21222324252627
    282930  
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Categories

    • audio (1)
    • avr (15)
    • electronics (24)
    • genius (4)
    • hardware (21)
    • idiots (33)
    • Internet (13)
    • law (17)
    • microcontrollers (11)
    • networking (17)
    • politics (27)
    • privacy (18)
    • Retro Adapter (4)
    • security (16)
    • software (27)
    • Uncategorized (16)
    • windows (19)
  • Archives

    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • November 2005
  • Links:

    Main site: world3.net

    Electronics: denki.world3.net

WordPress | Sandbox