Code Monkey home page Code Monkey logo

Comments (5)

todbot avatar todbot commented on July 24, 2024

I believe dfu-util needs to be "fixed" for Catalina and the one in Homebrew hasn't been yet.
But I think Arduino has fixed it and has pre-compiled binaries here:
https://github.com/arduino/dfu-utils-cross/tree/master/distrib/osx
Try that and see if it works.

from tomu-quickstart.

 avatar commented on July 24, 2024

Yep, that worked flawlessly. THANKS!!

from tomu-quickstart.

rflmota avatar rflmota commented on July 24, 2024

Hello @todbot , I'm facing the same issue on macOS Catalina (10.15.7). Already tried the binaries you suggested but the issue persists... Any tips? ty

from tomu-quickstart.

todbot avatar todbot commented on July 24, 2024

Hi @rflmota,
I can verify that on MacOS Big Sur (11.1) that the Arduino dfu-util binary and the Homebrew dfu-util both throw the same error of `dfu-util:

[...]
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
dfu-util: Cannot set alternate interface: LIBUSB_ERROR_OTHER

However I have been able to update Tomu by going to https://dfu.tomu.im/ on Chrome and using that page's WebUSB DFU loader.

This makes me think that Chrome is now somehow claiming DFU devices, preventing other processes from claiming them.

from tomu-quickstart.

todbot avatar todbot commented on July 24, 2024

If you do want to use the command-line dfu-util program, I've recompiled it on my Mac and it can reprogram Tomus. It is attached here:
dfu-util-macos-static-19Dec2020.zip

If you want to compile it yourself, the steps I used were:

git clone https://github.com/arduino/dfu-utils-cross
cd dfu-utils-cross

cd libusb-1.0.9
export LIBUSB_DIR=`pwd`
./configure --enable-static --disable-shared
make clean
make

cd ../dfu-util-0.9
USB_CFLAGS="-I$LIBUSB_DIR/libusb/ -framework IOKit -framework CoreFoundation" USB_LIBS="-L$LIBUSB_DIR/libusb/.libs/ -lusb-1.0 -lobjc" ./configure
make clean
CFLAGS=-static make V=s

./src/dfu-util --list
./src/dfu-util -v -d 1209:70b1 -D ../../tomu-quickstart/prebuilt/miniblink.dfu

from tomu-quickstart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.