Crosspack, xcode, v-usb

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
wireframewolf
Posts: 6
Joined: Tue Apr 27, 2010 11:42 pm

Crosspack, xcode, v-usb

Post by wireframewolf » Tue Apr 27, 2010 11:51 pm

Hey all. I'm working on my first project, and I need a little help getting the usb driver to work with my code.

I'm using Obdev's Crosspack to create an avr project in xcode. This is all well and good if the only file in my project is main.c, but since the makefile appears to control all the compiling, adding other files through xcode only causes compiling to fail. I guess I have to edit the makefile, but I don't really know much about makefiles. The whole purpose of using an IDE, to me, is to avoid that sort of thing.

Now I'm sure there's someone else out there doing a usb project and using crosspack and xcode, so I was wondering if someone could post what their makefile looks like so that I can use it as kind of a template. Your help is appreciated!

Edit: Oh duh, all the examples include make files that I can look at. Never mind @.@

ruediheimlicher
Posts: 1
Joined: Tue Apr 10, 2007 8:20 am

Re: Crosspack, xcode, v-usb

Post by ruediheimlicher » Thu May 27, 2010 10:39 am

Hi
I am using Crosspack with Xcode with a template from Nick Lott. I replaced the makefile with one from Eric B. Weddington, Joerg Wunsch, et al. which deals with all files in the project. I had to replace the PATH in the targets with '$(PATH):/usr/local/CrossPack-AVR/bin'.
the type of programmer must be specified on line 200 in the makefile.
You can download my version of the template from
http://www.ruediheimlicher.ch/AVR/AVR.php

On the site
http://homepage.mac.com/chen/w7ay/Site/index.html
you can find a AVR-Tool under 'Applications' and other helpful things tio work with the mac

I am using a Programmer from tuxgraphics. It works very well with my Mac (10.6.2) and the projects from the template.
http://tuxgraphics.org

Older way to create a template
http://www.artificialstudios.org/alessandro.reina/stuff/xcode_template.pdf

pieter
Posts: 3
Joined: Sat Jul 17, 2010 2:49 pm

Re: Crosspack, xcode, v-usb

Post by pieter » Sat Jul 17, 2010 7:33 pm

Solved by ls -l /usr/local/CrossPack=AVR-20100115/etc/options | tail -c -3

Post Reply