At least in the case of Windows, mdloader is incapable of programming a CTRL unless applet-flash-samd51j18a.bin is in the current working directory.
We've been attempting to allow for QMK to use the :flash target to invoke mdloader, but given that it's executed from the qmk_firmware directory, applet-flash-samd51j18a.bin doesn't exist.
However, if executing mdloader from a directory that contains applet-flash-samd51j18a.bin, this works. Having applet-flash-samd51j18a.bin present next to mdloader does not result in a successful flash.
Perhaps searching the executable directory for a copy of applet-flash-samd51j18a.bin might be in order?
At least in the case of Windows,
mdloaderis incapable of programming a CTRL unlessapplet-flash-samd51j18a.binis in the current working directory.We've been attempting to allow for QMK to use the
:flashtarget to invoke mdloader, but given that it's executed from theqmk_firmwaredirectory,applet-flash-samd51j18a.bindoesn't exist.However, if executing
mdloaderfrom a directory that containsapplet-flash-samd51j18a.bin, this works. Havingapplet-flash-samd51j18a.binpresent next tomdloaderdoes not result in a successful flash.Perhaps searching the executable directory for a copy of
applet-flash-samd51j18a.binmight be in order?