From 15a771f134b0c0d5033df054420fc571be80dcc1 Mon Sep 17 00:00:00 2001 From: kurisaw <2053731441@qq.com> Date: Tue, 2 Sep 2025 10:06:21 +0800 Subject: [PATCH 1/2] fix heap mem dependence --- rt-thread/bsp/_template/cubemx_config/rtconfig.h | 1 + rt-thread/bsp/_template/rtconfig.h | 1 + 2 files changed, 2 insertions(+) diff --git a/rt-thread/bsp/_template/cubemx_config/rtconfig.h b/rt-thread/bsp/_template/cubemx_config/rtconfig.h index 39d315f..8141610 100644 --- a/rt-thread/bsp/_template/cubemx_config/rtconfig.h +++ b/rt-thread/bsp/_template/cubemx_config/rtconfig.h @@ -106,6 +106,7 @@ // Dynamic Heap Management #define RT_USING_HEAP #define RT_USING_SMALL_MEM +#define RT_USING_SMALL_MEM_AS_HEAP // // using tiny size of memory // using tiny size of memory diff --git a/rt-thread/bsp/_template/rtconfig.h b/rt-thread/bsp/_template/rtconfig.h index 39d315f..8141610 100644 --- a/rt-thread/bsp/_template/rtconfig.h +++ b/rt-thread/bsp/_template/rtconfig.h @@ -106,6 +106,7 @@ // Dynamic Heap Management #define RT_USING_HEAP #define RT_USING_SMALL_MEM +#define RT_USING_SMALL_MEM_AS_HEAP // // using tiny size of memory // using tiny size of memory From 651b32d092b7530160a38f240a45abd7ce3455fc Mon Sep 17 00:00:00 2001 From: kurisaw <2053731441@qq.com> Date: Tue, 2 Sep 2025 10:13:22 +0800 Subject: [PATCH 2/2] arm cortex-m33 defaults to enabling ARCH_ARM_CORTEX_SECURE. --- rt-thread/libcpu/arm/cortex-m33/cpuport.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rt-thread/libcpu/arm/cortex-m33/cpuport.c b/rt-thread/libcpu/arm/cortex-m33/cpuport.c index 44e7c28..1252fce 100644 --- a/rt-thread/libcpu/arm/cortex-m33/cpuport.c +++ b/rt-thread/libcpu/arm/cortex-m33/cpuport.c @@ -196,11 +196,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, * 0: Non-secure. * 1: Secure. */ -#ifdef ARCH_ARM_CORTEX_SECURE stack_frame->lr = 0xfffffffdL; -#else - stack_frame->lr = 0xffffffbcL; -#endif stack_frame->psplim = 0x00; /* * CONTROL register bit assignments