[bsp][stm32h743-nucleo] fix the bug of HEAP_BEGIN define.

This commit is contained in:
nongxiaoming 2018-12-20 16:41:41 +08:00
parent a12591e37e
commit 574abc8a23
1 changed files with 2 additions and 10 deletions

View File

@ -33,16 +33,8 @@
#define EXT_SDRAM_END (EXT_SDRAM_BEGIN + EXT_SDRAM_SIZE)
// </e>
#ifdef __CC_ARM
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
#pragma section="HEAP"
#define HEAP_BEGIN (__segment_end("HEAP"))
#else
extern int __bss_end;
#define HEAP_BEGIN (&__bss_end)
#endif
#define HEAP_BEGIN 0x24000000
// <o> Internal SRAM memory size[Kbytes] <8-64>
// <i>Default: 64