Go Down

Topic: mega 2560 R3 - no device present. make: *** [dfu] Error 1 (Read 4606 times) previous topic - next topic

Louis Davis

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

Louis Davis

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.


Apr 09, 2012, 08:46 pm Last Edit: Apr 09, 2012, 09:08 pm by monoaural Reason: 1
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
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


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


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  :(



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...

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131