8. Debug¶
This chapter describes the Code Composer Studio™ debug environment. It describes how to create, manage and launch the debugger, and also the features available for debugging the environment.
- 8.1. Debug Overview
- 8.2. Configuring the Debugger
- 8.3. Launching a debug session
- 8.4. Debugging the application
- 8.4.1. After Launch
- 8.4.2. Debug View
- 8.4.3. Registers View
- 8.4.4. Disassembly View
- 8.4.5. Memory View
- 8.4.6. GEL Files View
- 8.4.7. Debug Output View
- 8.4.8. GEL Output View
- 8.4.9. Debug Console View
- 8.4.10. Serial Console View
- 8.4.11. Scripting Console View
- 8.4.12. RTOS Objects View
- 8.4.13. Modules View
- 8.4.14. Connected Targets View
- 8.4.15. Graph View
- 8.4.16. Breakpoints
- 8.4.17. Profile Clock
- 8.4.18. Memory Map
- 8.4.19. Data File Formats
- 8.5. Advanced Debugging Topics
- 8.6. Trace
- 8.7. The General Extension Language (GEL)
- 8.7.1. GEL Grammar
- 8.7.1.1. GEL Function Definition
- 8.7.1.2. GEL Function Parameters
- 8.7.1.3. Calling GEL Functions
- 8.7.1.4. Local Variables for Functions
- 8.7.1.5. Function Recursion
- 8.7.1.6. GEL return Statement
- 8.7.1.7. GEL if and if-else Statements
- 8.7.1.8. GEL for Statement
- 8.7.1.9. GEL while and do-while Statements
- 8.7.1.10. GEL break Statement
- 8.7.1.11. File I/O Functions
- 8.7.1.12. Hardware Breakpoints
- 8.7.1.13. GEL Comments
- 8.7.1.14. GEL Preprocessing Statements
- 8.7.1.15. Conditional Breakpoints
- 8.7.1.16. C++ Limitations within GEL Expressions
- 8.7.1.17. C++ Support within GEL Expressions
- 8.7.1.18. GEL Expression Evaluation
- 8.7.1.19. Format Specifiers
- 8.7.1.20. Global Variables for GEL Functions
- 8.7.1.21. GEL Namespace
- 8.7.1.22. Defining Shared Memory
- 8.7.2. Built-in GEL Functions
- 8.7.3. GEL Macros
- 8.7.4. Loading and Unloading GEL Files
- 8.7.5. Adding GEL Files to a Target Configuration
- 8.7.6. Moving GEL Initialization to Production Code
- 8.7.7. Adding GEL Functions to the Scripts Menu Using Keywords
- 8.7.8. GEL Functions: Alphabetical List
- 8.7.8.1. GEL_AddInputFile()
- 8.7.8.2. GEL_AddOutputFile()
- 8.7.8.3. GEL_AdvancedReset()
- 8.7.8.4. GEL_AsmStepInto()
- 8.7.8.5. GEL_AsmStepOver()
- 8.7.8.6. GEL_BreakPtAdd()
- 8.7.8.7. GEL_BreakPtDel()
- 8.7.8.8. GEL_BreakPtDisable
- 8.7.8.9. GEL_BreakPtReset()
- 8.7.8.10. GEL_CancelTimer
- 8.7.8.11. GEL_Connect
- 8.7.8.12. GEL_Dialog()
- 8.7.8.13. GEL_DisableFileOutput()
- 8.7.8.14. GEL_DisableRealtime()
- 8.7.8.15. GEL_Disconnect
- 8.7.8.16. GEL_EnableClock()
- 8.7.8.17. GEL_EnableFileOutput()
- 8.7.8.18. GEL_EnableRealtime()
- 8.7.8.19. GEL_EnableZeroFill
- 8.7.8.20. GEL_EvalOnTarget()
- 8.7.8.21. GEL_GetBoolDebugProperty
- 8.7.8.22. GEL_GetBoolDriverProperty
- 8.7.8.23. GEL_GetBoolTargetDbProperty
- 8.7.8.24. GEL_GetNumericDebugProperty
- 8.7.8.25. GEL_GetNumericDriverProperty
- 8.7.8.26. GEL_GetNumericTargetDbProperty
- 8.7.8.27. GEL_GetStringDebugProperty
- 8.7.8.28. GEL_GetStringDriverProperty
- 8.7.8.29. GEL_GetStringTargetDbProperty
- 8.7.8.30. GEL_Go()
- 8.7.8.31. GEL_Halt()
- 8.7.8.32. GEL_HandleTargetError()
- 8.7.8.33. GEL_HWBreakPtAdd()
- 8.7.8.34. GEL_HWBreakPtDel()
- 8.7.8.35. GEL_HWBreakPtDisable
- 8.7.8.36. GEL_HWBreakPtReset()
- 8.7.8.37. GEL_IsConnected
- 8.7.8.38. GEL_IsHalted
- 8.7.8.39. GEL_IsInRealtimeMode
- 8.7.8.40. GEL_IsResetSupported()
- 8.7.8.41. GEL_IsTimerSet()
- 8.7.8.42. GEL_Load()
- 8.7.8.43. GEL_LoadBin()
- 8.7.8.44. GEL_LoadGel()
- 8.7.8.45. GEL_LoadProgramOnly()
- 8.7.8.46. GEL_LoadSecureDebugManager()
- 8.7.8.47. GEL_MapAdd()
- 8.7.8.48. GEL_MapAddStr()
- 8.7.8.49. GEL_MapDelete()
- 8.7.8.50. GEL_MapOff()
- 8.7.8.51. GEL_MapOn()
- 8.7.8.52. GEL_MapReset()
- 8.7.8.53. GEL_MatchesConnection()
- 8.7.8.54. GEL_MemoryFill()
- 8.7.8.55. GEL_MemoryListSupportedTypes()
- 8.7.8.56. GEL_MemoryLoad()
- 8.7.8.57. GEL_MemoryLoadData()
- 8.7.8.58. GEL_MemorySave()
- 8.7.8.59. GEL_MemorySaveBin()
- 8.7.8.60. GEL_MemorySaveCoff()
- 8.7.8.61. GEL_MemorySaveData()
- 8.7.8.62. GEL_MemorySaveHex()
- 8.7.8.63. GEL_PatchAssembly()
- 8.7.8.64. GEL_ProbePtAdd()
- 8.7.8.65. GEL_ProbePtDel()
- 8.7.8.66. GEL_ProbePtDisable
- 8.7.8.67. GEL_ProbePtReset()
- 8.7.8.68. GEL_ReConnect
- 8.7.8.69. GEL_RefreshWindows
- 8.7.8.70. GEL_Reload()
- 8.7.8.71. GEL_RemoveDebugState
- 8.7.8.72. GEL_RemoveInputFile()
- 8.7.8.73. GEL_RemoveOutputFile()
- 8.7.8.74. GEL_Reset()
- 8.7.8.75. GEL_Restart()
- 8.7.8.76. GEL_RestoreDebugState
- 8.7.8.77. GEL_Run()
- 8.7.8.78. GEL_RunF()
- 8.7.8.79. GEL_SetBlockResetMode()
- 8.7.8.80. GEL_SetBoolDebugProperty
- 8.7.8.81. GEL_SetClockEvent
- 8.7.8.82. GEL_SetNumericDebugProperty
- 8.7.8.83. GEL_SetSemihostingMainArgs
- 8.7.8.84. GEL_SetStringDebugProperty
- 8.7.8.85. GEL_SetTimer
- 8.7.8.86. GEL_SetWaitInResetMode()
- 8.7.8.87. GEL_SrcStepInto()
- 8.7.8.88. GEL_SrcStepOver()
- 8.7.8.89. GEL_StepInto
- 8.7.8.90. GEL_StepOut
- 8.7.8.91. GEL_StepOver
- 8.7.8.92. GEL_StrCat
- 8.7.8.93. GEL_StrLen
- 8.7.8.94. GEL_SubStr
- 8.7.8.95. GEL_SymbolAdd()
- 8.7.8.96. GEL_SymbolAddOffset()
- 8.7.8.97. GEL_SymbolAddRel()
- 8.7.8.98. GEL_SymbolDisable()
- 8.7.8.99. GEL_SymbolEnable()
- 8.7.8.100. GEL_SymbolHideSection()
- 8.7.8.101. GEL_SymbolLoad()
- 8.7.8.102. GEL_SymbolLoadOffset()
- 8.7.8.103. GEL_SymbolLoadRel()
- 8.7.8.104. GEL_SymbolRemove()
- 8.7.8.105. GEL_SymbolShowSection()
- 8.7.8.106. GEL_SyncHalt
- 8.7.8.107. GEL_SyncRun
- 8.7.8.108. GEL_SyncStepInto
- 8.7.8.109. GEL_SyncStepOut
- 8.7.8.110. GEL_SyncStepOver
- 8.7.8.111. GEL_System()
- 8.7.8.112. GEL_TargetTextOut()
- 8.7.8.113. GEL_TextOut()
- 8.7.8.114. GEL_Trace()
- 8.7.8.115. GEL_UnloadAllGels()
- 8.7.8.116. GEL_UnloadAllSymbols()
- 8.7.8.117. GEL_UnloadGel()
- 8.7.8.118. GEL_VerifyBinProgram()
- 8.7.8.119. GEL_VerifyProgram()
- 8.7.8.120. OnChildRunning()
- 8.7.8.121. OnFileLoaded()
- 8.7.8.122. OnHalt
- 8.7.8.123. OnPreDisconnect()
- 8.7.8.124. OnPreFileLoaded()
- 8.7.8.125. OnPreReset()
- 8.7.8.126. OnPreRun()
- 8.7.8.127. OnPreTargetConnect()
- 8.7.8.128. OnReset()
- 8.7.8.129. OnResetDetected()
- 8.7.8.130. OnRestart()
- 8.7.8.131. OnTargetConnect()
- 8.7.1. GEL Grammar
- 8.8. Scripting
- 8.9. Legacy Scripting (DSS)
- 8.9.1. Prerequisites
- 8.9.2. Environment Setup and Running a JavaScript
- 8.9.3. Examples
- 8.9.4. DSS API
- 8.9.5. Target Configuration
- 8.9.6. Exception Handling
- 8.9.7. Using GEL
- 8.9.8. Multiple Debug Sessions for Multi-core Debug
- 8.9.9. Logging
- 8.9.10. Other Supported Languages
- 8.9.11. Download
- 8.9.12. Training