cancel
Showing results for 
Search instead for 
Did you mean: 

TrustZone Secure Debug

JamesB
Associate II

I have a project with TrustZone enabled, and am able to debug the non-secure side fine, but breakpoints never hit on the secure side (functions through nsc from non-secure side) other than main before it jumps to the non-secure side. I'm setting it up as follows:

JamesB_0-1740782581863.png

JamesB_1-1740782621853.png

JamesB_2-1740782696050.png

. Are there any settings so that breakpoints will hit in the secure code called from the non-secure side?

Thanks.

 

 

2 REPLIES 2
JamesB
Associate II

It turns out "some" of the secure code can be debugged but other modules cannot. Below shows an image of the breakpoints. When stopped at main, the top breakpoint (secure area) does not show the checkmark. The others do. The second breakpoint is also in a different secure module and does work. In what scenario would only some breakpoints work? The code does build, run, and function normally.

JamesB_0-1741029869917.png

 

JamesB
Associate II

If turns out if I uncheck this box in the secure project, I am able to debug as expected and the breakpoints are hit:

JamesB_0-1741047865242.png

Does anyone have insight as to why it's considering included code as unused?