User`s guide
insert
insert(cc,filename,line) defaults to type 'break' to insert a
breakpoint.
Example Open a project in CCS IDE, such as volume.pjt in the tutorial folder
where you installed CCS IDE. Use Embedded IDE Link CC functions
to open the project and activate the appropriate source file where y ou
add the breakpoint. Rem ember to load the pro gram file
volume.out so
you can access symbols and their addresses.
cd (cc,'c:\ti\tutorial\sim62xx\volume1') % Default install;
wd=cd(cc);
wd =
c:\ti\tutorial\sim62xx\volume1
open(cc,'volume.pjt');
build(cc, 30);
Now add a break point an d a probe point.
insert(cc,15424,'break') % Adds a breakpoint at symbol "main"
insert(cc,'volume.c',47,'probe') % Adds a probe point on line 47
Switch to CCS IDE and open volume.c. Note the blue diamond and red
circle in the left margin of the
volume.c listing. Red circles indicate
Breakpoints and blue diamonds indicate Probe Points.
Use
symbol to return a structure listing the symbols and their addresses
for the current program file.
symbol returns a structure that contains
all the s ymbols. To display all the symbols with addresses, use a loop
construct like the following:
for k=1:length(s),disp(k),disp(s(k)),end
where structure s holds the symbols and addre sses.
7-64