CCS Debug Tips (AM13E2X)
CCS provides various GEL scripts (available under the Scripts dropdown menu) that simplify hardware-level tasks during the debugs.
To see the results of these scripts, open the GEL Output View via View -> Console -> GEL Output.
Supported GEL functions
Reset Commands
Issues various resets via software using the SYSCTL registers.
Reset can also be issued by debugger by right-clicking on CORTEX_M33 under the Threads window and selecting the Reset option.
DSSM (Debug Sub-System Mailbox) Commands
These commands communicate directly with the BootROM. Use these for high-level recovery tasks (like Factory Resets).
Refer to the device Technical Reference Manual (TRM) for details on specific mailbox commands.
These often require an external reset. Monitor the GEL Output View for instructions.
Miscellaneous Commands
Provides a snapshot of the configuration and status of various hardware modules.
Detailed logs are printed to the GEL Output View.
Frequently Asked Questions
Unable to connect to M33 core
Issue a FactoryReset / MassErase using DSSM Commands.
In case the script is stuck after “Attempting CS_DAP Connection”, follow the below steps. This is likely because the debugger connection is lost.
Pull the BSL_INVOKE pin high and issue a power-on-reset. In case Launchpad is used, populate the jumper J11 and press the BSL_INV button.
Issue FactoryReset / MassErase using DSSM Commands.
Note : Keep the BSL pin high or the BSL button pressed from POR till DSSM command issue.
Device Stuck in Default Handler
Run Get_Interrupt_Status script under Miscellaneous Commands. This gives a summary on CPU exception state, NMI/Fault status, and NVIC status.