Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Code-Composer | CCS v3.3 - Perl Scripting Automation Error

Technical discussions about Code Composer Studio.

  

Post a new Thread

CCS v3.3 - Perl Scripting Automation Error - adit...@gmail.com - Jun 17 13:20:25 2008



Hi all,

I'm trying out a very basic perl script to build,load and run a project.
I want to get the address at a symbol so that i can set the breakpoint there.

When it comes to getting the symbol address, i get the following error:

Code composer exception caught during SymbolGetAddress: Automation error in Code Composer
Studio.

However i dont get the error when i run the script after starting CCS and the opening the
project manually.

What could be the reason? Below is my script.

*****************************************************************
use CCS_SCRIPTING_PERL;

my $MyCCScripting = new CCS_SCRIPTING_PERL::CCS_Scripting();
my $MyProgram;
my $MyPath;
my $MyPCVal;
#my $MainVal;
#my $LogFile;

$MyPath = "C:\\Documents and Settings\\a0271977\\My Documents\\DSPBIOS guide\\perl
samples";
$MyProgram = "C:\\CCStudio_v3.3\\MyProjects\\filt\\filt.out";
$MyProject = "C:\\CCStudio_v3.3\\MyProjects\\filt\\filt.pjt";

$MyCCScripting -> CCSOpenNamed("*","*",1);
print "CCS open\n\n";

$MyCCScripting -> ProjectOpen($MyProject);
print "Project opened\n\n";

$MyCCScripting -> ProjectBuild("Debug",1);
print "Built..\n\n";

#$MyCCScripting -> ProgramLoad($MyProject);
print ".out loaded\n\n";

#$MainVal = $MyCCScripting -> SymbolGetAddress("main");
$MainVal = $MyCCScripting -> SymbolGetAddress("generate");
print "Generated\n\n";

$MyCCScripting -> BreakpointSetAddress($MainVal);
print "Break point set\n\n";

$MyCCScripting -> TargetRun();
print "Program runs...\n\n";

$MyPCVal = $MyCCScripting -> RegisterRead("PC");
print "Register value read..\n\n";
print "PC points to: $MyPCVal \n\n";

****************************************************************
Appreciate your help.

-Aditya

------------------------------------

OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )