Other Parts Discussed in Thread: CCSTUDIO
Hello everybody,
I'm working with CCS v3.3 scripting (C++ API) and currently getting the impression, that a lot of errors/exceptions aren't covered/caught. For example when setting a line breakpoint using .BreakpointSetLine(...):
- setting a breakpoint on an existing line works fine
- setting a breakpoint on a not existing line or file: The returned value of the method is still CCS_OK, but CCS crashes or gets unrepsonsive
Anybody had similar experiences or found a solution?
Thanks and Greetings,
Bjoern
Addition:
The error can be easily reproduced using the example project CCStudio_v3.3\tutorial\sim28xx\volume1\volume1.pjt and configuration F28xx Simulator Tutorial with following code:
int main(int argc, char* argv[])
{
//variables
int intRetVal = 0;
long loAddr = 0;
int intBPId = 0;
//create CCS server instance
CCS_Server_Interface c;
//open CCS instance
c.CCSOpenNamed("*","*",1);
//set working directory
c.CCSSetCurrentDirectory("C:/CCStudio_v3.3/MyProjects/volume1/");
//open project
c.ProjectOpen("volume1.pjt");
//load software
c.ProgramLoad("debug/volume1.out");
//***TEST FOR BUG***********************
//set breakpoint to NOT EXISTING file
intRetVal = c.BreakpointSetLine("volume_test.c",48,&intBPId);
//check for error
if( intRetVal == CCS_OK ) {
//print adress of main
printf("BreakpointSetLine - ID: %d\n",intBPId);
}
else {
//print error
printLastError(c);
}
When executing this code, trying to set a breakpoint to a not existing file, the application gets stuck on the line setting the breakpoint (calling method BreakpointSetLine).