Skip to content

Commit 2de0b6d

Browse files
committed
Update MCUXpresso SDK for iMX-RT too
1 parent 871fe8a commit 2de0b6d

8 files changed

Lines changed: 38 additions & 28 deletions

File tree

.github/workflows/test-configs.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,74 +42,85 @@ jobs:
4242
config-file: ./config/examples/same51-dualbank.config
4343

4444
imx_rt1040_test:
45-
uses: ./.github/workflows/test-build-mcux-sdk.yml
45+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
4646
with:
4747
arch: arm
4848
config-file: ./config/examples/imx-rt1040.config
49+
board-name: evkmimxrt1040
4950

5051
imx_rt1050_test:
51-
uses: ./.github/workflows/test-build-mcux-sdk.yml
52+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
5253
with:
5354
arch: arm
5455
config-file: ./config/examples/imx-rt1050.config
56+
board-name: evkbimxrt1050
5557

5658
imx_rt1060_test:
57-
uses: ./.github/workflows/test-build-mcux-sdk.yml
59+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
5860
with:
5961
arch: arm
6062
config-file: ./config/examples/imx-rt1060.config
63+
board-name: evkbmimxrt1060
6164

6265
imx_rt1064_test:
63-
uses: ./.github/workflows/test-build-mcux-sdk.yml
66+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
6467
with:
6568
arch: arm
6669
config-file: ./config/examples/imx-rt1064.config
70+
board-name: evkmimxrt1064
6771

6872
imx_rt1040_test_pka:
69-
uses: ./.github/workflows/test-build-mcux-sdk.yml
73+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
7074
with:
7175
arch: arm
7276
config-file: ./config/examples/imx-rt1040.config
77+
board-name: evkmimxrt1040
7378
make-args: PKA=1 NO_ARM_ASM=1
7479

7580
imx_rt1050_test_pka:
76-
uses: ./.github/workflows/test-build-mcux-sdk.yml
81+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
7782
with:
7883
arch: arm
7984
config-file: ./config/examples/imx-rt1050.config
85+
board-name: evkbimxrt1050
8086
make-args: PKA=1 NO_ARM_ASM=1
8187

8288
imx_rt1060_test_pka:
83-
uses: ./.github/workflows/test-build-mcux-sdk.yml
89+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
8490
with:
8591
arch: arm
8692
config-file: ./config/examples/imx-rt1060.config
93+
board-name: evkbmimxrt1060
8794
make-args: PKA=1 NO_ARM_ASM=1
8895

8996
imx_rt1064_test_pka:
90-
uses: ./.github/workflows/test-build-mcux-sdk.yml
97+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
9198
with:
9299
arch: arm
93100
config-file: ./config/examples/imx-rt1064.config
101+
board-name: evkmimxrt1064
94102
make-args: PKA=1 NO_ARM_ASM=1
95103

96104
imx_rt1060_hab_test:
97-
uses: ./.github/workflows/test-build-mcux-sdk.yml
105+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
98106
with:
99107
arch: arm
100108
config-file: ./config/examples/imx-rt1060_hab.config
109+
board-name: evkbmimxrt1060
101110

102111
kinetis_k64f_test:
103-
uses: ./.github/workflows/test-build-mcux-sdk.yml
112+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
104113
with:
105114
arch: arm
106115
config-file: ./config/examples/kinetis-k64f.config
116+
board-name: frdmk64f
107117

108118
kinetis_k82f_test:
109-
uses: ./.github/workflows/test-build-mcux-sdk.yml
119+
uses: ./.github/workflows/test-build-mcux-sdk-manifests.yml
110120
with:
111121
arch: arm
112122
config-file: ./config/examples/kinetis-k82f.config
123+
board-name: frdmk82f
113124

114125
library_test:
115126
uses: ./.github/workflows/test-build.yml

arch.mk

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -827,9 +827,6 @@ ifeq ($(TARGET),imx_rt)
827827
-I$(MCUXPRESSO)/components/lists \
828828
-I$(MCUXPRESSO)/components/str
829829
CFLAGS+=-DDCB=CoreDebug -DDCB_DEMCR_TRCENA_Msk=CoreDebug_DEMCR_TRCENA_Msk
830-
CFLAGS+=\
831-
-I$(MCUXPRESSO)/utilities/str \
832-
-I$(MCUXPRESSO)/utilities/debug_console
833830
OBJS+=\
834831
$(MCUXPRESSO_DRIVERS)/drivers/fsl_clock.o \
835832
$(MCUXPRESSO)/drivers/flexspi/fsl_flexspi.o \
@@ -870,9 +867,10 @@ ifeq ($(TARGET),imx_rt)
870867
ifeq ($(MCUXPRESSO_CPU),MIMXRT1062DVL6A)
871868
ARCH_FLASH_OFFSET=0x60000000
872869
ifeq ($(MCUXSDK),1)
873-
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkmimxrt1060/xip/
874-
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkmimxrt1060
875-
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkmimxrt1060/project_template
870+
# Use evkbmimxrt1060 because evkmimxrt1060 is not supported by the SDK
871+
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkbmimxrt1060/xip/
872+
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkbmimxrt1060
873+
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkbmimxrt1060/project_template
876874
CFLAGS+=-I$(MCUXPRESSO)/devices/RT/RT1050/MIMXRT1052
877875
else
878876
CFLAGS+=-I$(MCUXPRESSO)/boards/evkmimxrt1060/xip/
@@ -894,9 +892,10 @@ ifeq ($(TARGET),imx_rt)
894892
ifeq ($(MCUXPRESSO_CPU),MIMXRT1061CVJ5B)
895893
ARCH_FLASH_OFFSET=0x60000000
896894
ifeq ($(MCUXSDK),1)
897-
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkmimxrt1060/xip/
898-
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkmimxrt1060
899-
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkmimxrt1060/project_template
895+
# Use evkbmimxrt1060 because evkmimxrt1060 is not supported by the SDK
896+
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkbmimxrt1060/xip/
897+
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkbmimxrt1060
898+
CFLAGS+=-I$(MCUXPRESSO)/examples/_boards/evkbmimxrt1060/project_template
900899
CFLAGS+=-I$(MCUXPRESSO)/devices/RT/RT1050/MIMXRT1052
901900
else
902901
CFLAGS+=-I$(MCUXPRESSO)/boards/evkmimxrt1060/xip/

config/examples/imx-rt1040.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARCH?=ARM
22
TARGET?=imx_rt
33
SIGN?=ECC256
44
HASH?=SHA256
5-
MCUXSDK?=0
5+
MCUXSDK?=1
66
MCUXPRESSO?=$(PWD)/../NXP/mcuxpresso-sdk/mcuxsdk
77
MCUXPRESSO_CMSIS?=$(PWD)/../NXP/CMSIS_5/CMSIS
88
MCUXPRESSO_CPU?=MIMXRT1042XJM5B

config/examples/imx-rt1050.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARCH?=ARM
22
TARGET?=imx_rt
33
SIGN?=ECC256
44
HASH?=SHA256
5-
MCUXSDK?=0
5+
MCUXSDK?=1
66
MCUXPRESSO?=$(PWD)/../NXP/mcuxpresso-sdk/mcuxsdk
77
MCUXPRESSO_CMSIS?=$(PWD)/../NXP/CMSIS_5/CMSIS
88
MCUXPRESSO_CPU?=MIMXRT1052DVJ6B

config/examples/imx-rt1060.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARCH?=ARM
22
TARGET?=imx_rt
33
SIGN?=ECC256
44
HASH?=SHA256
5-
MCUXSDK?=0
5+
MCUXSDK?=1
66
MCUXPRESSO?=$(PWD)/../NXP/mcuxpresso-sdk/mcuxsdk
77
MCUXPRESSO_CMSIS?=$(PWD)/../NXP/CMSIS_5/CMSIS
88
MCUXPRESSO_CPU?=MIMXRT1062DVL6A

config/examples/imx-rt1060_hab.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TARGET?=imx_rt
33
TARGET_IMX_HAB?=1
44
SIGN?=ECC256
55
HASH?=SHA256
6-
MCUXSDK?=0
6+
MCUXSDK?=1
77
MCUXPRESSO?=$(PWD)/../NXP/mcuxpresso-sdk/mcuxsdk
88
MCUXPRESSO_CMSIS?=$(PWD)/../NXP/CMSIS_5/CMSIS
99
MCUXPRESSO_CPU?=MIMXRT1062DVL6A

config/examples/imx-rt1064.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ ARCH?=ARM
22
TARGET?=imx_rt
33
SIGN?=ECC256
44
HASH?=SHA256
5-
MCUXSDK?=0
5+
MCUXSDK?=1
66
MCUXPRESSO?=$(PWD)/../NXP/mcuxpresso-sdk/mcuxsdk
77
MCUXPRESSO_CMSIS?=$(PWD)/../NXP/CMSIS_5/CMSIS
88
MCUXPRESSO_CPU?=MIMXRT1064DVL6A
9-
MCUXPRESSO_DRIVERS?=$(MCUXPRESSO)/devices/RT/RT1060/MIMXRT1064
9+
MCUXPRESSO_DRIVERS?=$(MCUXPRESSO)/devices/RT/RT1064/MIMXRT1064
1010
DEBUG?=0
1111
VTOR?=1
1212
CORTEX_M0?=0

hal/imx_rt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
#define USE_GET_CONFIG
4141
#endif
4242
#ifdef CPU_MIMXRT1062DVL6A
43-
#include "evkmimxrt1060_flexspi_nor_config.h"
43+
#include "evkbmimxrt1060_flexspi_nor_config.h"
4444
#define USE_GET_CONFIG
4545
#endif
4646
#ifdef CPU_MIMXRT1062DVL6B
4747
#include "evkbmimxrt1060_flexspi_nor_config.h"
4848
#define USE_GET_CONFIG
4949
#endif
5050
#ifdef CPU_MIMXRT1061CVJ5B
51-
#include "evkmimxrt1060_flexspi_nor_config.h"
51+
#include "evkbmimxrt1060_flexspi_nor_config.h"
5252
#define USE_GET_CONFIG
5353
#endif
5454
#ifdef CPU_MIMXRT1052DVJ6B

0 commit comments

Comments
 (0)