update for tla

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@253 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-10-17 08:26:39 +00:00
parent 3426a0ad9b
commit 19ce5a9e5a
4 changed files with 131 additions and 92 deletions

View File

@@ -7,6 +7,8 @@ RELEASE_PATCH = 0
PLATFORM_OLIMEX_STM32_H107 = OLI_STM32_H107
export RELEASE_DEFINES = \
-DRELEASE_PRODUCT=$(RELEASE_PRODUCT) \
-DRELEASE_MAJOR=$(RELEASE_MAJOR) \
@@ -19,6 +21,8 @@ export PLATFORM = -D$(PLATFORM_OLIMEX_STM32_H107)
export ADDITIONAL_SWITCHES = \
-DENABLE_SERIAL_LOGGING
BINARY = hsb_mrts_$(PLATFORM_OLIMEX_STM32_H107).bin
all:
$(MAKE) pho_hsb_olimex_stm32_h107
@@ -33,7 +37,14 @@ pho_hsb_olimex_stm32_h107:
$(MAKE) -C HAL
$(MAKE) -C hsb-mrts
flash:
openocd -f /usr/share/openocd/scripts/board/stm32f1discovery.cfg \
-c "init" \
-c "reset halt" \
-c "flash write_image erase $(BINARY) 0x08000000" \
-c "verify_image $(BINARY) 0x08000000" \
-c "reset run" \
-c "shutdown"
clean: