summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2023-07-14 09:47:02 +0800
committerGitHub <[email protected]>2023-07-14 09:47:02 +0800
commit350626841a3baea98e0bb8737d844dbd814a50c1 (patch)
tree0ae9904ab4ff06b1d377f70bdaae0bbdeb532f6d
parent2f5e4ac27e90928183128ac0053044e67b931d8b (diff)
[libcpu]fix RT_ASSERT undefine (#7816)
-rw-r--r--.github/workflows/action.yml1
-rw-r--r--bsp/imxrt/imxrt1021-nxp-evk/board/linker_scripts/link.lds2
-rw-r--r--libcpu/arm/cortex-m7/cpu_cache.c1
3 files changed, 4 insertions, 0 deletions
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 <rtthread.h>
#include <rthw.h>
#include <rtdef.h>
#include <board.h>