This commit is contained in:
2022-08-06 12:51:54 +02:00
parent 367497cced
commit 1c2cc9731f
5 changed files with 43 additions and 8 deletions
+4 -1
View File
@@ -53,7 +53,7 @@ INCLUDE = -I$(PRJ_SRC_DIR) -I$(LIB_INC_DIR) -I$(SPL_INC_DIR)
# collect all source directories
VPATH=$(PRJ_SRC_DIR):$(SPL_SRC_DIR)
.PHONY: clean
.PHONY: clean unlock flash all
all: $(TARGET)
@@ -70,5 +70,8 @@ $(TARGET): $(PRJ_OBJECTS)
flash: $(TARGET)
stm8flash -c stlinkv2 -p $(DEVICE_FLASH) -s flash -w $(TARGET)
unlock:
stm8flash -c stlinkv2 -p stm8s103f3 -u
clean:
rm $(OUTPUT_DIR)/*