Skip to content

Commit 61dc653

Browse files
committed
[nrf noup] boot: zephyr: Do not lock PCD region with TF-M
Previously PCD memory was locked as read-only, non-secure in MCUboot. Given that TF-M also needs write to PCD to communicate with b0n, the memory is left unlocked and locked to read-only, non-secure in TF-M. Signed-off-by: Markus Lassila <[email protected]>
1 parent daf2946 commit 61dc653

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

boot/zephyr/main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,11 @@ int main(void)
601601
}
602602

603603
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
604-
pcd_lock_ram();
604+
#if defined(PM_TFM_SECURE_ADDRESS)
605+
pcd_lock_ram(false);
606+
#else
607+
pcd_lock_ram(true);
608+
#endif
605609
#endif
606610
#endif /* USE_PARTITION_MANAGER && CONFIG_FPROTECT */
607611

0 commit comments

Comments
 (0)