Skip to content

Commit

Permalink
[nrf noup] boot: zephyr: Do not lock PCD region with TF-M
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
MarkusLassila committed Oct 21, 2024
1 parent 29646ac commit 0a58adb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,11 @@ int main(void)
}

#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
pcd_lock_ram();
#if defined(PM_TFM_SECURE_ADDRESS)
pcd_lock_ram(false);
#else
pcd_lock_ram(true);
#endif
#endif
#endif /* USE_PARTITION_MANAGER && CONFIG_FPROTECT */

Expand Down

0 comments on commit 0a58adb

Please sign in to comment.