Skip to content

Commit

Permalink
[nrf noup] platform: nordic_nrf: nRF54L15 does not have UICR
Browse files Browse the repository at this point in the history
Do not attempt to lock the UICR.APPROTECT or UICR.SECUREAPPROTECT
for nRF54L15. These registers do not exist.

TF-M provisioning with nRF54L15 will still result in compilation
failure. As it should at this point.

Signed-off-by: Markus Lassila <[email protected]>
  • Loading branch information
MarkusLassila authored and rlubos committed Oct 31, 2024
1 parent 8c7fae3 commit 5ae4c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/ext/target/nordic_nrf/common/core/target_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ enum tfm_plat_err_t init_debug(void)
#error "Debug access controlled by NRF_APPROTECT and NRF_SECURE_APPROTECT."
#endif

#if defined(NRF_APPROTECT)
#if defined(NRF_APPROTECT) && !defined(NRF54L15_XXAA)
/* For nRF53 and nRF91x1 already active. For nRF9160, active in the next boot.*/
if (nrfx_nvmc_word_writable_check((uint32_t)&NRF_UICR_S->APPROTECT,
UICR_APPROTECT_PALL_Protected)) {
Expand All @@ -823,7 +823,7 @@ enum tfm_plat_err_t init_debug(void)
return TFM_PLAT_ERR_SYSTEM_ERR;
}
#endif
#if defined(NRF_SECURE_APPROTECT)
#if defined(NRF_SECURE_APPROTECT) && !defined(NRF54L15_XXAA)
/* For nRF53 and nRF91x1 already active. For nRF9160, active in the next boot. */
if (nrfx_nvmc_word_writable_check((uint32_t)&NRF_UICR_S->SECUREAPPROTECT,
UICR_SECUREAPPROTECT_PALL_Protected)) {
Expand Down

0 comments on commit 5ae4c7f

Please sign in to comment.