Skip to content

Commit 5a9ea2c

Browse files
author
Mohammad Azim Khan
committed
Heap size adjusted to work for both tls-client and mbed-client
Targets NUCLEO_F429ZI and UBLOX_EVK_ODIN_W2 have 192K RAM. Heap size in PR ARMmbed#3871 was increased from 48K to 96K as tls-client example failed with 48K heap. But this resulted in compilation failures in mbed-client that requires 71K for global/static data. Hence this PR reduces heap to 64K that minimum required by tls-client to work. This also meets mbed-client data segment requirements.
1 parent 88a4baa commit 5a9ea2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/TOOLCHAIN_IAR/stm32f429xx_flash.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
1515
define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000;
1616
define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF;
1717
/*-Sizes-*/
18-
/*Heap 1/2 of ram and stack 1/8*/
18+
/*Heap 64K and stack 24K */
1919
define symbol __ICFEDIT_size_cstack__ = 0x6000;
20-
define symbol __ICFEDIT_size_heap__ = 0x18000;
20+
define symbol __ICFEDIT_size_heap__ = 0x10000;
2121
/**** End of ICF editor section. ###ICF###*/
2222

2323

targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/device/TOOLCHAIN_IAR/stm32f439xx_flash.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
1515
define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000;
1616
define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF;
1717
/*-Sizes-*/
18-
/*Heap 1/2 of ram and stack 1/8*/
18+
/*Heap 64kB and stack 24kB */
1919
define symbol __ICFEDIT_size_cstack__ = 0x6000;
20-
define symbol __ICFEDIT_size_heap__ = 0x18000;
20+
define symbol __ICFEDIT_size_heap__ = 0x10000;
2121
/**** End of ICF editor section. ###ICF###*/
2222

2323

0 commit comments

Comments
 (0)