mirror of https://github.com/ARMmbed/mbed-os.git
Updated linker script for IAR and ARM to increase heap size by moving BSS to the 32K ram
parent
85762a86b1
commit
837e86df28
|
@ -60,11 +60,11 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
|
||||||
RW_m_crash_data MBED_CRASH_REPORT_RAM_START EMPTY MBED_CRASH_REPORT_RAM_SIZE { ; RW data
|
RW_m_crash_data MBED_CRASH_REPORT_RAM_START EMPTY MBED_CRASH_REPORT_RAM_SIZE { ; RW data
|
||||||
}
|
}
|
||||||
RW_IRAM1 MBED_RAM0_START MBED_RAM0_SIZE-Stack_Size { ; RW data 96k L4-SRAM1
|
RW_IRAM1 MBED_RAM0_START MBED_RAM0_SIZE-Stack_Size { ; RW data 96k L4-SRAM1
|
||||||
.ANY (+RW +ZI)
|
.ANY (+RW, +Last)
|
||||||
}
|
}
|
||||||
; Total: 98 vectors = 392 bytes (0x188) to be reserved in RAM
|
; Total: 98 vectors = 392 bytes (0x188) to be reserved in RAM
|
||||||
RW_IRAM2 (0x10000000+0x188) (0x08000-0x188) { ; RW data 32k L4-ECC-SRAM2 retained in standby
|
RW_IRAM2 (0x10000000+0x188) (0x08000-0x188) { ; ZI data 32k L4-ECC-SRAM2
|
||||||
.ANY (+RW +ZI)
|
.ANY (+ZI)
|
||||||
}
|
}
|
||||||
ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE) EMPTY -Stack_Size { ; stack
|
ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE) EMPTY -Stack_Size { ; stack
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE;
|
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE;
|
||||||
define symbol __size_heap__ = 0x10000;
|
define symbol __size_heap__ = 0x17000;
|
||||||
define block CSTACK with alignment = 8, size = __size_cstack__ { };
|
define block CSTACK with alignment = 8, size = __size_cstack__ { };
|
||||||
define block HEAP with alignment = 8, size = __size_heap__ { };
|
define block HEAP with alignment = 8, size = __size_heap__ { };
|
||||||
|
|
||||||
|
@ -44,4 +44,4 @@ place at address mem:__intvec_start__ { readonly section .intvec };
|
||||||
|
|
||||||
place in ROM_region { readonly };
|
place in ROM_region { readonly };
|
||||||
place in SRAM1_region { readwrite, block HEAP };
|
place in SRAM1_region { readwrite, block HEAP };
|
||||||
place in SRAM2_region { block CSTACK };
|
place in SRAM2_region { first block CSTACK, zeroinit };
|
||||||
|
|
Loading…
Reference in New Issue