Skip to content

Commit f801a61

Browse files
committed
Make use of the other 32K of RAM if not used by libraries, least priority is IRAM1 to help maximise heap availability.
Most beneficial when LWIP is not in use.
1 parent b82cfcc commit f801a61

File tree

1 file changed

+4
-1
lines changed
  • targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_ARM_STD

1 file changed

+4
-1
lines changed

targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_ARM_STD/LPC1768.sct

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,20 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
2929
; 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8
3030
; 32KB (RAM size) - 0xC8 (NIVT) - 32 (topmost 32 bytes used by IAP functions) = 0x7F18
3131
RW_IRAM1 0x100000C8 0x7F18-Stack_Size {
32-
.ANY (+RW +ZI)
32+
.ANY1 (+RW +ZI)
3333
}
3434
ARM_LIB_STACK (0x100000C8+0x7F18) EMPTY -Stack_Size { ; stack
3535
}
3636
RW_IRAM2 0x2007C000 0x4000 { ; RW data, ETH RAM
3737
.ANY (AHBSRAM0)
38+
.ANY2 (+RW +ZI)
3839
}
3940
RW_IRAM3 0x20080000 0x4000 { ; RW data, ETH RAM
4041
.ANY (AHBSRAM1)
42+
.ANY3 (+RW +ZI)
4143
}
4244
RW_IRAM4 0x40038000 0x0800 { ; RW data, CAN RAM
4345
.ANY (CANRAM)
46+
.ANY4 (+RW +ZI)
4447
}
4548
}

0 commit comments

Comments
 (0)