27 lines
615 B
Makefile
27 lines
615 B
Makefile
![]() |
SDK_DIR = hw/mcu/nxp/mcux-sdk
|
||
|
MCU = K32L2B31A
|
||
|
MCU_DIR = $(SDK_DIR)/devices/$(MCU)
|
||
|
|
||
|
CFLAGS += \
|
||
|
-mcpu=cortex-m0plus \
|
||
|
-DCPU_K32L2B31VLH0A \
|
||
|
-DCFG_TUSB_MCU=OPT_MCU_K32L2BXX
|
||
|
|
||
|
# mcu driver cause following warnings
|
||
|
CFLAGS += -Wno-error=unused-parameter -Wno-error=redundant-decls
|
||
|
|
||
|
# All source paths should be relative to the top level.
|
||
|
LD_FILE = $(MCU_DIR)/gcc/K32L2B31xxxxA_flash.ld
|
||
|
|
||
|
# For freeRTOS port source
|
||
|
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||
|
|
||
|
# For flash-jlink target
|
||
|
JLINK_DEVICE = K32L2B31xxxxA
|
||
|
|
||
|
# For flash-pyocd target
|
||
|
PYOCD_TARGET = K32L2B
|
||
|
|
||
|
# flash using pyocd
|
||
|
flash: flash-pyocd
|