Adjust stack & heap for IAR on STM32F412xG

pull/8225/head
Juho Eskeli 2018-09-24 11:27:42 +03:00
parent 1a638c7870
commit d0ac092e68
1 changed files with 3 additions and 2 deletions

View File

@ -18,8 +18,9 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
/* Stack and Heap */
define symbol __size_cstack__ = 0x8000;
define symbol __size_heap__ = 0x10000;
/*Heap 84kB and stack 1kB */
define symbol __size_cstack__ = 0x400;
define symbol __size_heap__ = 0x15000;
define block CSTACK with alignment = 8, size = __size_cstack__ { };
define block HEAP with alignment = 8, size = __size_heap__ { };
define block STACKHEAP with fixed order { block HEAP, block CSTACK };