Go Down

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

monoaural

#10
Apr 07, 2012, 04:39 pm Last Edit: Apr 07, 2012, 05:25 pm by monoaural Reason: 1
did so.

get this error

Last login: Sat Apr  7 16:35:57 on ttys005
Claudio-Battistas-MacBook-Pro:~ claudiobattista$ cd chronome_v2
Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$ sudo ./dfu-programmer atmega16u2 erase
sudo: ./dfu-programmer: command not found
Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$

attached a picture of the folder where i put the files....

when typing

sudo dfu-programmer atmega16u2 erase (without ./   -- i have no clou what meany by the way) i get this

seems like 16u2 is not in the targe list?!?!?


Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$ sudo dfu-programmer atmega16u2 erase
dfu-programmer 0.5.4
Usage: dfu-programmer target command [command-options] [global-options] [file|data]
targets:
        at89c51snd1c
        at89c51snd2c
        at89c5130
        at89c5131
        at89c5132
        at90usb1287
        at90usb1286
        at90usb1287-4k
        at90usb1286-4k
        at90usb647
        at90usb646
        at90usb162
        at90usb82
        atmega32u6
        atmega32u4
        atmega32u2
        atmega16u4
        atmega8u2
        at32uc3a0128
        at32uc3a1128
        at32uc3a0256
        at32uc3a1256
        at32uc3a0512
        at32uc3a1512
        at32uc3a0512es
        at32uc3a1512es
        at32uc3a364
        at32uc3a364s
        at32uc3a3128
        at32uc3a3128s
        at32uc3a3256
        at32uc3a3256s
        at32uc3b064
        at32uc3b164
        at32uc3b0128
        at32uc3b1128
        at32uc3b0256
        at32uc3b1256
        at32uc3b0256es
        at32uc3b1256es
        at32uc3b0512
        at32uc3b1512
        at32uc3c064
        at32uc3c0128
        at32uc3c0256
        at32uc3c0512
        at32uc3c164
        at32uc3c1128
        at32uc3c1256
        at32uc3c1512
        at32uc3c264
        at32uc3c2128
        at32uc3c2256
        at32uc3c2512
global-options: --quiet, --debug level
commands:
        configure {BSB|SBV|SSB|EB|HSB} [--suppress-validation] [global-options] data
        dump [global-options]
        dump-eeprom [global-options]
        dump-user [global-options]
        erase [--suppress-validation] [global-options]
        flash [--suppress-validation] [--suppress-bootloader-mem] [global-options] {file|STDIN}
        flash-eeprom [--suppress-validation] [global-options] {file|STDIN}
        flash-user [--suppress-validation] [global-options] {file|STDIN}
        get {bootloader-version|ID1|ID2|BSB|SBV|SSB|EB|
            manufacturer|family|product-name|
            product-revision|HSB} [global-options]
        getfuse {LOCK|EPFL|BOOTPROT|BODLEVEL|BODHYST|
                BODEN|ISP_BOD_EN|ISP_IO_COND_EN|
                ISP_FORCE} [global-options]
        setfuse {LOCK|EPFL|BOOTPROT|BODLEVEL|BODHYST|
                BODEN|ISP_BOD_EN|ISP_IO_COND_EN|
                ISP_FORCE} [global-options] data
        reset [global-options]
        start [global-options]
        version [global-options]
Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$





Louis Davis

The ./ is used to make sure you execute the dfu-programmer app that is in the local directory.

When you removed the ./ , you are executing the old dfu-programmer app that does not have the patch.

If you look at the dfu-programmer file in Finder does it have an icon that shows "exec" and has a Kind of Unix Executable File?

If not, you will need to execute the command: chmod +x dfu-programmer

This will let you execute the file.  Make sure your terminal's local directory is the one with the downloaded dfu-programmer and hex file.
Make sure you use the ./ when you execute the commands.

monoaural

the dfu-programmer file didn´t had any exec icon until i did

chmod +x dfu-programmer

now my dfu-programmer file has an exec icon (see picture attached)

now, when i´m typing sudo ./dfu-programmer atmega16u2 erase

i get this:

Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$ sudo ./dfu-programmer atmega16u2 erase
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
  Referenced from: /Users/claudiobattista/chronome_v2/./dfu-programmer
  Reason: image not found
Trace/BPT trap
Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$


what am i doing wrong?

Louis Davis

Now it is telling you that libusb library is not installed or it can't find it.

Since you have macports installed from a previous step, you need to run:

sudo port install libusb

Hopefully that will fix up your libusb library install.

monoaural

desperate  =(

Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$ sudo port install libusb
--->  Cleaning libusb
Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$ sudo ./dfu-programmer atmega16u2 erase
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
  Referenced from: /Users/claudiobattista/chronome_v2/./dfu-programmer
  Reason: image not found
Trace/BPT trap
Claudio-Battistas-MacBook-Pro:chronome_v2 claudiobattista$






Go Up