Skip to content

Commit 5eba81c

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 3de5b4d commit 5eba81c

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
@@ -961,7 +961,7 @@ int main(void)
961961
/* Lock back PCD used for CPUNET application udapte */
962962
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER != -1 && \
963963
defined(CONFIG_PCD_APP)
964-
#if defined(PM_TFM_SECURE_ADDRESS)
964+
#if defined(CONFIG_BASE_BOARD_IS_NON_SECURE)
965965
pcd_lock_ram(false);
966966
#else
967967
pcd_lock_ram(true);

0 commit comments

Comments
 (0)