2026-01-28 12:05 PM
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:
.....................................
I verified the map files as below
.......................
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.
How to call veneer instead of direct function?
Any help?