NOTE: I am using CCS v.9.2 - cannot change this version of IDE. Also using Vision SDK v.3.7 which also cannot be updated.
I cannot get debugging to work for the TDA3X SBL. I am using the SBL that is provided by the Vision SDK PDK library. When I connect to the C0 M4 core and load the SBL, everything looks good initially. I see the step arrow pointing to the beginning of 'main' and I attempt to do some stepping. This works for a few steps, then all of a sudden, I get this error:
Cortex_M4_IPU1_C0: Can't Run Target CPU: (Error -1268 @ 0x1090001) Device is locked up in Hard Fault or in NMI. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.3.0.00003)
I changed the speed on my XDS560v2 emulator to legacy - slowest it goes to. Nothing seems to get past this issue. Even if I load the SBL and press the "play" button to just run the SBL, I get the same error over and over again.
I am not sure what I need to change to make this SBL able to be reliably stepped through or breakpoint at a certain instruction in the SBL strategy. I know that when I connect to the C0 core in CCS, I use GEL file to initialize the device, but the SBL does initialization itself similar to the GEL file...
If I flash the SBL into QSPI - the SBL I am attempting to step-debug - it works... I can load an AppImage and everything works as planned. I simply cannot debug the SBL in CCS via JTAG inteface. Anything I can provide to help diagnose this, please feel free to ask about.