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 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