Society of Robots - Robot Forum

Software => Software => Topic started by: emoseman on August 03, 2009, 09:19:27 PM

Title: Mac + Axon + USB + avrdude
Post by: emoseman on August 03, 2009, 09:19:27 PM
I just got my Axon and am excited to get started, but I am running a Mac and don't have access to windows machines or software.  I'm wondering if there is any way to get avrdude to work.  I've been looking at the source, more specifically the usbasp and usbtiny programmers and they actually look straight-forward enough that if I had the right information I could hack together something that would work.  I'm trying to find the Axon's USB vendor and product id number, is that available?

Thanks!

--
Evan
Title: Re: Mac + Axon + USB + avrdude
Post by: emoseman on August 04, 2009, 10:40:07 AM
Hi, I just received my Axon board and am a Mac user/developer and I don't have access to a PC to run the WinAvr application.  So, I'm trying to see if it is possible to write a programmer for the avrdude application so that I can program my Axon directly from the Mac command line or XCode as it were.  There is already sample code available in the avrdude source repository for the tinyUsb and USBasp programmers, so I have a lot of sample code to use if I could find out the vendor and product id for the usb interface on the Axon board.

Are there USB drivers required for the Axon board to connect to the WinAvr application?  I remember seeing posts related the windows drivers, I'm wondering if a) they are needed and b) if they are open-source so that I may apply that code to a Mac version.

Thanks for any info!

--
Evan
Title: Re: Mac + Axon + USB + avrdude
Post by: Admin on August 04, 2009, 07:12:50 PM
All the USB information can be found here:
https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx


This might be helpful:
http://www.societyofrobots.com/robotforum/index.php?topic=5162.0
http://avrdude.darwinports.com/
Title: Re: Mac + Axon + USB + avrdude
Post by: emoseman on August 05, 2009, 01:16:54 PM
Thanks for the info!

I ran across a Mac OS X driver for the USB->UART cp2102 chip so I'm going to try that when I get home tonight.  I have avrdude source, and it compiled and working.  I have also found a post here that looks promising:

http://tinkerlog.com/2007/09/29/programming-avr-with-a-macbook/

I'll give that a shot and hopefully I'll be programming my Axon tonight!

--
Evan
Title: Re: Mac + Axon + USB + avrdude
Post by: emoseman on August 05, 2009, 07:06:27 PM
I downloaded and installed the drive and it is at least creating the new device file in /dev when the board is plugged in. 

My next question is: is there a compatible programmer that already exists for the avrdude program that would be compatible?

--
Evan
Title: Re: Mac + Axon + USB + avrdude
Post by: Admin on August 06, 2009, 06:41:27 AM
This should help you:
http://www.ladyada.net/make/usbtinyisp/avrdude.html

At the bottom is more info for Macs, too. And Linux!