Skip to content

Commit

Permalink
samples: matter: Enable LTO for all nRF7002 DK variants.
Browse files Browse the repository at this point in the history
We need to use Link Time Optimization to fit the code into the
FLASH memory space.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
  • Loading branch information
ArekBalysNordic authored and carlescufi committed Oct 19, 2024
1 parent ac78181 commit 6b61fc8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions samples/matter/lock/boards/nrf7002dk_nrf5340_cpuapp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Enable LTO to decrease the flash usage.
CONFIG_LTO=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

0 comments on commit 6b61fc8

Please sign in to comment.