cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 Secure and non-secure function calls

Suthan
Associate II

Hi 

I have been testing secure function calls from non-secure world in STM32U575 - TrustZone Enabled environment.

I have a LED_Port which is in secure world (secure peripheral). I have implemented a toggle function in secure project - secure_nsc.c/h

CMSE_NS_ENTRY void SECURE_BlinkBlueLED(void) {...}

I can be able to compile without any issues:

Here are some linker details:

Suthan_0-1769630214952.png

.....................................

Suthan_1-1769630234076.png

I verified the map files as below

Suthan_2-1769630280746.png

.......................

Suthan_3-1769630311904.png

Now I am calling this function from non-secure project: It went to Hard Fault as it calls original function which is in the secure world.

Suthan_4-1769630516386.png

How to call veneer instead of direct function?

Any help?

 

 

 

0 REPLIES 0