Skip to content

Commit

Permalink
[nrf noup] boot: zephyr: Add ifdef protection for RAM locking
Browse files Browse the repository at this point in the history
This adds an ifdef check so that RAM is only protected if PCD is
enabled, whereas previously this would cause a build failure.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit 4ec411c)
  • Loading branch information
nordicjm authored and cvinayak committed Oct 19, 2023
1 parent 815fa3a commit 52997e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ int main(void)
;
}

#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS)
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
pcd_lock_ram();
#endif
#endif /* USE_PARTITION_MANAGER && CONFIG_FPROTECT */
Expand Down

0 comments on commit 52997e1

Please sign in to comment.