Skip to content

Commit bd89c94

Browse files
michalek-noanangl
authored andcommitted
modules: mcuboot: remove nonsecure RAM cleanup
This feature corrupts stack. Signed-off-by: Mateusz Michalek <[email protected]>
1 parent 927f57e commit bd89c94

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

modules/mcuboot/boot/zephyr/Kconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ config MCUBOOT_NRF_CLEANUP_PERIPHERAL
5757
depends on SOC_FAMILY_NORDIC_NRF
5858
default y
5959

60-
config MCUBOOT_NRF_CLEANUP_NONSECURE_RAM
61-
bool "Perform non-secure RAM cleanup before chain-load the application"
62-
depends on SOC_FAMILY_NORDIC_NRF && ARM_TRUSTZONE_M
63-
default y if MCUBOOT_USE_ALL_AVAILABLE_RAM
64-
6560
config BOOT_SIGNATURE_KEY_FILE
6661
string "MCUBoot PEM key file"
6762
help

sysbuild/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
155155
if(SB_CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM)
156156
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM y)
157157
set_config_bool(mcuboot CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM y)
158-
set_config_bool(mcuboot CONFIG_MCUBOOT_NRF_CLEANUP_NONSECURE_RAM y)
159158
else()
160159
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM n)
161160
set_config_bool(mcuboot CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM n)

0 commit comments

Comments
 (0)