27 lines
581 B
Makefile
Raw Normal View History

MCU = MKL25Z4
2020-11-27 00:49:25 +09:00
CFLAGS += \
-DCPU_MKL25Z128VLK4 \
2023-03-18 20:30:49 +07:00
-DCFG_EXAMPLE_VIDEO_READONLY \
-DCFG_EXAMPLE_MSC_READONLY
2020-11-27 00:49:25 +09:00
# mcu driver cause following warnings
2022-06-29 14:06:44 +07:00
CFLAGS += -Wno-error=unused-parameter -Wno-error=format -Wno-error=redundant-decls
2020-11-27 00:49:25 +09:00
SRC_C += \
$(BOARD_PATH)/clock_config.c \
2020-11-27 00:49:25 +09:00
# All source paths should be relative to the top level.
LD_FILE = $(FAMILY_PATH)/gcc/MKL25Z128xxx4_flash.ld
SRC_S += $(FAMILY_PATH)/gcc/startup_$(MCU).S
2020-11-27 00:49:25 +09:00
# For flash-jlink target
JLINK_DEVICE = MKL25Z128xxx4
# For flash-pyocd target
PYOCD_TARGET = mkl25zl128
# flash using pyocd
flash: flash-jlink