Qmk_firmware: Allow custom programming executables

Created on 19 Sep 2019  路  2Comments  路  Source: qmk/qmk_firmware


Feature Request Type

  • [ ] Core functionality
  • [ ] Add-on hardware support (eg. audio, RGB, OLED screen, etc.)
  • [ ] Alteration (enhancement/optimization) of existing feature(s)
  • [x] New behavior

Description

With dfu-util, the current release version doesn't support STM32L412 devices, as there's a timing change with the way that chip does DFU.

The master branch of dfu-util has a fix for this, but unfortunately nobody knows when a new release build will get made, given that the last one was in 2016.

Would be great if there could be an option to specify alternate executables when invoking things like dfu-util and avrdude etc. -- would allow for custom builds to be run locally without requiring a full release.

discussion good first issue help wanted question

Most helpful comment

Actually, we do allow this already.

https://github.com/qmk/qmk_firmware/blob/master/tmk_core/chibios.mk#L210

You just need to specify the executable when compiling (or in your rules.mk).

Just add:

DFU_UTIL=/path/to/dfu_util_custom

All 2 comments

I think for Linux it is defined with these variables, or at least for WSL:
https://github.com/qmk/qmk_firmware/blob/master/util/activate_wsl.sh#L7
Not sure if it will work if you override these variables.

Actually, we do allow this already.

https://github.com/qmk/qmk_firmware/blob/master/tmk_core/chibios.mk#L210

You just need to specify the executable when compiling (or in your rules.mk).

Just add:

DFU_UTIL=/path/to/dfu_util_custom
Was this page helpful?
0 / 5 - 0 ratings

Related issues

fredizzimo picture fredizzimo  路  4Comments

matz-e picture matz-e  路  4Comments

helluvamatt picture helluvamatt  路  4Comments

jacwib picture jacwib  路  3Comments

vokeio picture vokeio  路  3Comments