diff --git a/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c b/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c index 6df811f6bad..9071b57c516 100644 --- a/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c +++ b/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c @@ -9,6 +9,11 @@ #include #include +#if defined(CONFIG_SOC_NRF5340_CPUAPP) +#include +#include +#endif + #include "nrf_802154.h" #include "nrf_802154_spinel_backend_callouts.h" #include "nrf_802154_serialization_error.h" @@ -55,6 +60,14 @@ nrf_802154_ser_err_t nrf_802154_backend_init(void) int err; #if defined(CONFIG_SOC_NRF5340_CPUAPP) + +#if !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE) + /* Retain nRF5340 Network MCU in Secure domain (bus + * accesses by Network MCU will have Secure attribute set). + */ + nrf_spu_extdomain_set((NRF_SPU_Type *)DT_REG_ADDR(DT_NODELABEL(spu)), 0, true, false); +#endif /* !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE) */ + nrf53_cpunet_enable(true); #endif