I'm trying to get my Arduino Uno r3 into DFU mode in order to flash new firmware to it using Macports and DFU programmer.
I want to do this so I can use it as a USB recognized device.
I am using:
Mac OSX Lion v. 10.7.5
dfu-programmer 0.5.4
Arduino Uno R3
I have been following the directions given from this post:
Title: Re: Resetting the Arduino Uno R3 Atmega16U2
Post by: dhunt on February 19, 2012, 12:27:20 AM
I got the dfu-programmer to build on OSX Lion 10.7.3 with the following steps:Install Xcode 4.3 from the Appstore
Install Xcode command line tools from Xcode preferences (see Documentation Archive (Documentation Archive)).
Tell Xcode where Xcode is installed: sudo xcode-select -switch /Applications/Xcode.app
Set up a link for the missing clang executable: cd /Applications/Xcode.app/Contents/Developer/usr/bin; sudo ln -s clang llvm-gcc; cd -
Install macports from http://www.macports.org/ (http://www.macports.org/)
Install autoconf tools via macports: sudo port install pkgconfig automake
Install libusb via macports: sudo port install libusb-devel this is where I encounter my problem please see below for details****
Configure and build dfu-programmer: cd dfu-programmer-0.5.4; ./bootstrap.sh; ./configure; ./make; ./sudo make installAfter this you should be pretty much set for building other packages and tools too. You can also search for available packages using the macports search command.
For example:
port search libusb
libusb @1.0.8 (devel)
library for USB device accesslibusb-compat @0.1.3 (devel)
library for USB device accesslibusb-devel @1.0.8.20101017 (devel)
library for USB device accesslibusb-legacy @0.1.12 (devel)
Library providing access to USB devices
Here is the result of me running: sudo port install libusb-devel
---> Configuring libusb-devel
Error: [b]Please do not install this port since it has been replaced by 'libusb'.[/b]
Error: org.macports.configure for port libusb-devel returned:
Please see the log file for port libusb-devel for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libusb-devel/libusb-devel/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port libusb-devel failed
Some assorted findings I have made:
The r3 is supposed to enter DFU mode more easily than previous versions of Arduino, but it seems that I may have been better off with an Arduino r2. I might be encountering problems because the 16u2 chip (which is on the uno r3) is possibly not supported by tools I want to use. (dfu-programmer) However, the 8u2 chip, which is on the uno r1 and r2, is.
The "no device present" was my original error, but after having shorted the pins correctly on my Arduino and no longer being able to see it in the Arduino IDE, I am pretty sure it entered DFU mode correctly. Maybe it did not? I have never successfully reflashed the 16u2 chip on my Arduino at any point, it still contains its original hex file
I think my main problem is that when I try to install usb-devel I get this error Please do not install this port since it has been replaced by 'libusb'
I've used the following tutorials and sources:
A source which has claimed to have updated dfu programmer for r3:
https://code.google.com/p/unojoy/issues/detail?id=1
Thanks so much for any help