diff options
| author | Ha Thach <[email protected]> | 2021-11-08 23:33:45 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-08 23:33:45 +0700 |
| commit | 6f59a2ce6e9cfdb7855b300db3ad1304b35bb25f (patch) | |
| tree | b68bf9f80f65de9e3019ec1411c1c051b8966301 /examples/rules.mk | |
| parent | ab760290a514bc239c5ef8901ff8d80f64d461f9 (diff) | |
| parent | 1c77f9f6694151beca9a490eadf545b30557e9a0 (diff) | |
Merge pull request #1183 from kkitayam/add_msp_exp432e401y
Add support for TI MSP-EXP432E401Y
Diffstat (limited to 'examples/rules.mk')
| -rw-r--r-- | examples/rules.mk | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/rules.mk b/examples/rules.mk index 92fa4e14d..4cc35cb22 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -158,13 +158,14 @@ endif # Flash Targets # --------------------------------------- -# Flash binary using Jlink +# Jlink binary ifeq ($(OS),Windows_NT) JLINKEXE = JLink.exe else JLINKEXE = JLinkExe endif +# Jlink Interface JLINK_IF ?= swd # Flash using jlink @@ -177,18 +178,22 @@ flash-jlink: $(BUILD)/$(PROJECT).hex @echo exit >> $(BUILD)/$(BOARD).jlink $(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 STM32_Programmer_CLI --connect port=swd --write $< --go -# flash with pyocd +# Flash using pyocd PYOCD_OPTION ?= flash-pyocd: $(BUILD)/$(PROJECT).hex pyocd flash -t $(PYOCD_TARGET) $(PYOCD_OPTION) $< pyocd reset -t $(PYOCD_TARGET) -# flash with Black Magic Probe +# Flash using openocd +OPENOCD_OPTION ?= +flash-openocd: $(BUILD)/$(PROJECT).elf + openocd $(OPENOCD_OPTION) -c "program $< verify reset exit" +# flash with Black Magic Probe # This symlink is created by https://github.com/blacksphere/blackmagic/blob/master/driver/99-blackmagic.rules BMP ?= /dev/ttyBmpGdb |
