stm32f1: Add support for HID Bootloader

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine
2020-04-24 14:29:56 -04:00
committed by KevinOConnor
parent 4b9b705b99
commit 05efccc874
4 changed files with 42 additions and 5 deletions

View File

@@ -52,7 +52,11 @@ $(OUT)klipper.bin: $(OUT)klipper.elf
$(Q)$(OBJCOPY) -O binary $< $@
# Flash rules
flash: $(OUT)klipper.bin
lib/hidflash/hid-flash:
@echo " Building hid-flash"
$(Q)make -C lib/hidflash
flash: $(OUT)klipper.bin lib/hidflash/hid-flash
@echo " Flashing $< to $(FLASH_DEVICE)"
$(Q)$(PYTHON) ./scripts/flash_usb.py -t $(CONFIG_MCU) -d "$(FLASH_DEVICE)" -s "$(CONFIG_FLASH_START)" $(if $(NOSUDO),--no-sudo) $(OUT)klipper.bin