Add missing JLink flashing bits
This commit is contained in:
@@ -214,10 +214,11 @@ flash: $(OUTPUT_BIN)
|
|||||||
@echo "FLASH $(OUTPUT_BIN)"
|
@echo "FLASH $(OUTPUT_BIN)"
|
||||||
$(STM32_PROG) --connect port=SWD reset=Hwrst -w $(OUTPUT_BIN) 0x8000000 -v --go
|
$(STM32_PROG) --connect port=SWD reset=Hwrst -w $(OUTPUT_BIN) 0x8000000 -v --go
|
||||||
|
|
||||||
|
.PHONY: jlink
|
||||||
jlink: $(OUTPUT_BIN)
|
jlink: $(OUTPUT_BIN)
|
||||||
@echo "FLASH $(OUTPUT_BIN)"
|
@echo "FLASH $(OUTPUT_BIN)"
|
||||||
JLinkExe -device $$(echo $(DEVICE_TYPE) | tr '[:lower:]' '[:upper:]') -if SWD \
|
JLinkExe -device $$(echo $(DEVICE_TYPE) | tr '[:lower:]' '[:upper:]') -if SWD \
|
||||||
-speed auto -autoconnect 1 -CommanderScript cmd.jlink
|
-speed auto -autoconnect 1 -CommanderScript flash.jlink
|
||||||
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|||||||
6
firmware/cmd.jlink
Normal file
6
firmware/cmd.jlink
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
exitonerror 1
|
||||||
|
h
|
||||||
|
r
|
||||||
|
loadbin ./watch.bin 0x8000000
|
||||||
|
g
|
||||||
|
q
|
||||||
Reference in New Issue
Block a user