Skip to content

Commit 269c090

Browse files
mkapala-nordicanangl
authored andcommitted
applications: nrf_desktop: Reduce nRF54L05 memory footprint
Switched from speed to size optimizations for nRF54L15 DK (nRF54L05 emulated SoC) and enabled LTO in debug and release configurations to reduce memory footprint. Jira: NCSDK-31374 Signed-off-by: Mateusz Kapala <[email protected]>
1 parent effc0ce commit 269c090

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l05_cpuapp/prj.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ CONFIG_GPIO=y
7070

7171
CONFIG_REBOOT=y
7272

73-
CONFIG_SPEED_OPTIMIZATIONS=y
73+
# Optimize for size to reduce memory footprint.
74+
CONFIG_SIZE_OPTIMIZATIONS=y
75+
76+
# Activate LTO
77+
CONFIG_LTO=y
78+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
7479

7580
CONFIG_PWM=y
7681

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l05_cpuapp/prj_release.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ CONFIG_USE_SEGGER_RTT=n
7272

7373
CONFIG_REBOOT=y
7474

75-
CONFIG_SPEED_OPTIMIZATIONS=y
75+
# Optimize for size to reduce memory footprint.
76+
CONFIG_SIZE_OPTIMIZATIONS=y
77+
78+
# Activate LTO
79+
CONFIG_LTO=y
80+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
7681

7782
CONFIG_PWM=y
7883

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l05_cpuapp/prj_release_fast_pair.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ CONFIG_REBOOT=y
9494
# Optimize for size to reduce memory footprint.
9595
CONFIG_SIZE_OPTIMIZATIONS=y
9696

97+
# Activate LTO
98+
CONFIG_LTO=y
99+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
100+
97101
CONFIG_PWM=y
98102

99103
CONFIG_LED=y

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l05_cpuapp/prj_release_keyboard.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ CONFIG_USE_SEGGER_RTT=n
7979

8080
CONFIG_REBOOT=y
8181

82-
CONFIG_SPEED_OPTIMIZATIONS=y
82+
# Optimize for size to reduce memory footprint.
83+
CONFIG_SIZE_OPTIMIZATIONS=y
84+
85+
# Activate LTO
86+
CONFIG_LTO=y
87+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
8388

8489
CONFIG_PWM=y
8590

0 commit comments

Comments
 (0)