Skip to content

Commit 0a58adb

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 29646ac commit 0a58adb

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
@@ -608,7 +608,11 @@ int main(void)
608608
}
609609

610610
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
611-
pcd_lock_ram();
611+
#if defined(PM_TFM_SECURE_ADDRESS)
612+
pcd_lock_ram(false);
613+
#else
614+
pcd_lock_ram(true);
615+
#endif
612616
#endif
613617
#endif /* USE_PARTITION_MANAGER && CONFIG_FPROTECT */
614618

0 commit comments

Comments
 (0)