Skip to main content
Associate II
February 28, 2025
Question

TrustZone Secure Debug

  • February 28, 2025
  • 2 replies
  • 647 views

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

JamesBAuthor
Associate II
March 3, 2025

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

 

JamesBAuthor
Associate II
March 4, 2025

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?