mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
fix cortex M7, M23, M33 freertos build
This commit is contained in:
parent
487b887f80
commit
6a1416d18a
@ -13,13 +13,13 @@ INC += \
|
|||||||
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
||||||
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||||
|
|
||||||
# FreeRTOS source
|
# FreeRTOS source, all files in port folder
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
$(FREERTOS_SRC)/list.c \
|
$(FREERTOS_SRC)/list.c \
|
||||||
$(FREERTOS_SRC)/queue.c \
|
$(FREERTOS_SRC)/queue.c \
|
||||||
$(FREERTOS_SRC)/tasks.c \
|
$(FREERTOS_SRC)/tasks.c \
|
||||||
$(FREERTOS_SRC)/timers.c \
|
$(FREERTOS_SRC)/timers.c \
|
||||||
$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/port.c
|
$(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c))
|
||||||
|
|
||||||
# FreeRTOS (lto + Os) linker issue
|
# FreeRTOS (lto + Os) linker issue
|
||||||
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
||||||
|
@ -103,6 +103,15 @@
|
|||||||
#error "FreeRTOSConfig.h need to include low level mcu header for configuration"
|
#error "FreeRTOSConfig.h need to include low level mcu header for configuration"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern uint32_t SystemCoreClock;
|
||||||
|
|
||||||
|
|
||||||
|
/* Cortex M23/M33 port configuration. */
|
||||||
|
#define configENABLE_MPU 0
|
||||||
|
#define configENABLE_FPU 1
|
||||||
|
#define configENABLE_TRUSTZONE 0
|
||||||
|
#define configMINIMAL_SECURE_STACK_SIZE ( 1024 )
|
||||||
|
|
||||||
#define configUSE_PREEMPTION 1
|
#define configUSE_PREEMPTION 1
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
||||||
#define configCPU_CLOCK_HZ SystemCoreClock
|
#define configCPU_CLOCK_HZ SystemCoreClock
|
||||||
|
@ -3,6 +3,8 @@ CFLAGS += \
|
|||||||
-mthumb \
|
-mthumb \
|
||||||
-mabi=aapcs \
|
-mabi=aapcs \
|
||||||
-mcpu=cortex-m4 \
|
-mcpu=cortex-m4 \
|
||||||
|
-mfloat-abi=hard \
|
||||||
|
-mfpu=fpv4-sp-d16 \
|
||||||
-nostdlib \
|
-nostdlib \
|
||||||
-DCORE_M4 \
|
-DCORE_M4 \
|
||||||
-DCFG_TUSB_MCU=OPT_MCU_LPC43XX \
|
-DCFG_TUSB_MCU=OPT_MCU_LPC43XX \
|
||||||
|
@ -39,7 +39,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = lpc_ip3511
|
CHIP_FAMILY = lpc_ip3511
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM33
|
FREERTOS_PORT = ARM_CM33/non_secure
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = LPC55S69
|
JLINK_DEVICE = LPC55S69
|
||||||
|
@ -42,7 +42,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = transdimension
|
CHIP_FAMILY = transdimension
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7/r0p1
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = MIMXRT1011DAE5A
|
JLINK_DEVICE = MIMXRT1011DAE5A
|
||||||
|
@ -41,7 +41,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = transdimension
|
CHIP_FAMILY = transdimension
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7/r0p1
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = MIMXRT1015DAF5A
|
JLINK_DEVICE = MIMXRT1015DAF5A
|
||||||
|
@ -42,7 +42,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = transdimension
|
CHIP_FAMILY = transdimension
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7/r0p1
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = MIMXRT1021DAG5A
|
JLINK_DEVICE = MIMXRT1021DAG5A
|
||||||
|
@ -42,7 +42,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = transdimension
|
CHIP_FAMILY = transdimension
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7/r0p1
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = MIMXRT1052xxx6B
|
JLINK_DEVICE = MIMXRT1052xxx6B
|
||||||
|
@ -42,7 +42,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = transdimension
|
CHIP_FAMILY = transdimension
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7/r0p1
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = MIMXRT1062xxx6A
|
JLINK_DEVICE = MIMXRT1062xxx6A
|
||||||
|
@ -42,7 +42,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = transdimension
|
CHIP_FAMILY = transdimension
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7/r0p1
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = MIMXRT1064xxx6A
|
JLINK_DEVICE = MIMXRT1064xxx6A
|
||||||
|
@ -42,7 +42,7 @@ VENDOR = nxp
|
|||||||
CHIP_FAMILY = transdimension
|
CHIP_FAMILY = transdimension
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7/r0p1
|
||||||
|
|
||||||
# For flash-jlink target
|
# For flash-jlink target
|
||||||
JLINK_DEVICE = MIMXRT1062xxx6A
|
JLINK_DEVICE = MIMXRT1062xxx6A
|
||||||
|
Loading…
x
Reference in New Issue
Block a user