Files
hsb/S - Software/0 - HSB MRTS Kathode-MCP/3 - Implementation/0 - Code/Makefile
mmi 711f8e72be Fixed multiple bugs and errors.
- Added WARNING handler
- put voltage calculations to dedicated module

fixed last errors. Updated menu repair screen without ERROR from PID 

This is version 0.9.0.3, which is used for the first duration test
Will also be tagged

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@272 05563f52-14a8-4384-a975-3d1654cca0fa
2017-11-15 15:40:39 +00:00

58 lines
1.3 KiB
Makefile

# Define release version for firmware here
RELEASE_PRODUCT = \""S0\""
RELEASE_MAJOR = 0
RELEASE_MINOR = 9
RELEASE_BRANCH = 0
RELEASE_PATCH = 3
PLATFORM_OLIMEX_STM32_H107 = OLI_STM32_H107
export RELEASE_DEFINES = \
-DRELEASE_PRODUCT=$(RELEASE_PRODUCT) \
-DRELEASE_MAJOR=$(RELEASE_MAJOR) \
-DRELEASE_MINOR=$(RELEASE_MINOR) \
-DRELEASE_BRANCH=$(RELEASE_BRANCH) \
-DRELEASE_PATCH=$(RELEASE_PATCH) \
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
pho_hsb_olimex_stm32_h107:
@echo ------------------------------------------
@echo MAKE: $@
@echo ------------------------------------------
$(MAKE) -C STM32F10x_StdPeriph_Lib_V3.5.0
$(MAKE) -C Platform
$(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:
$(MAKE) -C STM32F10x_StdPeriph_Lib_V3.5.0 clean
$(MAKE) -C HAL clean
$(MAKE) -C Platform clean
$(MAKE) -C hsb-mrts clean
.PHONY: all clean