Skip to content

Commit e3e10b4

Browse files
degjorvade-nordic
authored andcommitted
[nrf noup] zephyr: Gate RAM unlock on BASE_BOARD_IS_NON_SECURE
Use CONFIG_BASE_BOARD_IS_NON_SECURE instead of CONFIG_BUILD_WITH_TFM to decide whether to leave PCD RAM unlocked, so the condition tracks the non-secure base board variant rather than the TF-M build option. Signed-off-by: Dag Erik Gjorvad <dag.erik.gjorvad@nordicsemi.no>
1 parent 54ea114 commit e3e10b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

boot/zephyr/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ int main(void)
992992
/* Lock back PCD used for CPUNET application udapte */
993993
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER != -1 && \
994994
defined(CONFIG_PCD_APP)
995-
#if defined(PM_TFM_SECURE_ADDRESS)
995+
#if defined(CONFIG_BASE_BOARD_IS_NON_SECURE)
996996
pcd_lock_ram(false);
997997
#else
998998
pcd_lock_ram(true);

0 commit comments

Comments
 (0)