makefile, part var

This commit is contained in:
Ajit Ananthadevan 2025-08-03 02:12:14 +10:00
parent c2dd21345b
commit 16d262897b

View file

@ -2,6 +2,7 @@
# target
######################################
TARGET = blinky
PART = EFR32BG22C224F512GM32
######################################
@ -63,7 +64,7 @@ CPU = \
-imacros sl_gcc_preinclude.h \
-mcmse
DEFINES = -DEFR32BG22C224F512GM32
DEFINES = -D$(PART)
# fpu
FPU =
@ -90,7 +91,7 @@ CFLAGS += -g
endif
# Generate dependency information <<<<<<<<<<<<<<<<<<<<<<< check
# Generate dependency information
CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)"
@ -161,6 +162,9 @@ $(BUILD_DIR):
# Program
#######################################
flash: $(BUILD_DIR)/$(TARGET).bin
pyocd load --target $(PART) $(BUILD_DIR)/$(TARGET).bin
#######################################
# clean up
#######################################