Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: uno rev3 16u2 firmware flashing with dfu-programmer on: December 03, 2012, 12:00:10 pm
Hallelujah …
2  Using Arduino / Interfacing w/ Software on the Computer / Re: uno rev3 16u2 firmware flashing with dfu-programmer on: December 02, 2012, 05:09:33 pm
Oh boy.

Installation:
- In Terminal navigate to your dfu_programmer_install directory.

Not /Users/adamrolph/Desktop/DFU/dfu_programmer_install/dfu-programmer but /Users/adamrolph/Desktop/DFU/dfu_programmer_install

This means type 'cd /Users/adamrolph/Desktop/DFU/dfu_programmer_install'

- Type: ./install_dfu_programmer.sh
Type DOT SLASH install_dfu_programmer.sh

- This executes the install.
- You will be prompted for your password. Type in your password.
- If the install is sucessful you should see the dfu-programmer
manual
- press ‘q’ to exit the manual.

Try to start the program:
/usr/local/bin/dfu-programmer

See if the output contains 'atmega16u2'
3  Using Arduino / Interfacing w/ Software on the Computer / Re: uno rev3 16u2 firmware flashing with dfu-programmer on: December 02, 2012, 02:14:20 pm
If you used the package I provided, dfu-programmer should have been installed to '/usr/local/bin'.
Try to invoke it using the full path:
Code:
sudo /usr/local/bin/dfu-programmer atmega16u2 erase
4  Using Arduino / Interfacing w/ Software on the Computer / Re: uno rev3 16u2 firmware flashing with dfu-programmer on: December 02, 2012, 03:18:47 am
Are you sure this command is correct?
Quote
dfu-programmer at90162 erase

The UNO R3 uses an Atmega16U2.

Code:
sudo dfu-programmer atmega16u2 erase
5  Using Arduino / Interfacing w/ Software on the Computer / Re: uno rev3 16u2 firmware flashing with dfu-programmer on: November 29, 2012, 07:59:40 am
Code:
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
  Referenced from: /Users/adamrolph/Downloads/dfu-programmer
  Reason: image not found

Sorry, my mistake!
I didn't realize that this is a dynamically linked binary. You're missing the required library.

I had success compiling all libraries and dfu-programmer itself by using the attached install script.
The package was originally created by Uriah Baalke. I just updated the included dfu-programmer to 0.5.4 and patched it.

Installation:
- In Terminal navigate to your dfu_programmer_install directory.
- Type: ./install_dfu_programmer.sh
- This executes the install.
- You will be prompted for your password. Type in your password.
- If the install is sucessful you should see the dfu-programmer
manual
- press ‘q’ to exit the manual.

Regards
nueh

6  Using Arduino / Interfacing w/ Software on the Computer / Re: uno rev3 16u2 firmware flashing with dfu-programmer on: November 26, 2012, 02:48:37 pm
Quote
I'm getting this when I try to run the configure file in the install you attached

I'm not sure what you mean. I didn't attach anything to install, just a plain binary of dfu-programmer.
You can use it by putting it in your $PATH or executing the file with the complete path, e.g.

Code:
Last login: Mon Nov 26 20:39:06 on ttys000
bampf:~ nueh$ /Users/nueh/Downloads/2012-11/dfu-programmer atmega16u2 reset
7  Using Arduino / Interfacing w/ Software on the Computer / Re: uno rev3 16u2 firmware flashing with dfu-programmer on: November 26, 2012, 09:32:55 am
Hi,

you don't have to compile dfu-programmer because there is a precompiled and patched binary at the googlecode-project you discovered:
https://unojoy.googlecode.com/hg/ATmega8u2Code/HexFiles/dfu-programmer

I attached it to this post for your convenience.


Regards,
nueh
Pages: [1]