54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
UF2_FAMILY_ID = 0x4fb2d5bd
|
|
SDK_DIR = hw/mcu/nxp/mcux-sdk
|
|
DEPS_SUBMODULES += $(SDK_DIR)
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
CFLAGS += \
|
|
-mthumb \
|
|
-mabi=aapcs \
|
|
-mcpu=cortex-m7 \
|
|
-mfloat-abi=hard \
|
|
-mfpu=fpv5-d16 \
|
|
-D__ARMVFP__=0 -D__ARMFPV5__=0\
|
|
-DXIP_EXTERNAL_FLASH=1 \
|
|
-DXIP_BOOT_HEADER_ENABLE=1 \
|
|
-DCFG_TUSB_MCU=OPT_MCU_MIMXRT10XX
|
|
|
|
# mcu driver cause following warnings
|
|
CFLAGS += -Wno-error=unused-parameter -Wno-error=implicit-fallthrough=
|
|
|
|
MCU_DIR = $(SDK_DIR)/devices/$(MCU_VARIANT)
|
|
|
|
# All source paths should be relative to the top level.
|
|
LD_FILE = $(MCU_DIR)/gcc/$(MCU_VARIANT)xxxxx_flexspi_nor.ld
|
|
|
|
# TODO for net_lwip_webserver exmaple, but may not needed !!
|
|
LDFLAGS += \
|
|
-Wl,--defsym,__stack_size__=0x800 \
|
|
|
|
SRC_C += \
|
|
src/portable/nxp/transdimension/dcd_transdimension.c \
|
|
$(MCU_DIR)/system_$(MCU_VARIANT).c \
|
|
$(MCU_DIR)/xip/fsl_flexspi_nor_boot.c \
|
|
$(MCU_DIR)/project_template/clock_config.c \
|
|
$(MCU_DIR)/drivers/fsl_clock.c \
|
|
$(SDK_DIR)/drivers/common/fsl_common.c \
|
|
$(SDK_DIR)/drivers/igpio/fsl_gpio.c \
|
|
$(SDK_DIR)/drivers/lpuart/fsl_lpuart.c
|
|
|
|
INC += \
|
|
$(TOP)/$(BOARD_PATH) \
|
|
$(TOP)/$(MCU_DIR)/../../CMSIS/Include \
|
|
$(TOP)/$(MCU_DIR) \
|
|
$(TOP)/$(MCU_DIR)/project_template \
|
|
$(TOP)/$(MCU_DIR)/drivers \
|
|
$(TOP)/$(SDK_DIR)/drivers/common \
|
|
$(TOP)/$(SDK_DIR)/drivers/igpio \
|
|
$(TOP)/$(SDK_DIR)/drivers/lpuart
|
|
|
|
SRC_S += $(MCU_DIR)/gcc/startup_$(MCU_VARIANT).S
|
|
|
|
# For freeRTOS port source
|
|
FREERTOS_PORT = ARM_CM7/r0p1
|
|
|