mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-26 08:37:16 +00:00
Merge pull request #2150 from kkitayam/flash-jlink-for-windows
Fix flash-jlink target to work on Windows command prompt
This commit is contained in:
commit
e3d4385280
@ -99,19 +99,16 @@ endif
|
|||||||
JLINK_IF ?= swd
|
JLINK_IF ?= swd
|
||||||
|
|
||||||
# Jlink script
|
# Jlink script
|
||||||
define jlink_script
|
$(BUILD)/$(BOARD).jlink: $(BUILD)/$(PROJECT).hex
|
||||||
halt
|
@echo halt > $@
|
||||||
loadfile $^
|
@echo loadfile $^ >> $@
|
||||||
r
|
@echo r >> $@
|
||||||
go
|
@echo go >> $@
|
||||||
exit
|
@echo exit >> $@
|
||||||
endef
|
|
||||||
export jlink_script
|
|
||||||
|
|
||||||
# Flash using jlink
|
# Flash using jlink
|
||||||
flash-jlink: $(BUILD)/$(PROJECT).hex
|
flash-jlink: $(BUILD)/$(BOARD).jlink
|
||||||
@echo "$$jlink_script" > $(BUILD)/$(BOARD).jlink
|
$(JLINKEXE) -device $(JLINK_DEVICE) -if $(JLINK_IF) -JTAGConf -1,-1 -speed auto -CommandFile $<
|
||||||
$(JLINKEXE) -device $(JLINK_DEVICE) -if $(JLINK_IF) -JTAGConf -1,-1 -speed auto -CommandFile $(BUILD)/$(BOARD).jlink
|
|
||||||
|
|
||||||
# Flash STM32 MCU using stlink with STM32 Cube Programmer CLI
|
# Flash STM32 MCU using stlink with STM32 Cube Programmer CLI
|
||||||
flash-stlink: $(BUILD)/$(PROJECT).elf
|
flash-stlink: $(BUILD)/$(PROJECT).elf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user