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.
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
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: