fix heap memory error : start from _bss_end and conflict with stack segment

This commit is contained in:
Liu_Weichao
2022-10-19 14:27:44 +08:00
parent 9802c89fd6
commit e26c93a666
4 changed files with 7 additions and 29 deletions
+2 -2
View File
@@ -35,11 +35,11 @@ Modification:
#include <stdint.h>
extern int __bss_end;
extern int __heap_start;
extern unsigned int g_service_table_start;
extern unsigned int g_service_table_end;
#define MEMORY_START_ADDRESS (&__bss_end)
#define MEMORY_START_ADDRESS (&__heap_start)
#define HC32F4_SRAM_SIZE 512
#define MEMORY_END_ADDRESS (0x1FFE0000 + HC32F4_SRAM_SIZE * 1024)