- synchronize STM8 application and external flash layout updates\n- add assembly bootloader and assembly application test projects\n- add UART1 interrupt receive ring buffer\n- parse JDY-28M Mesh outer frames and source addresses\n- add CRC-16/MODBUS validation\n- implement relay control command 0x01 and response 0x81\n- support unicast and broadcast relay control frames\n- update host protocol, OTA documents, and serial tools
34 lines
666 B
Makefile
34 lines
666 B
Makefile
# STM8S003F3P6 汇编主程序实验工程。
|
|
# 主程序固定从0x8500开始链接,与汇编Bootloader的新地址布局匹配。
|
|
|
|
PROJECT := stm8_app_asm
|
|
BUILD_DIR := build
|
|
AS := sdasstm8
|
|
LD := sdldstm8
|
|
PACKIHX := packihx
|
|
|
|
ASMFLAGS := -plosgff
|
|
LINKFLAGS := -mjwxu -b HOME=0x8500 -b CODE=0x8568
|
|
OBJECT := $(BUILD_DIR)/app_vectors.rel
|
|
IHX := $(BUILD_DIR)/$(PROJECT).ihx
|
|
HEX := $(BUILD_DIR)/$(PROJECT).hex
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(HEX)
|
|
|
|
$(BUILD_DIR):
|
|
mkdir -p $(BUILD_DIR)
|
|
|
|
$(OBJECT): src/app_vectors.asm | $(BUILD_DIR)
|
|
$(AS) $(ASMFLAGS) -o $@ $<
|
|
|
|
$(IHX): $(OBJECT)
|
|
$(LD) $(LINKFLAGS) -i $@ $^
|
|
|
|
$(HEX): $(IHX)
|
|
$(PACKIHX) $< > $@
|
|
|
|
clean:
|
|
rm -rf $(BUILD_DIR)
|