2018-12-12 15:28:48 +01:00
|
|
|
# define the cpu used by the board
|
|
|
|
export CPU = kinetis
|
|
|
|
export CPU_MODEL = mkw41z512vht4
|
|
|
|
|
2019-02-20 19:25:05 +01:00
|
|
|
# include this module into the build
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/kw41z/include
|
|
|
|
|
2018-12-12 15:28:48 +01:00
|
|
|
# use openocd by default to program this board
|
|
|
|
PROGRAMMER ?= openocd
|
|
|
|
|
|
|
|
# dap debug adapter is required for openocd
|
|
|
|
ifeq (openocd,$(PROGRAMMER))
|
|
|
|
DEBUG_ADAPTER = dap
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Enable direct write to FCF (required for setting FOPT byte).
|
|
|
|
export OPENOCD_PRE_FLASH_CMDS += "-c kinetis fcf_source write"
|
|
|
|
|
|
|
|
# Include default FRDM board config
|
|
|
|
include $(RIOTBOARD)/common/frdm/Makefile.include
|