Skip to content

Commit d76a797

Browse files
krish2718NordicBuilder
authored andcommitted
samples: net: Enable LTO to fix flash overflow
Due to recent upmerge we are seeing flash overflow in aws_iot and azure_iot_hub samples, so, enable LTO to fix the build. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 468297a commit d76a797

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

samples/net/aws_iot/boards/nrf7002dk_nrf5340_cpuapp_ns.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,7 @@ CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y
109109
CONFIG_TFM_PROFILE_TYPE_SMALL=y
110110
CONFIG_PM_PARTITION_SIZE_TFM_SRAM=0xc000
111111
CONFIG_PM_PARTITION_SIZE_TFM=0x1fe00
112+
113+
# Enable LTO to save flash memory
114+
CONFIG_LTO=y
115+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

samples/net/azure_iot_hub/boards/nrf7002dk_nrf5340_cpuapp_ns.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,7 @@ CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y
104104
CONFIG_TFM_PROFILE_TYPE_SMALL=y
105105
CONFIG_PM_PARTITION_SIZE_TFM_SRAM=0xc000
106106
CONFIG_PM_PARTITION_SIZE_TFM=0x1fe00
107+
108+
# Enable LTO to save flash memory
109+
CONFIG_LTO=y
110+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ manifest:
144144
- name: nrfxlib
145145
repo-path: sdk-nrfxlib
146146
path: nrfxlib
147-
revision: pull/1745/head
147+
revision: 61ea24061c4a9c69fdb9d8e818c0eda682fba7fd
148148
- name: trusted-firmware-m
149149
repo-path: sdk-trusted-firmware-m
150150
path: modules/tee/tf-m/trusted-firmware-m

0 commit comments

Comments
 (0)