cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575RIT6 - With TrustZone

proyo
Visitor

Hi all!

I’m starting with secure zone projects using the STM32U575RIT6 microcontroller. First, I want a project with the secure zone active, and that jumps to the non-secure zone to print a message. However, when jumping to the secure zone (NonSecure_ResetHandler();) , it enters to error function (void HardFault_Handler(void)) .

I have created a empty project, with this IOC: 

proyo_0-1730885454555.png

In secure zone, main.c: 

#define VTOR_TABLE_NS_START_ADDR 0x08100000UL

And in NonSecure flash:

MEMORY

{

RAM (xrw) : ORIGIN = 0x20040000, LENGTH = 512K /* Memory is divided. Actual start is 0x20000000 and actual length is 768K */

SRAM4 (xrw) : ORIGIN = 0x28000000, LENGTH = 16K

FLASH (rx) : ORIGIN = 0x08100000, LENGTH = 1024K /* Memory is divided. Actual start is 0x08000000 and actual length is 2048K */

}

Does anyone have an idea of what might be happening?

 

Think you in advance! :) 

0 REPLIES 0