adding segger project for stm32f4

This commit is contained in:
hathach
2019-03-10 01:24:13 +07:00
parent 0ff7d609f0
commit ddfc32f5ec
9 changed files with 15447 additions and 2 deletions

View File

@@ -27,8 +27,20 @@ VENDOR = st
CHIP_FAMILY = stm32f4
# Path to STM32 Cube Programmer CLI
STM32Prog = STM32_Programmer_CLI
ifeq ($(OS),Windows_NT)
STM32Prog = C:/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
STM32Prog = $(HOME)/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI
endif
ifeq ($(UNAME_S),Darwin)
STM32Prog = STM32_Programmer_CLI
endif
endif
# flash target to download
# flash target using on-board stlink
flash: $(BUILD)/$(BOARD)-firmware.elf
$(STM32Prog) --connect port=swd --write $< --go