修复-O2时cortex-m惰性压栈错误,以及内存访问错误时task删除hardfault错误

This commit is contained in:
ATShining
2024-11-02 21:49:13 +08:00
parent 16d4a18a86
commit cdb4253148
11 changed files with 157 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#include <u_util.h>
#if !IS_ENABLED(CONFIG_MMU)
#define HEAP_SIZE 2048
#define STACK_SIZE (2048)
#define STACK_SIZE (3*1024)
#if defined(__CC_ARM)
#define HEAP_ATTR SECTION("HEAP") __attribute__((zero_init))