cancel
Showing results for 
Search instead for 
Did you mean: 

Trustzone: NonSecure_Init does not start the nonsecure

Isko
Associate II

Whilst using the standard code generated through cubemx for Trustzone on the Nulceo-WBA55cg Board with TZEN = 1 and having the nonsecure in the Debug configuration of the secure the code doesnt complete the Nonsecure init in the last Line. I checked and everything except the last Line works. I would love some input.

 

static void NonSecure_Init(void)

{

funcptr_NS NonSecure_ResetHandler;

 

SCB_NS->VTOR = VTOR_TABLE_NS_START_ADDR;

 

/* Set non-secure main stack (MSP_NS) */

__TZ_set_MSP_NS((*(uint32_t *)VTOR_TABLE_NS_START_ADDR));

 

/* Get non-secure reset handler */

NonSecure_ResetHandler = (funcptr_NS)(*((uint32_t *)((VTOR_TABLE_NS_START_ADDR) + 4U)));

 

/* Start non-secure state software application */

NonSecure_ResetHandler();

}

1 REPLY 1
Billy OWEN
ST Employee

Hi @Isko 

 

The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

 

Regards,

Billy