Skip to content

Commit b3c7d3d

Browse files
MarkusLassilarlubos
authored andcommitted
[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]> (cherry picked from commit 68b96b8)
1 parent 2d5a490 commit b3c7d3d

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
@@ -616,7 +616,11 @@ int main(void)
616616
}
617617

618618
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
619-
pcd_lock_ram();
619+
#if defined(PM_TFM_SECURE_ADDRESS)
620+
pcd_lock_ram(false);
621+
#else
622+
pcd_lock_ram(true);
623+
#endif
620624
#endif
621625
#endif /* USE_PARTITION_MANAGER && CONFIG_FPROTECT */
622626

0 commit comments

Comments
 (0)