e-tanaka / unojoy

Automatically exported from code.google.com/p/unojoy
0 stars 0 forks source link

Can't get dfu programmer to work on Osx #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the latest UnoJoy release
2. Put your Arduino in DFU mode
3. Run TurnIntoAJoystick.command

I am on A Snow Leopard 10.6.8 . Downloaded the latest release and followed the 
Getting Started Procedure. I have installed the drivers for SnowLeopard and put 
my Arduino R3 in DFU mode. However the dfu programmer isn't working at all. 
First, in the latest release the TurnIntoAJoystick.command is the same as the 
window version and gives command not found errors. 

I than downloaded an older release and the script  gives this errors :

Trying to program for Arduino Uno R1/R2...
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
  Referenced from: /Users/Tarhun/Downloads/UnoJoyOSX 2/ATmega8u2Code/HexFiles/./dfu-programmer
  Reason: image not found
/Users/Tarhun/Downloads/UnoJoyOSX 2/TurnIntoAJoystick.command: line 29:  3133 
Trace/BPT trap          ./dfu-programmer at90usb82 flash UnoJoy.hex
We didn't find the R1/R2 model, checking for an R3...
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
  Referenced from: /Users/Tarhun/Downloads/UnoJoyOSX 2/ATmega8u2Code/HexFiles/./dfu-programmer
  Reason: image not found
/Users/Tarhun/Downloads/UnoJoyOSX 2/TurnIntoAJoystick.command: line 29:  3136 
Trace/BPT trap          ./dfu-programmer atmega16u2 flash UnoJoy.hex

dfu-programmer couldn't connect to the Arduino...
Did you put the Arduino into DFU mode?
Did you install the libusb driver?
logout

my /usr/local/lib/ folder shows  

libusb-0.1.4.4.5.dylib    libusb.la                 libusbpp.dylib
libusb-0.1.4.dylib        libusbpp-0.1.4.4.5.dylib  libusbpp.la
libusb.dylib              libusbpp-0.1.4.dylib      

Original issue reported on code.google.com by Zoolg...@gmail.com on 28 Aug 2013 at 12:22

GoogleCodeExporter commented 8 years ago
I found a solution by installing macports and downloading the latest libusb 
library and creating a symbolic link to the libraries

Original comment by Zoolg...@gmail.com on 28 Aug 2013 at 12:41

GoogleCodeExporter commented 8 years ago
Hello, can you do a small tutorial to explain how you do that.
thanks

Original comment by thierryh...@gmail.com on 1 May 2014 at 1:03