Skip to content

Commit

Permalink
applications: nrf_desktop: enable stack protection in mcuboot configs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kapi-no committed Nov 29, 2024
1 parent 155b9b3 commit a3beffd
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=4096
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=4096
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#
CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#
CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#
CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#
CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#
CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#
CONFIG_SIZE_OPTIMIZATIONS=y

# Disable memory guard to avoid false faults in application after boot
CONFIG_HW_STACK_PROTECTION=n

CONFIG_SYSTEM_CLOCK_NO_WAIT=y

CONFIG_MAIN_STACK_SIZE=10240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ nRF Desktop
* :ref:`zephyr:nrf54l15dk_nrf54l15`
* :ref:`zephyr:nrf54h20dk_nrf54h20`

* MCUboot bootloader configurations for the relevant board targets to enable the :kconfig:option:`CONFIG_FPROTECT` Kconfig option that is used to protect the bootloader partition against memory corruption.
* MCUboot bootloader configurations for the relevant board targets to enable the following Kconfig options:

* :kconfig:option:`CONFIG_FPROTECT`: used to protect the bootloader partition against memory corruption
* :kconfig:option:`CONFIG_HW_STACK_PROTECTION`: used to protect against stack overflows

nRF Machine Learning (Edge Impulse)
-----------------------------------
Expand Down

0 comments on commit a3beffd

Please sign in to comment.