STM32L562QE: "Break at address "0x..." and "No source available for ()..."
Hello,
I have not been able to debug any of my TrustZone projects. In order to see what was happening I decided to debug and run ST examples, also with TrustZone implemented, from "STM32Cube_FW_L5_V1.5.0" with the following results:
- FreeRTOS_Secure_IOToggle_TrustZone:
Debug and run correctly only if optimization level is not "None -O0".
- UART_Trace_TrustZone_Secure:
Failed to run and debug regardless of the optimization level (Error: "Break at address "0x430027240" with no debug information or outside of program code"). However, when I commented the function "printf" and "Secure_TraceMessage" I was able to debug and run correctly.


- GTZC_TZSC_MPCBB_TrustZone
Failed to run and debug regardless of the optimization level (Error: "No source available for <signal handler called>() at 0xfffffffe”). When I commented the illegal access to trigger the secure fault the application ran and debugged perfectly.

These are my Option Bytes:





Could it be something related with entering the secure side?
IMPORTANT NOTE: I started seeing these problems when I compiled in my board TF-M project example, also from STM32Cube_FW_L5_V1.5.0 package.
I would like to know if there is a way to run these projects (or my projects) without commenting part of it.
Thank you in advancement for your time and effort.
