OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Apple Mac OSX
quarterturn
Posts: 10
Joined: Tue Aug 18, 2015 9:49 pm

OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by quarterturn » Tue Aug 18, 2015 9:58 pm

I have a "Baite" Maple Mini clone I am attempting to use on OSX 10.9 and Arduino 1.6.5. The board programs fine under Windows, but I seem to have a library issue on OSX:

$ ./dfu-util
dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
Referenced from: /Applications/Arduino-1.6.5.app/Contents/Java/hardware/Arduino_STM32/tools/macosx/dfu-util/./dfu-util
Reason: image not found
Trace/BPT trap

A copy exists here /Applications/Arduino-1.6.5.app/Contents/Java/hardware/tools/avr/lib/libusb-1.0.0.dylib but that version doesn't work.

Pretty much the same result from Arduino IDE (expected, as it uses the same utility):

dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
Referenced from: /Applications/Arduino-1.6.5.app/Contents/Java/hardware/Arduino_STM32/tools/macosx/dfu-util/dfu-util
Reason: image not found
/Applications/Arduino-1.6.5.app/Contents/Java/hardware/Arduino_STM32/tools/macosx/maple_upload: line 53: 69913 Trace/BPT trap: 5 ${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R ${dfuse_addr}

Does USB programming even work under OSX? I have a USB-Serial adapter, but it's pretty convenient to use the USB for power and programming at the same time.

User avatar
RogerClark
Posts: 7498
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by RogerClark » Tue Aug 18, 2015 10:07 pm

upload via usb was definitly working on OSX, many people have used it.

However its possible there is some issue with IDE 1.6.5,

Try IDE 1.6.4

quarterturn
Posts: 10
Joined: Tue Aug 18, 2015 9:49 pm

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by quarterturn » Tue Aug 18, 2015 10:39 pm

I got past the libusb issue with an OSX package here:
http://rudix.org/packages/libusb.html

But, I think now the issue is OSX is not really seeing the board as a USB device:
dfu-util: Invalid DFU suffix signature
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Deducing device DFU version from functional descriptor length
dfu-util: No DFU capable USB device available

quarterturn
Posts: 10
Joined: Tue Aug 18, 2015 9:49 pm

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by quarterturn » Tue Aug 18, 2015 10:47 pm

Actually, it does appear to be seen on USB:
Maple:

Product ID: 0x0004
Vendor ID: 0x1eaf
Version: 2.00
Speed: Up to 12 Mb/sec
Manufacturer: LeafLabs
Location ID: 0xfa134200 / 14
Current Available (mA): 500
Current Required (mA): 100

Is it maybe just very timing critical when compiling ends and you reset the board before uploading?

User avatar
RogerClark
Posts: 7498
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by RogerClark » Wed Aug 19, 2015 12:12 am

Which bootloader are you using.

The original one of the new stm32duino bootloader

i.e if you have not updated the bootloader you are running the old one.

quarterturn
Posts: 10
Joined: Tue Aug 18, 2015 9:49 pm

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by quarterturn » Wed Aug 19, 2015 12:13 am

It's what came with the board.

User avatar
RogerClark
Posts: 7498
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by RogerClark » Wed Aug 19, 2015 12:31 am

Ah, OK.

We thought there may be issues with the new bootloader being too fast for some OSX systems, specifically older macs and when you connect via an external hub.

Did you try putting the board into perpetual bootloader mode (please google this there is a youtube video on how to do it)

quarterturn
Posts: 10
Joined: Tue Aug 18, 2015 9:49 pm

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by quarterturn » Wed Aug 19, 2015 1:53 am

I found the guide for perpetual bootloader and tried it. It didn't help. Here's the error:

Sketch uses 12,604 bytes (10%) of program storage space. Maximum is 122,880 bytes.
Global variables use 3,112 bytes of dynamic memory.
/Applications/Arduino-1.6.5.app/Contents/Java/hardware/Arduino_STM32/tools/macosx/maple_upload cu.usbmodemfa13431 2 1EAF:0003 /var/folders/rk/gfzqk2kd3_bfxvg0cfk3fdg40000gn/T/build7208509584741567715.tmp/Fading.cpp.bin
dfu-util 0.8

dfu-util: Invalid DFU suffix signature
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Deducing device DFU version from functional descriptor length
dfu-util: No DFU capable USB device available

Here's what the system shows on the USB bus:
Maple 003:

Product ID: 0x0003
Vendor ID: 0x1eaf
Version: 2.01
Serial Number: LLM 003
Speed: Up to 12 Mb/sec
Manufacturer: LeafLabs
Location ID: 0xfa134200 / 14
Current Available (mA): 500
Current Required (mA): 100

(looks like just the product ID changed)

quarterturn
Posts: 10
Joined: Tue Aug 18, 2015 9:49 pm

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by quarterturn » Wed Aug 19, 2015 1:54 am

BTW I was wrong on the OS, it's 10.10 and the hardware is: iMac (27-inch, Mid 2011)

User avatar
RogerClark
Posts: 7498
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Post by RogerClark » Wed Aug 19, 2015 3:31 am

I suspect somehow the wrong version of dfu util is being run.

Can you find out if you have more than one version installed.

I'll fire up my Mac and take a look at what version mine is reporting

Post Reply