Skip to content

Commit

Permalink
Merge pull request #14131 from hugueskamba/hk_heap_size_fix_arm_ssg
Browse files Browse the repository at this point in the history
MUSCA_B1: Fix heap size formula in scatter files
  • Loading branch information
0xc0170 committed Jan 11, 2021
2 parents 331cebe + 96dbb42 commit 549f887
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -39,6 +39,8 @@

#define VECTOR_SIZE NVIC_RAM_VECTOR_SIZE

#define MBED_RAM1_START (MBED_RAM_START+VECTOR_SIZE)

#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
Expand All @@ -55,12 +57,12 @@ LR_CODE MBED_ROM_START MBED_ROM_SIZE {
.ANY (+RO)
}

RW_IRAM1 (MBED_RAM_START+VECTOR_SIZE) (MBED_RAM_SIZE-VECTOR_SIZE) {
RW_IRAM1 MBED_RAM1_START (MBED_RAM_SIZE-VECTOR_SIZE) {
* (+RW) ; RW data that gets copied from Flash to SRAM
* (+ZI) ; ZI data that gets initialised to zero in SRAM
}

ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_SIZE-RAM_FIXED_SIZE+MBED_RAM_START-AlignExpr(ImageLimit(RW_IRAM1), 16)) {
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_SIZE-RAM_FIXED_SIZE+MBED_RAM1_START-AlignExpr(ImageLimit(RW_IRAM1), 16)) {
}

ARM_LIB_STACK (MBED_RAM_START+MBED_RAM_SIZE) EMPTY -MBED_CONF_TARGET_BOOT_STACK_SIZE { ; stack
Expand Down

0 comments on commit 549f887

Please sign in to comment.