2024-03-22 07:48 AM
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();
}
2024-03-25 01:54 PM
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