mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
|
CFLAGS += \
|
||
|
-mthumb \
|
||
|
-mabi=aapcs \
|
||
|
-mcpu=cortex-m7 \
|
||
|
-mfloat-abi=hard \
|
||
|
-mfpu=fpv5-d16 \
|
||
|
-D__ARMVFP__=0 -D__ARMFPV5__=0\
|
||
|
-DCPU_MIMXRT1064DVL6A \
|
||
|
-DXIP_EXTERNAL_FLASH=1 \
|
||
|
-DXIP_BOOT_HEADER_ENABLE=1 \
|
||
|
-DCFG_TUSB_MCU=OPT_MCU_RT10XX \
|
||
|
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data")))' \
|
||
|
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||
|
|
||
|
# mcu driver cause following warnings
|
||
|
#CFLAGS += -Wno-error=float-equal -Wno-error=nested-externs
|
||
|
CFLAGS += -Wno-error=unused-parameter
|
||
|
|
||
|
MCU_DIR = hw/mcu/nxp/sdk/devices/MIMXRT1064
|
||
|
|
||
|
# All source paths should be relative to the top level.
|
||
|
LD_FILE = $(MCU_DIR)/gcc/MIMXRT1064xxxxx_flexspi_nor.ld
|
||
|
|
||
|
SRC_C += \
|
||
|
$(MCU_DIR)/system_MIMXRT1064.c \
|
||
|
$(MCU_DIR)/xip/fsl_flexspi_nor_boot.c \
|
||
|
$(MCU_DIR)/project_template/clock_config.c \
|
||
|
$(MCU_DIR)/drivers/fsl_clock.c \
|
||
|
$(MCU_DIR)/drivers/fsl_gpio.c \
|
||
|
$(MCU_DIR)/drivers/fsl_common.c \
|
||
|
$(MCU_DIR)/drivers/fsl_lpuart.c
|
||
|
|
||
|
INC += \
|
||
|
$(TOP)/hw/bsp/$(BOARD) \
|
||
|
$(TOP)/$(MCU_DIR)/../../CMSIS/Include \
|
||
|
$(TOP)/$(MCU_DIR) \
|
||
|
$(TOP)/$(MCU_DIR)/drivers \
|
||
|
$(TOP)/$(MCU_DIR)/project_template \
|
||
|
|
||
|
SRC_S += $(MCU_DIR)/gcc/startup_MIMXRT1064.S
|
||
|
|
||
|
# For TinyUSB port source
|
||
|
VENDOR = nxp
|
||
|
CHIP_FAMILY = lpc18_43
|
||
|
|
||
|
# For freeRTOS port source
|
||
|
FREERTOS_PORT = ARM_CM7
|
||
|
|
||
|
# For flash-jlink target
|
||
|
JLINK_DEVICE = MIMXRT1064xxx6A
|
||
|
JLINK_IF = swd
|
||
|
|
||
|
# flash using pyocd
|
||
|
flash: $(BUILD)/$(BOARD)-firmware.hex
|
||
|
pyocd flash -t mimxrt1050_quadspi $<
|