How do you debug in code composer?
How do you debug in code composer?
7.3. Launching a debug session
- Switch to the CCS Debug perspective.
- Connect to the Debug Probe.
- Prompt for which core the program needs to be loaded (this is usually done only once if the device has multiple cores of the same ISA).
- Automatically connect to the core/device.
What is CCS in DSP?
Code Composer Studio (CCStudio or CCS) is an integrated development environment (IDE) to develop applications for Texas Instruments (TI) embedded processors. Code Composer Studio is primarily designed as for embedded project design and low-level (baremetal) JTAG based debugging.
How do I view variables in CCS?
The variables view will just show local variables by default. You can use the expressions view to add the global variables in there. You should be able to right click in the variables view and select the ‘add global variables’ option in the context menu.
What is CC debug?
The CC Debugger is a small programmer and debugger for the TI Low Power RF System-on-Chips. It can be used together with IAR Embedded Workbench for 8051 (version 7.51A or later) for debugging and SmartRF Flash Programmer for flash programming.
How do you set a breakpoint in CCS?
Configure a Hardware Breakpoint
- Configure CCS for a C28x target and launch a debug session.
- In the Debug Perspective, open the breakpoint dialog from menu View → Breakpoints.
- Use the pull-down menu to select Hardware Breakpoint.
- In the Location field, specify the address where the breakpoint should be set.
How do I use Ccstudio?
5.6. Building and Running Your Project
- Prompt to save source files (if necessary).
- Build the project (incrementally).
- Start the debugger (CCS will switch to the CCS Debug perspective).
- Connect CCS to the target.
- Load (flash) the program on the target.
- Run to main.
What compiler does CCS use?
Code Composer Studio software comprises a suite of tools used to develop and debug embedded applications. The software includes an optimizing C/C++ compiler, source code editor, project build environment, debugger, profiler and many other features.
How do you watch a variable in Code Composer Studio?
1) First you need to make sure the variables are globally available (e.g. that they are not allocated on the stack). 2) You need to halt the processor before trying to read the variables. (In Debug view: Tools -> Debugger Options -> Auto Run and Launch Options).
What is hardware watchpoint?
Hardware watchpoints – allow execution to halt when a read or write access is made to a data variable address. Count Event – can be used to measure clock cycles between two points in the code. Data Access Count – can be used to determine the number of times a data variable address has been accessed.
What is CCS debugdebug?
Debug¶ This chapter describes the Code Composer Studio (CCS) debug environment. It describes how to create, manage and launch the debugger, and also the features available for debugging the environment. 7.1. Debug Overview
Can I debug an OS-hosted executable using CCS?
CCS can also debug an OS-hosted executable, which requires a high level operating system running on the target device/board (embedded Linux is the most common). However, the process of creating a project, building and debugging is outside the scope of this document but references can be found in the section Linux Debug References
How is the debug code placed in the linker?
The placement of this code follows the directives on the Linker Command File . – The debug symbols are kept in the host PC to allow correlating the memory addresses of the device/board with the source code of the project. – The process is the same whether the code is being downloaded to RAM or Flash.
What are the two main components of a debug session?
The physical debugging setup is shown above with the two main components involved during a debug session: 1. The connection is the piece of hardware between the host PC that runs CCS and the device or board where the code is supposed to be executed. Throughout this document the connection will also be called the Debug Probe. 2.