CCSv5 TipsAndTricks
CCSv5 TipsAndTricks
Workspaces
Resource Explorer
Windows and Views (basics)
Installing Eclipse Plug-ins
Projects
Working Sets
Project Builds
Editor Tips
Local History
Debugging
CCS APPS
Debug Configurations
Debugging Without a Project
Useful Debug Views
GENERAL
CCS APPS
CCS APPS
CCS APPS
controlSUITE
MSP430ware
TivaWare
TI-RTOS
CCS Videos
CCS video portal allows for viewing videos which cover
Product demonstration
Product updates
Tutorials
Training
Available from the CCS menu
Help -> CCS Videos and
Tutorials
CCS APPS
Window Types
Editor:
Only editor windows
are part of this group
Tab Group:
Several windows
grouped together
Detached:
Floating window not tied
to Workbench
CCS APPS
Windowing Tips
Double-clicking on the title bar of a window will maximize the window
Double-clicking again will restore it to its previous size
Fast-view windows are great for windows you use infrequently but need
a lot of space when you do use them
The window that has focus is indicated by a blue border and heading
Current window
CCS APPS
Customizing Perspectives
You can customize the menu items and toolbars in your perspective
Right click on the toolbar and select Customize Perspective
CCS APPS
CCS APPS
Accessing Views
To open a new view go to the View menu
List the most commonly used views with CCS
CCS APPS
Filter Field
Use it to find options/properties faster
Narrows list of options down depending on characters entered in the field
Project Properties
Window Properties
Workspace Properties..
Target Configuration view
CCS APPS
CCSv5.0 5.2 is based off Eclipse 3.7 and CCSv5.3+ is based off
Eclipse 3.8
Look for plug-ins that support this version for best compatibility
CCS APPS
CCS APPS
CCS APPS
PROJECTS
CCS APPS
CCS APPS
Select C/C++ as
the type of working
set and click Next
CCS APPS
CCS APPS
Parallel Builds
Have a multi-core PC? Take advantage of all those cores to speed
up your CCS project builds with parallel builds!
In the project properties, first enable the advanced settings by
clicking on Show advanced settings in the lower left corner
In the Behavior tab under C/C++ Build, turn on the Enable
parallel build option
CCS APPS
Editor tabs
Collapse
and expand
functions
Code Completion
(CTRL+SPACE
for suggestions)
CCS APPS
Navigation
Back/Forward buttons
Back to last edit button
Go to definition
Go to declaration
Code Folding
Collapse functions
CCS APPS
Edit Markers
If you have the line number column on, it also indicates changes in
your source file since your last save
Modified lines
Inserted lines
Deleted lines
CCS APPS
Variable Highlighting
Highlighting a variable in the editor will highlight all instances of the
variable in the editor
CCS APPS
Source Templates
CCS provides code templates
Ex: Hello World
Type in h in the editor and use Content Assist by pressing CTRL+SPACE
keys (can also right-click in the editor and select Content Assist from the
context menu)
CCS APPS
Indexer
The advanced editor features rely
on a database of the source and
header files of the project that
provides the basis for C/C++
search, navigation features and
parts of content assist
(code completion)
The C/C++ Indexer creates this
database by parsing all of the
source and header files of the
projects open in the workspace
Configure the Indexer:
Window -> Preferences -> C/C++
-> Indexer
CCS APPS
Indexer
The Indexer can also be configured on a per project basis in the project
properties
Must click on the Show Advanced Settings link in the lower left corner of the
project properties dialog to expose the options for the Indexer
C/C++ General -> Indexer
CCS APPS
CCS APPS
View: History
CCS keeps a local history of source changes
Switch to the CCS Edit perspective
Right-click on a file in the editor an select
Team -> Show Local History
Opens History view
File Comparer
CCS APPS
History view
CCS APPS
View: Outline
Displays an outline of a structured file that is
currently open in the editor area, and lists
structural elements
View -> Outline
CCS APPS
CCS APPS
CCS APPS
DEBUGGING
CCS APPS
Debug Configurations
Debug information created when a debug session is first launched for a
project or target configuration
Information stored includes which target configuration to use, debug
settings
CCS APPS
Debug Configurations
Interface to manage existing configuration or to create new ones
Existing debug configurations are configurable
CCS APPS
CCS APPS
Specify to load the program (default) or just symbols only (to debug
code in flash, etc)
CCS APPS
CCS APPS
CCS APPS
CCS APPS
CCS APPS
CCS APPS
If the location of the executable file or source (or both) has changed,
CCS may not be able to find the source files
CCS can be instructed where to find the source files one of two ways:
Tell CCS where the first file is and let CCS find the rest of the files using
relative path information in the symbols (recommended method)
Set Source Lookup Paths for CCS to scan when looking for source files:
Set for current debug session
Set for Debug Configuration - apply for every debug session launched by the
debug configuration (under the Source options}
Set at global (workspace) level apply for any debug session started with this
workspace
CCS APPS
Method #1 (Recommended)
If a source file cannot be found during debug, it will be indicated in the
editor
Use Locate the Source File button to browse to the location of the
source file
The debugger can then find other source files in the same location or use relative path
information to find files relative to
the current file
Location is remembered for future
loads of the same program
CCS APPS
CCS APPS
CCS APPS
CCS APPS
View: Modules
Provides information for all loaded symbol files
View -> Modules
CCS APPS
View: Terminal
Terminal emulator that can connect to a remote target via a serial port
or over TCP/IP using the TELNET or SSH protocol.
View -> Other -> Terminal -> Terminal
CCS APPS
CCS APPS