File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 15
15
#include <mpsl/mpsl_work.h>
16
16
#include "multithreading_lock.h"
17
17
#include <nrfx.h>
18
+ #if defined(NRF_TRUSTZONE_NONSECURE )
19
+ #include "tfm_platform_api.h"
20
+ #include "tfm_ioctl_core_api.h"
21
+ #endif
18
22
#if IS_ENABLED (CONFIG_SOC_COMPATIBLE_NRF54LX )
19
23
#include <nrfx_power.h>
20
24
#endif
@@ -436,6 +440,17 @@ static int32_t mpsl_lib_init_internal(void)
436
440
return err ;
437
441
}
438
442
#endif /* MPSL_TIMESLOT_SESSION_COUNT > 0 */
443
+ #if defined(NRF_TRUSTZONE_NONSECURE )
444
+ /* Temporary fix in order to get mpsl to work well when compiling for nrf54l15dk/nrf54l15/cpuapp/ns
445
+ */
446
+ uint32_t result_out ;
447
+ uint32_t result = tfm_platform_mem_write32 ((uint32_t )& NRF_RRAMC_S -> POWER .LOWPOWERCONFIG ,
448
+ RRAMC_POWER_LOWPOWERCONFIG_MODE_Standby << RRAMC_POWER_LOWPOWERCONFIG_MODE_Pos ,
449
+ RRAMC_POWER_LOWPOWERCONFIG_MODE_Msk ,
450
+ & result_out );
451
+ __ASSERT (result == TFM_PLATFORM_ERR_SUCCESS , "tfm_platform_mem_write32 failed with code %i\n" , result );
452
+ __ASSERT (result_out == 0 , "tfm_platform_mem_write32 failed with code %i\n" , result_out );
453
+ #endif
439
454
440
455
return 0 ;
441
456
}
You can’t perform that action at this time.
0 commit comments