Skip to content

Commit

Permalink
Fix for iMX RT to use correct CortexM architecture.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske authored and danielinux committed Aug 21, 2023
1 parent 6ea1a1e commit adce087
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ ifeq ($(ARCH),ARM)
ifeq ($(TARGET),samr21)
CORTEX_M0=1
endif

ifeq ($(TARGET),imx_rt)
CORTEX_M7=1
endif
ifeq ($(TARGET),stm32l0)
CORTEX_M0=1
SPI_TARGET=stm32
endif

ifeq ($(TARGET),stm32g0)
CORTEX_M0=1
ARCH_FLASH_OFFSET=0x08000000
Expand Down Expand Up @@ -193,6 +194,7 @@ ifeq ($(ARCH),ARM)
endif
endif
else
# default Cortex M3/M4
ifeq ($(NO_ASM),1)
ifeq ($(SPMATH),1)
MATH_OBJS += ./lib/wolfssl/wolfcrypt/src/sp_c32.o
Expand Down Expand Up @@ -295,7 +297,6 @@ ifeq ($(TARGET),kinetis)
endif

ifeq ($(TARGET),imx_rt)
CORTEX_M7=1
CFLAGS+=\
-I$(MCUXPRESSO_DRIVERS) \
-I$(MCUXPRESSO_DRIVERS)/drivers \
Expand Down

0 comments on commit adce087

Please sign in to comment.