2025-06-28 10:19 AM
I am using stm32h563zi microcontroller (Nucleo-H563zi) in this i have created project using trust zone. In this aim was to use UART4 to transmit message. But i am unable to transmit, i have uploaded main.c of secure and nonsecure. what is the possible error in not transmitting the message usign UART4 in nonsecure.
2025-07-10 12:27 AM
Hello @Shubham08 ,
Please first make all non secure SRAM and non secure peripheral access to privilege.
Also please check same code will work in a non TrustZone environment.
Best regards
Jocelyn
2025-07-13 12:36 AM - edited 2025-07-13 12:37 AM
Hii Jocelyn RICHARD,
Can you provide some documentation which will help in understandign the flow or working of trustzone. I have followed the code in example selector but i am not getting how it is done.
e.g I want to print "Hello world" using uart 4 and print "Currently in truztzone" using uart2. I have configured uart4 in non_secure zone and uart2 in secure zone. after selecting peripheral in .ioc and generating code in stm32cube what will be the flow of the code to achieve the aim to print.
Regards,
Shubham