airspy/airspyone_firmware

DFU Not in IDLE state before command

cnlohr opened this issue · 2 comments

cnlohr commented

Following instructions here: https://github.com/airspy/airspyone_firmware/wiki/Linux-how-to-flash-airspy-firmware

Side-note: It took me much longer than I expected to figure out the way to install 7za and then execute 7za x lpcdfu-1.02_src_linux_win32_airspy_fw_v1.0.0-rc4.7z

When executing (And disabling quiet), I get this:

# ./dfuprog.sh airspy_rom_to_ram.bin
Downloading algo...
dfu-util 0.11-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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 1fc9:000c
Device DFU version 0100
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 2048
Warning: Overriding device-reported transfer size
Copying data from PC to DFU device
Download	[=========================] 100%        13468 bytes
Download done.
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!
dfu-util: can't detach
Resetting USB to switch back to Run-Time mode
Programming airspy_rom_to_ram.bin
DFU Not in IDLE state before command
main: PREPARE Done. Result = -107
main: EXIT Result=-107

Device is the AirSpy Mini.

Any ideas?

cnlohr commented

Sometimes, it does this:

pi@cabinpi:~/lpcdfu-1.02_src $ sudo ./dfuprog.sh airspy_rom_to_ram.bin 
Downloading algo...
dfu-util 0.11-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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 1fc9:000c
Device DFU version 0100
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 2048
Warning: Overriding device-reported transfer size
Copying data from PC to DFU device
Download	[=========================] 100%        13468 bytes
Download done.
dfu-util: unable to read DFU status after completion (LIBUSB_ERROR_PIPE)
touil commented

This is unrelated to the firmware repository. Check the LPC4370 user manual. If the hardware is not working, contact your vendor for support.