mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-18 02:42:37 +00:00
cortex m33+nodsp+nofpu make file created
This commit is contained in:
parent
45454c53f1
commit
b9c6b22165
18
examples/build_system/make/cpu/cortex-m33-nodsp-nofp.mk
Normal file
18
examples/build_system/make/cpu/cortex-m33-nodsp-nofp.mk
Normal file
@ -0,0 +1,18 @@
|
||||
ifeq ($(TOOLCHAIN),gcc)
|
||||
CFLAGS += \
|
||||
-mthumb \
|
||||
-mcpu=cortex-m33+nodsp \
|
||||
-mfloat-abi=soft \
|
||||
|
||||
#else ifeq ($(TOOLCHAIN),iar)
|
||||
# CFLAGS += \
|
||||
# --cpu cortex-m33 \
|
||||
# --fpu VFPv5-SP \
|
||||
#
|
||||
# ASFLAGS += \
|
||||
# --cpu cortex-m33 \
|
||||
# --fpu VFPv5-SP \
|
||||
#
|
||||
endif
|
||||
#
|
||||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM33_NTZ/non_secure
|
@ -4,19 +4,6 @@ PORT = 0
|
||||
|
||||
CFLAGS += \
|
||||
-DCPU_MCXA153VLH \
|
||||
-DCPU_MCXA153VLH_cm33_nodsp \
|
||||
-DPRINTF_FLOAT_ENABLE=0 \
|
||||
-DSCANF_FLOAT_ENABLE=0 \
|
||||
-DPRINTF_ADVANCED_ENABLE=0 \
|
||||
-DSCANF_ADVANCED_ENABLE=0 \
|
||||
-mcpu=cortex-m33+nodsp+nofp+nosimd
|
||||
|
||||
#FORCING NOT TO USE DPS AND FPU UNITS (THIS CHIP DOESN'T HAVE)
|
||||
CFLAGS += -D__SOFTFP__
|
||||
# Undefine __ARM_FEATURE_DSP if it's already defined
|
||||
CFLAGS += -U__ARM_FEATURE_DSP
|
||||
# Define __ARM_FEATURE_DSP with the new value
|
||||
CFLAGS += -D__ARM_FEATURE_DSP=0
|
||||
|
||||
|
||||
JLINK_DEVICE = MCXA153
|
||||
|
@ -4,7 +4,7 @@ SDK_DIR = hw/mcu/nxp/mcux-sdk
|
||||
DEPS_SUBMODULES += $(SDK_DIR) lib/CMSIS_5 #not found
|
||||
|
||||
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
CPU_CORE ?= cortex-m33
|
||||
CPU_CORE ?= cortex-m33-nodsp-nofp
|
||||
|
||||
CFLAGS += \
|
||||
-flto \
|
||||
|
Loading…
x
Reference in New Issue
Block a user