Debugging STM32L55 Secure World Using Keil IDE
Hello,
I have a simple application running on STM32L55 Secure World, but I would like to debug it step by step using an IDE.
I am able to debug using the Keil IDE, but it seems the TZEN bit is zero. It must be about the defaults state of the STM32L55 which is TZEN is disabled.
As TZEN is zero by default I assume I need to set the bit, but when I try to set this bit, getting a Hard-Fault.
Question 1: can we set the TZEN bit during the Debugging session. (I may need proper RDP level during the debugging to set TZEN)
Question 2: What RDP levels does Keil use? There is no UI to see RDP in Keil?
I thought I might be missing something, and I found an example in STM32CubeL5: FreeRTOS_SecureIOToggle_TrustZone
There are two projects, one is a tiny application in secure world, one is in FreeRTOS app running in non-secure world.
I am running the debugging section on secure world application but the TZEN bit is also zero in this example so the secure app does not run in the secure state?
Is it something about the debugging session?
Can we run debugging session in the secure world?
Does debugging automatically disable TZEN bit?
How do we observe non-secure/secure transitions during the debug?
