Add a universal flash command for cli (#6224)

* Add universal flash command

* Add bootloader info to I:C boards

* Add support for ATSAM

* Add messages for flash target

* Message cleanup

* Add USB ASP Flashing target

* Make usbasp target more universal

* Add phoney target for usbasp

* Clarify error message when bootloader isn't matched
This commit is contained in:
Drashna Jaelre 2019-08-20 15:39:24 -07:00 committed by Yan-Fa Li
parent 91ee6a1dbb
commit 4003d077ce
10 changed files with 93 additions and 44 deletions

View file

@ -54,3 +54,6 @@ EXTRALIBDIRS =
bin: $(BUILD_DIR)/$(TARGET).hex
$(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
$(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
flash: bin
$(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)"