Pages: 1 [2]   Go Down
Author Topic: mega 2560 R3 - no device present. make: *** [dfu] Error 1  (Read 4138 times)
0 Members and 1 Guest are viewing this topic.
Austin, TX
Offline Offline
God Member
*****
Karma: 12
Posts: 524
carpe diem
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am running out of ideas. Hopefully someone else on the forum and figure out the dependency issue.
Logged

Austin, TX
Offline Offline
God Member
*****
Karma: 12
Posts: 524
carpe diem
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You may need to create a symbolic link to your location of the libusb library.

You will need to find the location of your libusb library and then create a symbolic link from there to /usr/local/lib/libusb-1.0.0.dylib

I think MacPorts puts it's packages in this location: /opt/local

So if you want to create a symbolic link from /opt/local/lib/libusb-1.0.0.dylib to /usr/local/lib/libusb-1.0.0.dylib

sudo ln -s /opt/local/lib/libusb-1.0.0.dylib /usr/local/lib/libusb-1.0.0.dylib

Now try to execute the ./dfu-programmer command and hopefully it will be able to find the libusb library.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

man, your help is really highly appreciated, but i think i loose now the overview over everything.

your last post did help:

doing this

sudo ln -s /opt/local/lib/libusb-1.0.0.dylib /usr/local/lib/libusb-1.0.0.dylib

Claudio-Battistas-MacBook-Pro:chronome claudiobattista$ sudo ./dfu-programmer atmega16u2 erase
Claudio-Battistas-MacBook-Pro:chronome claudiobattista$ sudo ./dfu-programmer atmega16u2 flash Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex
Validating...
4034 bytes used (32.83%)
Claudio-Battistas-MacBook-Pro:chronome claudiobattista$ sudo ./dfu-programmer atmega16u2 reset

i can see the arduino in my system profiler now.


but from this point on i am lost in space...

this are my next steps but problems again.aaaaaaaarghhhhhh

http://flipmu.com/work/chronome/chronome-serialosc/

again this "cannot run C compiled programs." error

Claudio-Battistas-MacBook-Pro:arduino-usbserial claudiobattista$ cd ~/Downloads/confuse-2.7/
Claudio-Battistas-MacBook-Pro:confuse-2.7 claudiobattista$ ./configure
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... support/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/claudiobattista/Downloads/confuse-2.7':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Claudio-Battistas-MacBook-Pro:confuse-2.7 claudiobattista$

so mainly what i don´t understand is,

1. why am i not able to run C compiled programms

and

2. why is terminal still telling me this, when doing: sudo make dfu ? why at90usb82 ?????

Claudio-Battistas-MacBook-Pro:arduino-usbserial claudiobattista$ sudo make dfu
dfu-programmer at90usb82 erase
dfu-programmer: no device present.
make: *** [dfu] Error 1



WTF  smiley-sad


* arduino.tiff (29.53 KB, 361x133 - viewed 28 times.)
« Last Edit: April 09, 2012, 02:08:46 pm by monoaural » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

allrighty.

works like a charm now.

the problem was some funny issue with the root permission which didn´t let me do some commands in the terminal...

thanks to everybody...
Logged

Pages: 1 [2]   Go Up
Jump to: