Skip to content

Commit ea19874

Browse files
committed
applications: nrf_desktop: enable stack protection in mcuboot configs
Enabled the CONFIG_HW_STACK_PROTECTION Kconfig option in the MCUboot configurations of the relevant nRF Desktop targets. Ref: NCSDK-26764 Signed-off-by: Kamil Piszczek <[email protected]>
1 parent 52ef82f commit ea19874

File tree

18 files changed

+28
-29
lines changed

18 files changed

+28
-29
lines changed

applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/images/mcuboot/prj_release.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
CONFIG_SIZE_OPTIMIZATIONS=y
88

9-
# Disable memory guard to avoid false faults in application after boot
10-
CONFIG_HW_STACK_PROTECTION=n
11-
129
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1310

1411
CONFIG_MAIN_STACK_SIZE=4096
@@ -55,6 +52,7 @@ CONFIG_BOOT_BANNER=n
5552
CONFIG_NCS_BOOT_BANNER=n
5653
CONFIG_ERRNO=n
5754
CONFIG_ARM_MPU=n
55+
CONFIG_HW_STACK_PROTECTION=n
5856
CONFIG_BOOT_SERIAL_IMG_GRP_HASH=n
5957

6058
# Use minimal C library instead of the Picolib

applications/nrf_desktop/configuration/nrf52833dk_nrf52820/images/mcuboot/prj_release.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
CONFIG_SIZE_OPTIMIZATIONS=y
88

9-
# Disable memory guard to avoid false faults in application after boot
10-
CONFIG_HW_STACK_PROTECTION=n
11-
129
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1310

1411
CONFIG_MAIN_STACK_SIZE=4096
@@ -59,6 +56,7 @@ CONFIG_BOOT_BANNER=n
5956
CONFIG_NCS_BOOT_BANNER=n
6057
CONFIG_ERRNO=n
6158
CONFIG_ARM_MPU=n
59+
CONFIG_HW_STACK_PROTECTION=n
6260
CONFIG_BOOT_SERIAL_IMG_GRP_HASH=n
6361

6462
# Use minimal C library instead of the Picolib

applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
CONFIG_SIZE_OPTIMIZATIONS=y
88

9-
# Disable memory guard to avoid false faults in application after boot
10-
CONFIG_HW_STACK_PROTECTION=n
9+
CONFIG_HW_STACK_PROTECTION=y
1110

1211
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1312

applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_release.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
CONFIG_SIZE_OPTIMIZATIONS=y
88

9-
# Disable memory guard to avoid false faults in application after boot
10-
CONFIG_HW_STACK_PROTECTION=n
9+
CONFIG_HW_STACK_PROTECTION=y
1110

1211
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1312

applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
CONFIG_SIZE_OPTIMIZATIONS=y
88

9-
# Disable memory guard to avoid false faults in application after boot
10-
CONFIG_HW_STACK_PROTECTION=n
9+
CONFIG_HW_STACK_PROTECTION=y
1110

1211
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1312

applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj_release.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
CONFIG_SIZE_OPTIMIZATIONS=y
88

9-
# Disable memory guard to avoid false faults in application after boot
10-
CONFIG_HW_STACK_PROTECTION=n
9+
CONFIG_HW_STACK_PROTECTION=y
1110

1211
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1312

applications/nrf_desktop/configuration/nrf52840dk_nrf52840/images/mcuboot/prj_fast_pair.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#
66
CONFIG_SIZE_OPTIMIZATIONS=y
77

8-
# Disable memory guard to avoid false faults in application after boot
9-
CONFIG_HW_STACK_PROTECTION=n
8+
CONFIG_HW_STACK_PROTECTION=y
109

1110
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1211

applications/nrf_desktop/configuration/nrf52840dk_nrf52840/images/mcuboot/prj_mcuboot_qspi.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#
66
CONFIG_SIZE_OPTIMIZATIONS=y
77

8-
# Disable memory guard to avoid false faults in application after boot
9-
CONFIG_HW_STACK_PROTECTION=n
8+
CONFIG_HW_STACK_PROTECTION=y
109

1110
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1211

applications/nrf_desktop/configuration/nrf52840dk_nrf52840/images/mcuboot/prj_mcuboot_smp.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#
66
CONFIG_SIZE_OPTIMIZATIONS=y
77

8-
# Disable memory guard to avoid false faults in application after boot
9-
CONFIG_HW_STACK_PROTECTION=n
8+
CONFIG_HW_STACK_PROTECTION=y
109

1110
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1211

applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/images/mcuboot/prj_fast_pair.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#
66
CONFIG_SIZE_OPTIMIZATIONS=y
77

8-
# Disable memory guard to avoid false faults in application after boot
9-
CONFIG_HW_STACK_PROTECTION=n
8+
CONFIG_HW_STACK_PROTECTION=y
109

1110
CONFIG_SYSTEM_CLOCK_NO_WAIT=y
1211

0 commit comments

Comments
 (0)