Closed lancelot666de closed 1 month ago
I happened to see the exact same error with an older Saturn-V earlier today. I resolved it by upgrading Saturn-V. git bisect
tells me that this was fixed for Saturn-V in: https://github.com/greatscottgadgets/saturn-v/pull/7/commits/f0d674dbf4431ba3873cfa2dd2f1c7fd30d053d7
In GreatFET's case, this is an interaction between the NXP DFU bootloader (in ROM) and pyfwup. I have reproduced the error with HackRF One which has the same bootloader.
I notice that the DFU interface descriptor indicates that it is in run-time mode, but otherwise it acts as if it is in DFU mode. So I think the root cause of the error is a bug in the NXP DFU bootloader, but we need to work around it.
I reproduced the error by putting a GreatFET One in DFU mode and then: gf fw -d --autoflash
@lancelot666de Can you please test #11 to confirm that it fixes your problem?
@mossmann #11 fixes this issue. I could flash the firmware:
greatfet_fw -d --dfu-stub flash_stub.bin -w firmware.bin
Trying to find a GreatFET device...
libgreat compatible board in flash-stub mode found. (Serial number: 0000909469e6362158e3)
Writing data to SPI flash...
Write complete!
Resetting GreatFET...
Reset complete!
Thank you!
The commit 15d2a91 breaks the firmware update via dfu stub:
With the previous commit e61b9c6 the update via dfu stub works.