diff options
author | Takuya Urakawa <urkwtky@gmail.com> | 2018-09-29 10:30:44 +0900 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-09-28 21:30:44 -0400 |
commit | e2dee054d0649cb7b5b051a04a9bd82d14a0fdcd (patch) | |
tree | c51c22fe0e60e826d1b3ece2730c56075f8b573f /tmk_core | |
parent | e4eeb1eb230a4d92f1c88197b71a07b342966e73 (diff) | |
download | qmk_firmware-e2dee054d0649cb7b5b051a04a9bd82d14a0fdcd.tar.gz qmk_firmware-e2dee054d0649cb7b5b051a04a9bd82d14a0fdcd.zip |
add st-link_cli flashing (#3899)
* add st-link_cli support
* format names
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/chibios.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk index 25c49204bc..014c8d502a 100644 --- a/tmk_core/chibios.mk +++ b/tmk_core/chibios.mk @@ -198,10 +198,13 @@ ifneq ("$(SERIAL)","") DFU_ARGS += -S $(SERIAL) endif +ST_LINK_ARGS ?= + # List any extra directories to look for libraries here. EXTRALIBDIRS = $(RULESPATH)/ld DFU_UTIL ?= dfu-util +ST_LINK_CLI ?= st-link_cli # Generate a .qmk for the QMK-FF qmk: $(BUILD_DIR)/$(TARGET).bin @@ -230,5 +233,8 @@ qmk: $(BUILD_DIR)/$(TARGET).bin dfu-util: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter $(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin +st-link-cli: $(BUILD_DIR)/$(TARGET).hex sizeafter + $(ST_LINK_CLI) $(ST_LINK_ARGS) -q -c SWD -p $(BUILD_DIR)/$(TARGET).hex -Rst + bin: $(BUILD_DIR)/$(TARGET).bin sizeafter $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin; |