From 350626841a3baea98e0bb8737d844dbd814a50c1 Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Fri, 14 Jul 2023 09:47:02 +0800 Subject: [PATCH] [libcpu]fix RT_ASSERT undefine (#7816) --- .github/workflows/action.yml | 1 + bsp/imxrt/imxrt1021-nxp-evk/board/linker_scripts/link.lds | 2 ++ libcpu/arm/cortex-m7/cpu_cache.c | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index d3256cfb9a..0db22d9a79 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -184,6 +184,7 @@ jobs: - "imxrt/imxrt1052-seeed-ArchMix" - "imxrt/imxrt1060-nxp-evk" - "imxrt/imxrt1064-nxp-evk" + - "imxrt/imxrt1021-nxp-evk" - "frdm-k64f" - "lpc176x" - "xplorer4330/M4" diff --git a/bsp/imxrt/imxrt1021-nxp-evk/board/linker_scripts/link.lds b/bsp/imxrt/imxrt1021-nxp-evk/board/linker_scripts/link.lds index cf0b16b7b9..a5ca41f9ee 100644 --- a/bsp/imxrt/imxrt1021-nxp-evk/board/linker_scripts/link.lds +++ b/bsp/imxrt/imxrt1021-nxp-evk/board/linker_scripts/link.lds @@ -69,6 +69,8 @@ MEMORY /* Define output sections */ SECTIONS { + __NCACHE_REGION_START = ORIGIN(m_nocache); + __NCACHE_REGION_SIZE = LENGTH(m_nocache); .boot_data : { KEEP(*(.boot_hdr.conf)) diff --git a/libcpu/arm/cortex-m7/cpu_cache.c b/libcpu/arm/cortex-m7/cpu_cache.c index 94e03df5a7..fe7acce2a1 100644 --- a/libcpu/arm/cortex-m7/cpu_cache.c +++ b/libcpu/arm/cortex-m7/cpu_cache.c @@ -9,6 +9,7 @@ * 2019-04-27 misonyo update to cortex-m7 series */ +#include #include #include #include