Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Flashing with DFU programmer on debian is broken #10304

Closed
3 tasks
cmdremily opened this issue Sep 12, 2020 · 1 comment
Closed
3 tasks

[Bug] Flashing with DFU programmer on debian is broken #10304

cmdremily opened this issue Sep 12, 2020 · 1 comment

Comments

@cmdremily
Copy link
Contributor

Describe the Bug

#10070 introduced the --force flag for dfu-programmer, this flag is not supported in the highest version of dfu-programmer available to Debian users (stable/unstable/testing).

As a result the flashing fails due to unrecognised flag being passed:

Checking file size of opendeck_32_rev1_default.hex                                                  [OK]
 * The firmware size is fine - 15174/28672 (52%, 13498 bytes free)
if [ "" ]; then echo "Flashing '' for EE_HANDS split keyboard support." ; fi; until dfu-programmer atmega32u4 get bootloader-version; do printf "\033[31;01mERROR:\033[0m Bootloader not found. Trying again in 5s.\n" ; sleep 5 ; done; if dfu-programmer --version 2>&1 | grep -q 0.7 ; then dfu-programmer atmega32u4 erase --force; if [ "" ]; then dfu-programmer atmega32u4 flash --force --eeprom quantum/split_common/; fi; else dfu-programmer atmega32u4 erase; if [ "" ]; then dfu-programmer atmega32u4 flash-eeprom quantum/split_common/; fi; fi; dfu-programmer atmega32u4 flash --force .build/opendeck_32_rev1_default.hex; dfu-programmer atmega32u4 reset
Bootloader Version: 0x00 (0)
Usage: dfu-programmer target[:usb-bus,usb-addr] command [options] [global-options] [file|data]

global-options:
        --quiet
        --debug level    (level is an integer specifying level of detail)
        Global options can be used with any command and must come
        after the command and before any file or data value

commands:
        configure {BSB|SBV|SSB|EB|HSB} [--suppress-validation] data
        dump
        dump-eeprom
        dump-user
        erase [--suppress-validation]
        flash [--suppress-validation] [--suppress-bootloader-mem]
                     [--serial=hexdigits:offset] {file|STDIN}
        flash-eeprom [--suppress-validation]
                     [--serial=hexdigits:offset] {file|STDIN}
        flash-user   [--suppress-validation]
                     [--serial=hexdigits:offset] {file|STDIN}
        get     {bootloader-version|ID1|ID2|BSB|SBV|SSB|EB|
                 manufacturer|family|product-name|
                 product-revision|HSB}
        getfuse {LOCK|EPFL|BOOTPROT|BODLEVEL|BODHYST|
                 BODEN|ISP_BOD_EN|ISP_IO_COND_EN|
                 ISP_FORCE}
        setfuse {LOCK|EPFL|BOOTPROT|BODLEVEL|BODHYST|
                 BODEN|ISP_BOD_EN|ISP_IO_COND_EN|
                 ISP_FORCE} data
        setsecure
        reset
        start
if [ -f .//.build/error_occurred ]; then printf "\033[31;01mMake finished with errors\n\033[0m" & exit 1; fi;
if [ -f .//.build/error_occurred ]; then printf "\033[31;01mMake finished with errors\n\033[0m" & exit 1; fi;

System Information

  • Keyboard: Anything that uses DFU
    • Revision (if applicable):
  • Operating system: Debian, any flavor
  • AVR GCC version: N/A
  • ARM GCC version: N/A
  • QMK Firmware version: 0.10.8
  • Any keyboard related software installed?
    • AutoHotKey
    • Karabiner
    • Other:

Additional Context

@fauxpark
Copy link
Member

Already fixed by #10292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants