Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => AVRDude => Topic started by: ipatka on April 30, 2013, 08:14:22 pm

Title: Getting Mac to connect to bus pirate
Post by: ipatka on April 30, 2013, 08:14:22 pm
I am having trouble establishing a connection between my Mac and my Bus Pirate V3. I believe I installed all of the necessary programs but when I try to test the connection with

avrdude –c buspirate –P /dev/buspirate –p atmega328P

I get an error of:

avrdude: ser_open(): can't open device "/dev/buspirate": No such file or directory

/dev/buspirate is the standard location for the bus pirate but maybe I need to assign a different location. Any ideas?

I also get this same error when I try connecting to the bus pirate with my linux virtual machine.
Title: Re: Getting Mac to connect to bus pirate
Post by: sqkybeaver on April 30, 2013, 08:34:50 pm
try "/dev/ttyUSBx" replace x with the correct number

you may have to use "dmesg | grep tty" to list the current devices connected
Title: Re: Getting Mac to connect to bus pirate
Post by: ipatka on May 01, 2013, 02:54:53 am
dmesg | grep tty is not returning anything. I went into /dev and listed everything in there. I tried going through some of the ports listed but couldn't get a connection with any of them.
Title: Re: Getting Mac to connect to bus pirate
Post by: sqkybeaver on May 01, 2013, 04:18:00 am
dmesg needs root access, try using sudo

"sudo dmesg | grep tty"

you should se some output like this:

"usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0"   

this would be /dev/ttyUSB0
Title: Re: Getting Mac to connect to bus pirate
Post by: ipatka on May 01, 2013, 04:29:34 am
I was using sudo, but still was getting no result
Title: Re: Getting Mac to connect to bus pirate
Post by: sqkybeaver on May 01, 2013, 02:38:19 pm
you may need the VCP drivers from ftdi if not already installed.

http://www.ftdichip.com/Drivers/VCP.htm (http://www.ftdichip.com/Drivers/VCP.htm)
Title: Re: Getting Mac to connect to bus pirate
Post by: ipatka on May 01, 2013, 03:28:00 pm
I just reinstalled those drivers and looked through my /dev directory. I found a tty called tty.usbserial-PirateV3. Using that I can connect to the bus pirate but it insists my connections to the atmega are wrong. I'll double check these but could there be a different problem causing the error:
avrdude: initialization failed, rc=-2
        Double check connections and try again, or use -F to override
        this check.

?
Title: Re: Getting Mac to connect to bus pirate
Post by: sqkybeaver on May 01, 2013, 04:50:05 pm
good to see it is working now, I forgot some of the ftdi chips have a DP pid, mine does not

i'm not too familiar with avrdude or avr in general, but make sure it is not held in reset, and make sure the vpu on buspirate is pulled to proper voltage.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01002073704session_write_close ( )...(null):0
20.01032205296ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01032206072Database_MySQL->query( ).../DatabaseHandler.php:119
40.05312344808Database_MySQL->error( ).../Db-mysql.class.php:273