R
@Andrew-Sinclair said in Problem on updating Expansion board V3.1:
This worked for me on mac catalina
brew unlink libusb
brew unlink dfu-util
brew install libusb --HEAD
brew install dfu-util --HEAD
using my old macAir with HighSiera, this solved the problem
I had to 'brew uninstal'l the packages, unlink was not enough.
libusb was installed with an extra patch.
==> Installing dependencies for libusb: m4, autoconf, automake and libtool
==> Installing libusb dependency: m4
==> Patching
==> Applying secure_snprintf.patch
patching file lib/vasnprintf.c
Hunk #1 succeeded at 4858 (offset -11 lines).
==> ./configure --prefix=/usr/local/Cellar/m4/1.4.18
libusb: stable 1.0.24, HEAD
dfu-util installed without problems
and the result is:
Rainers-MacBook-Air% dfu-util -D pysense_0.0.8.dfu
dfu-util 0.10-dev
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 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/
Match vendor ID from file: 04d8
Match product ID from file: f011
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
Device ID 04d8:f011
Device DFU version 0100
Claiming USB DFU (Run-Time) Interface...
Setting Alternate Interface zero...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
dfu-util: WARNING: Device already in DFU mode? (bState=2 dfuIDLE)
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0100
Device returned transfer size 64
Copying data from PC to DFU device
Download [=========================] 100% 16384 bytes
Download done.
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!