OSX 10.9 Maple Mini Ardunio 1.6.5 libusb-1.0.0.dylib

Apple Mac OSX
User avatar
RogerClark
Posts: 7443
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:41 am

I get

Code: Select all


Sketch uses 12,100 bytes (10%) of program storage space. Maximum is 110,592 bytes.
Global variables use 3,104 bytes of dynamic memory.
/Users/administrator/Documents/Arduino/hardware/Arduino_STM32/tools/macosx/maple_upload cu.usbmodem1d121 1 1EAF:0003 /var/folders/6p/knbk6cr92sscwh62_5tt20ph0000gn/T/build7155389110481267417.tmp/sketch_aug19a.cpp.bin 
dfu-util 0.8
dfu-util: Invalid DFU suffix signature

dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
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

Opening DFU capable USB device...
ID 1eaf:0003
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 1024
Copying data from PC to DFU device

Download	[                         ]   0%            0 bytes
Download	[=                        ]   7%         1024 bytes
Download	[===                      ]  15%         2048 bytes
Download	[=====                    ]  23%         3072 bytes
Download	[=======                  ]  31%         4096 bytes
Download	[=========                ]  39%         5120 bytes
Download	[===========              ]  46%         6144 bytes
Download	[=============            ]  54%         7168 bytes
Download	[===============          ]  62%         8192 bytes
Download	[=================        ]  70%         9216 bytes
Download	[===================      ]  78%        10240 bytes
Download	[=====================    ]  85%        11264 bytes
Download	[=======================  ]  93%        12100 bytes
Download	[=========================] 100%        12100 bytes
Download done.
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode

Are you sure the board is in perpetual bootloader ?

Did you just try dfu-util -l

Code: Select all

./dfu-util -l
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
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

Found DFU: [1eaf:0003] ver=0201, devnum=8, cfg=1, intf=0, alt=2, name="STM32duino bootloader v1.0  Upload to Flash 0x8002000", serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=8, cfg=1, intf=0, alt=1, name="STM32duino bootloader v1.0  Upload to Flash 0x8005000", serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=8, cfg=1, intf=0, alt=0, name="STM32duino bootloader v1.0  ERROR. Upload to RAM not supported.", serial="LLM 003"

Actually, it looks like the board I'm trying has the new bootloader

But you will get 2 DFU devices not 3 and RAM will be supported by the bootloader (though in reality it doesnt work)

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 2:22 pm

I'm at work at the moment so I can't give you the exact error, but basically when I run dfu-util with any option I get an error about "invalid image" - even just -v for version. So I suspect dfu-util or libusb or both at this point.

dfu-util came from the github repo package for Arduino, which I cloned very recently.

User avatar
martinayotte
Posts: 1229
Joined: Mon Apr 27, 2015 1:45 pm

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

Post by martinayotte » Wed Aug 19, 2015 3:06 pm

I remember seeing that "invalid image" when files are *.bin not *.dfu.
In such case, I've resolved it in F4 by using "--dfuse-address 0x8000000" option.

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 7:26 pm

I guess I'll try "homebrew" to build and install dfu-util on my Mac later tonight. Not sure what's wrong with the version from github.

User avatar
RogerClark
Posts: 7443
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 9:55 pm

When i get a chance, I will Pull the latest version onto my Mac, in case some seemingly unrelated change has broken dfu-util

There was a change to the lunix version about 2 weeks ago, but it should not effect the OSX version

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 11:44 pm

I got it working on OSX 10.10. Here's how:
1. installed 'brew'
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... er/install)"
2. installed dfu-util
brew install dfu-util
3. deleted the Arduino 1.6.5 dfu-util from the STM32 github repo
rm /Applications/Arduino-1.6.5.app/Contents/Java/hardware/Arduino_STM32/tools/macosx/dfu-util/dfu-util
4. linked the new dfu-util to where the deleted was
ln -s /usr/local/bin/dfu-util dfu-util

it works:

$ /usr/local/bin/dfu-util -l
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
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
Found Runtime: [05ac:8215] ver=0208, devnum=8, cfg=1, intf=3, alt=0, name="UNKNOWN", serial="7CC3A151AE16"

Now I'd like to get the new firmware on so it's time to solder on some pins to my board. Does the new firmware solve needing to press the reset button to upload?

User avatar
RogerClark
Posts: 7443
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 » Thu Aug 20, 2015 1:58 am

No need to solder to the board.

There is an updater sketch in the repo somewhere, i.e in the stm32duino-bootloader

Just load the sketch and press Y etc

Use at your own risk ;-)

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 » Thu Aug 20, 2015 2:56 am

I found the firmware updater and applied it. It seems to give more time after pressing the reset button for code uploading vs the original.

Thank you very much for your help!

User avatar
RogerClark
Posts: 7443
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 » Thu Aug 20, 2015 3:07 am

On OXS and Linux the new bootloader is significantly faster to upload than the old one.

Additional it free's up another 12k of Flash and another 3k of RAM (i.e the increase of RAM is the most important change)

Remember to select the correct bootloader option to get the extra flash and ram

DaveCalaway
Posts: 3
Joined: Tue Jan 17, 2017 8:26 pm

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

Post by DaveCalaway » Tue Jan 17, 2017 8:41 pm

quarterturn wrote:I got it working on OSX 10.10. Here's how:
1. installed 'brew'
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... er/install)"
2. installed dfu-util
brew install dfu-util
3. deleted the Arduino 1.6.5 dfu-util from the STM32 github repo
rm /Applications/Arduino-1.6.5.app/Contents/Java/hardware/Arduino_STM32/tools/macosx/dfu-util/dfu-util
4. linked the new dfu-util to where the deleted was
ln -s /usr/local/bin/dfu-util dfu-util
I did everything, but the link does not works. When i run the Arduino 1.6.12 the link is not at "/usr/local/bin/dfu-util" but "/opt/local/bin/dfu-util" .

I edited the "maple_upload" file from "/opt/local/bin/dfu-util" to "/usr/local/bin/dfu-util", reloaded the IDE and now works.

I have done something wrong? Osx 10.12.12 and bootloader original.

The Arduino's output:

Code: Select all

dfu-util 0.9
dfu-util: Invalid DFU suffix signature

dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 1eaf:0003
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 1024
Copying data from PC to DFU device

Download	[                         ]   0%            0 bytes
Download	[=                        ]   7%         1024 bytes
Download	[===                      ]  14%         2048 bytes
Download	[=====                    ]  22%         3072 bytes
Download	[=======                  ]  29%         4096 bytes
Download	[=========                ]  36%         5120 bytes
Download	[===========              ]  44%         6144 bytes
Download	[============             ]  51%         7168 bytes
Download	[==============           ]  59%         8192 bytes
Download	[================         ]  66%         9216 bytes
Download	[==================       ]  73%        10240 bytes
Download	[====================     ]  81%        11264 bytes
Download	[======================   ]  88%        12288 bytes
Download	[=======================  ]  95%        12844 bytes
Download	[=========================] 100%        12844 bytes
Download done.
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode

Post Reply