USB missing

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

USB missing

Post by bilal »

Hello all.
I don't know if anyone here has had this problem but I've just put together my usbtiny and plugged it into my mac os x. Then after following the instructions on the miniPOV page for the software :http://www.ladyada.net/make/minipov3/software.html I tried to run this: ls /dev/cu.* in Terminal and nothing is found.

I've already installed the newest AVRdude and replaced the files avrdude and avrdude.config with the ones on the usbtiny page. I tried to just run AVRdude with the name "usbtiny" but it said it doesn't know what that is?

Anyone know the next step?
-Bilal Ghalib

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

the only steps you should follow are 1-7 but if you've done those then you can stop

what precisely did you type to make avrdude run?

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

In term i typed:
avrdude -c usbtiny -p 2313
and i get:
[bilal-ghalibs-computer:~] bilalgha% avrdude -c usbtiny -p 2313

avrdude: Can't find programmer id "usbtiny"

Valid programmers are:
dasa3 = serial port banging, reset=!dtr sck=rts mosi=txd miso=cts [/usr/local/etc/avrdude.conf:576]
.........
-BG

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

are you sure you put avrdude and avrdude.conf in the correct places so that they replace the old versions?

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

I thought so, how can I uninstall it so that I can be sure to replace it.

Don't I just put them in the same folder as the AVRdude folder in the applications folder?

Even though it seems to be run from /usr/local/etc/.

Should I just put it into there? Man, i wish i was more Unix savvy.

-Bilal Ghalib

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

type in "which avrdude" that will tell you where it is installed

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

found it at /usr/local/bin/avrdude

This is going to make me look like an idiot, but I found the file in Unix, and I don't think I replaced that, but how do I replace it... i can't find the same folder in finder, is OS X trying to protect me?

Oh, and wish me a happy birthday, i'm going out to dinner, all the best to you m'dear.

-Click
BG

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

yup its trying to protect you :)
you can copy the file by opening the terminal
if the files are in your home directory
you can type

mv ~/avrdude.conf /usr/local/bin/avrdude

happy birthday!!!!

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

I feel silly, i'm more excited about getting my usbtiny to work than getting older. Hmm, well maybe not //that// silly, but still, all i could think about at Siam Square (good tai resturant in ann arbor) was getting home to fix this and get my modEEG running ; P : )

I'll let you know how it goes, thank you for being so helpful.
_Bilal Ghalib

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

kho dear, i must be messing things up, here's where i'm at

i tried the code you had:
mv ~/avrdude.conf /usr/local/bin/avrdude

but it said it denied my permission, so i sudoed it

and then it was still dead. It said that it had an unrecognized character at line 370 in the avrdude.conf file 'u', i checked it, it's the lowercase u from usbtiny

thinking i must have done something wrong from my last install, i went and reinstalled it:
[bilal-ghalibs-computer:~/downloads/avrdude-5.4] bilalgha% sudo make install
test -z "/usr/local/bin" || /bin/sh ./mkinstalldirs "/usr/local/bin"
/usr/bin/install -c 'avrdude' '/usr/local/bin/avrdude'
Backing up avrdude.conf in /usr/local/etc
test -z "/usr/local/etc" || /bin/sh ./mkinstalldirs "/usr/local/etc"
/usr/bin/install -c -m 644 'avrdude.conf' '/usr/local/etc/avrdude.conf'
test -z "/usr/local/man/man1" || /bin/sh ./mkinstalldirs "/usr/local/man/man1"
/usr/bin/install -c -m 644 './avrdude.1' '/usr/local/man/man1/avrdude.1'
[bilal-ghalibs-computer:~/downloads/avrdude-5.4] bilalgha%

and then i noticed that the avrdude.conf is in /usr/local/etc not in /usr/local/bin so i moved the version with your programmer refrenced in it there

but i still get:
[bilal-ghalibs-computer:~/downloads/avrdude-5.4] bilalgha% sudo pico /usr/local/etc/avrdude.conf
Password:
[bilal-ghalibs-computer:~/downloads/avrdude-5.4] bilalgha% avrdude -c usbtiny -p 2313
error at /usr/local/etc/avrdude.conf:383 unrecognized character: "u"

weird
-bg

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

latest attempt
after another reinstall i moved the files to their respective installation points:
and after a run, i got this error:

[bilal-ghalibs-computer:/usr/local/bin] bilalgha% sudo mv ~/downloads/avrdudeIntelBin/avrdude.conf /usr/local/etc
[bilal-ghalibs-computer:/usr/local/bin] bilalgha% sudo mv ~/downloads/avrdudeIntelBin/avrdude /usr/local/bin
[bilal-ghalibs-computer:/usr/local/bin] bilalgha% avrdude -c usbtiny -p 2313
dyld: Library not loaded: /usr/local/lib/libusb-0.1.4.dylib
Referenced from: /usr/local/bin/avrdude
Reason: image not found
Trace/BPT trap
[bilal-ghalibs-computer:/usr/local/bin] bilalgha%

(am i moving the files right?)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

getting closer!

another fellow had this problem so im curious how it happened

try running
"sudo find / -name libusb\*dylib -print" and paste what it says in response

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

hey, i found somone else with that same problem on these forums. i'm going to try to see if that works
-bg

bilal
 
Posts: 26
Joined: Tue Jul 17, 2007 9:15 am

Post by bilal »

ah, didn't see ya there, oh dear, you a nightcrawler too?
well, i'm trying it and it's basically freezing up my terminal, it's been about 2 mins with no response...
closed term and started it again, same thing
basically it'll now let me type and nothing happens
-bg

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

it will lock up your terminal for maybe 10 or 15 minutes. its searching the harddrive for any files by that name

or alternately you can just install libusb (again):
libusb.sourceforge.net

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”