Flash with dfu-util: problems vs versions

Perhaps this will help someone:

After an archlinux system upgrade, multiple different klipper boards could not be flashed anymore while reporting various dfu-util related errors, such as:

  • dfu-util: can't detach
  • error resetting after download (LIBUSB_ERROR_NO_DEVICE)

Testing with available dfu-util versions for the archlinux:
https://archive.archlinux.org/packages/d/dfu-util/

Produced the the following results:

dfu-util v0.9.X:

  • LPC1768-type board: flash: works, error message: none
  • STM32f4-type board: flash: works, error message: dfu-util: can't detach

dfu-util v0.10.X:

  • LPC1768-type board: flash: FAILS, error message: error resetting after download
  • STM32f4-type board: flash: works, error message: dfu-util: can't detach

dfu-util v0.11.X:

  • LPC1768type board: flash: FAILS, error message: error resetting after download
  • STM32f4-type board: flash: FAILS, error message: dfu-util: can't detach

and when dfu-util is built from source:

dfu-util v0.11-DEV:

  • LPC1768-type board: flash: FAILS, error message: error resetting after download
  • STM32f4-type board: flash: works, error message: dfu-util: can't detach

Perhaps deveopers could update flash_usb.py to reflect dfu-util versions:
klipper/scripts/flash_usb.py

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.